www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3597] New: Need single source for parser and documentation grammar.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3597

           Summary: Need single source for parser and documentation
                    grammar.
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: shro8822 vandals.uidaho.edu


--- Comment #0 from BCS <shro8822 vandals.uidaho.edu> 2009-12-07 10:00:34 PST
---
In light of all the recent grammar documentation issues; I'm going to suggest
that either the parser or the BNF documentation or both need to be generated
from a single source.

Given that Walker is unlikely to dump his hand written parser, the most likely
solution would be to somehow extract the grammar from the parser source and
insert it into the docs as a set of macros.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 07 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3597



--- Comment #1 from Sobirari Muhomori <dfj1esp02 sneakemail.com> 2009-12-09
04:24:46 PST ---
From *code*? o.O

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 09 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3597



--- Comment #2 from BCS <shro8822 vandals.uidaho.edu> 2009-12-09 10:10:58 PST
---
From general code it would be crazy to attempt it, but IIRC the parser code is
very regular. With some refactoring it might be possible to make it regular
enough to extract the grammar mechanically.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 09 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3597


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
           Severity|normal                      |enhancement


--- Comment #3 from Don <clugdbug yahoo.com.au> 2010-01-27 02:44:53 PST ---
Changing this to enhancement since there's actually no identified bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 27 2010