Thread overview | |||||
---|---|---|---|---|---|
|
April 20, 2008 Implementation Documentation | ||||
---|---|---|---|---|
| ||||
Just out of curiosity, is there a rules document on the syntax, grammar and D language, I have been looking over the site to begin working on a lexer library but cant find it. |
April 20, 2008 Re: Implementation Documentation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hans W. Uhlig | Reply to Hans, > Just out of curiosity, is there a rules document on the syntax, > grammar and D language, I have been looking over the site to begin > working on a lexer library but cant find it. > the rule are scattered through the documentation. I have a sed script that will extract them (I think it will work on the official version but I have only done it with a patched version that has been merged into the trunk). By the way, there a several errors in the documentation. I'm (as time permits) working on fixing them but it's kind of low on my current priority list. the sed script: http://www.dsource.org/projects/scrapple/browser/trunk/dparser/gram.sed the bash script used to run it: http://www.dsource.org/projects/scrapple/browser/trunk/dparser/cut_gram2 (you will need to modify it to fit your system) |
April 21, 2008 Re: Implementation Documentation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hans W. Uhlig | Hans W. Uhlig wrote:
> Just out of curiosity, is there a rules document on the syntax, grammar and D language, I have been looking over the site to begin working on a lexer library but cant find it.
Is there any reason you can't use one of the existing D lexers out there?
--bb
|
Copyright © 1999-2021 by the D Language Foundation