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

Submitted by:  Adrian Moore <AgentSmith>
Submitted on:  Sat 03 Apr 2004 09:01:58 PM UTC  
 
Severity: 1 - MinorItem Group: Future Improvement
Status: PostponedAssigned to: Per Cederberg <cederberg>
Open/Closed: Closed

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 05 Apr 2009 03:13:01 PM UTCcederbergStatusNone=>Postponed
      Assigned toNone=>cederberg
      Open/ClosedOpen=>Closed
      Discussion LockUnlocked=>Locked
    Sun 04 Apr 2004 08:55:30 AM UTCcederbergItem GroupNone=>Future Improvement

    Back to the top


    Powered by Savane 3.1-cleanup1