digitalmars.D - EBNF for D?
- Paul D Anderson (4/4) Mar 27 2008 Two related questions:
- BCS (9/17) Mar 27 2008 kind.
- Georg Wrede (3/10) Mar 27 2008 Of course!
- BCS (2/17) Mar 27 2008 ok. ETA: __ days
- Sean Kelly (5/22) Mar 27 2008 Out of curiosity, is the grammar in the docs complete and correct? I
- BCS (5/31) Mar 27 2008 compleat, I haven't a clue. Correct, I have a list of about 6-10 (small)...
- Paul D Anderson (3/11) Mar 28 2008 Thanks. I look forward to it.
- BCS (13/27) Mar 28 2008 It's posted:
Two related questions: 1. Do the EBNF statements scattered throughout the D specification form a complete description of the D grammar? 2. Is there a "non-scattered" version of the grammar available? Paul
Mar 27 2008
Paul D Anderson wrote:Two related questions: 1. Do the EBNF statements scattered throughout the D specification form a complete description of the D grammar?no2. Is there a "non-scattered" version of the grammar available?kind. As for part 1, the grammar is incomplete and wrong, but only in a few tiny places. I'm working on fixing them and am going to submit a patch to Walter in a few days. This is a result of something connected with part 2; I have a sed script that extracts the grammar from the HTML and converts it to EBNF (or a dialect there of) I'll release it if anyone is interested.Paul
Mar 27 2008
BCS wrote:Paul D Anderson wrote:Of course! Mention it in Announcements when you've put it somewhere!2. Is there a "non-scattered" version of the grammar available?I have a sed script that extracts the grammar from the HTML and converts it to EBNF (or a dialect there of) I'll release it if anyone is interested.
Mar 27 2008
Georg Wrede wrote:BCS wrote:ok. ETA: __ daysPaul D Anderson wrote:Of course! Mention it in Announcements when you've put it somewhere!2. Is there a "non-scattered" version of the grammar available?I have a sed script that extracts the grammar from the HTML and converts it to EBNF (or a dialect there of) I'll release it if anyone is interested.
Mar 27 2008
== Quote from BCS (BCS pathlink.com)'s articleGeorg Wrede wrote:Out of curiosity, is the grammar in the docs complete and correct? I remember that it didn't used to be, but there's been a bunch of work on it since then. SeanBCS wrote:ok. ETA: __ daysPaul D Anderson wrote:Of course! Mention it in Announcements when you've put it somewhere!2. Is there a "non-scattered" version of the grammar available?I have a sed script that extracts the grammar from the HTML and converts it to EBNF (or a dialect there of) I'll release it if anyone is interested.
Mar 27 2008
Reply to Sean,== Quote from BCS (BCS pathlink.com)'s articlecompleat, I haven't a clue. Correct, I have a list of about 6-10 (small) errors that I need to fix, so No. As to if that will match what DMD does, again, I don't know. (but I have a feeling, I'm going to find out dang quick as soon as I find time to start looking.)Georg Wrede wrote:Out of curiosity, is the grammar in the docs complete and correct? I remember that it didn't used to be, but there's been a bunch of work on it since then. SeanBCS wrote:ok. ETA: __ daysPaul D Anderson wrote:Of course! Mention it in Announcements when you've put it somewhere!2. Is there a "non-scattered" version of the grammar available?I have a sed script that extracts the grammar from the HTML and converts it to EBNF (or a dialect there of) I'll release it if anyone is interested.
Mar 27 2008
BCS Wrote:As for part 1, the grammar is incomplete and wrong, but only in a few tiny places. I'm working on fixing them and am going to submit a patch to Walter in a few days. This is a result of something connected with part 2; I have a sed script that extracts the grammar from the HTML and converts it to EBNF (or a dialect there of) I'll release it if anyone is interested.Thanks. I look forward to it. Paul
Mar 28 2008
Paul D Anderson wrote:BCS Wrote:It's posted: http://www.dsource.org/projects/scrapple/browser/trunk/dparser the relevant files are: "cut_gram2" and and "gram.sed". "cut_gram2" is a bash script that runs the sed script and does a little filtering. Call it from the directory containing the .html docs or pass it the directory as the first arg. The output will end up in "gram.inp" and isn't quite right (formatting errors and whatnot) I have another program that will convert it to something usable (and also factor out left recursions) but it's not ready for posting. p.s. It is intended to be run on the doc as patched by me. With any luck, Walter will get my edits in post haste.As for part 1, the grammar is incomplete and wrong, but only in a few tiny places. I'm working on fixing them and am going to submit a patch to Walter in a few days. This is a result of something connected with part 2; I have a sed script that extracts the grammar from the HTML and converts it to EBNF (or a dialect there of) I'll release it if anyone is interested.Thanks. I look forward to it. Paul
Mar 28 2008