bugGrammatica - Bugs: bug #8437, Add support for #including grammar...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #8437: Add support for #including grammar files

Submitter:  Adrian Moore <AgentSmith>
Submitted:  Sat 03 Apr 2004 09:01:58 PM UTC
   
 
Severity:  1 - Minor Item Group:  Future Improvement
Status:  Postponed Assigned to:  cederberg
Open/Closed:  Closed

Discussion locked!

Sun 05 Apr 2009 03:13:01 PM UTC, comment #2: 

The feature request for modular grammars now lives on the Wiki:

http://code.google.com/p/grammatica/wiki/FeatureModularGrammar

Closing this issue.

Per Cederberg <cederberg>
Group administrator
Sun 04 Apr 2004 08:55:30 AM UTC, comment #1: 

Includes would be a step forward, making the grammar file more readable and understandable. The generated source code would still be pretty unmanageable, though, in particular the Analyzer class.

A better options to includes, I think, would be to make the grammars modular. That is, each grammar defines it's own parser, tokenizer and analyzer. It should then be possible to connect the grammars to each other, similar to this:

%import myname regexp.grammar%

Token = "<<" myname.RegExp ">>" ;

The modular grammar requirement is tracked in bug #3599, although not described in much detail.

Per Cederberg <cederberg>
Group administrator
Sat 03 Apr 2004 09:01:58 PM UTC, original submission:  

Complex grammars require a very large file to describe all parts.  Add support for breaking complex grammars into smaller, partial files which can be included into a master file.

Adrian Moore <AgentSmith>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cederberg (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-05 cederberg StatusNone Postponed
        Assigned toNone cederberg
        Open/ClosedOpen Closed
        Discussion LockNone Locked
    2004-04-04 cederberg Item GroupNone Future Improvement

    Back to the top

    Powered by Savane 3.13-04b1.
    Corresponding source code