[ 
http://jira.codehaus.org/browse/MANTLRTHREE-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Holroyd updated MANTLRTHREE-2:
------------------------------------

             Assignee: David Holroyd
    Affects Version/s: 1.0-beta-1
          Component/s: antlr
              Summary: plugin translates grammar files in arbitrary order, but 
some grammars may depend on eachother  (was: [antlr3-maven-plugin] plugin 
translates grammar files in arbitrary order, but some grammars may depend on 
eachother)

> plugin translates grammar files in arbitrary order, but some grammars may 
> depend on eachother
> ---------------------------------------------------------------------------------------------
>
>                 Key: MANTLRTHREE-2
>                 URL: http://jira.codehaus.org/browse/MANTLRTHREE-2
>             Project: Maven 2.x Antlr3 Plugin
>          Issue Type: Improvement
>          Components: antlr
>    Affects Versions: 1.0-beta-1
>            Reporter: Philippe Faes
>            Assignee: David Holroyd
>         Attachments: antlr3-maven-plugin_sorting.patch
>
>
> When creating a parser and a treewalker, say CMinus.g and CMinusWalker.g, 
> antlr needs to translate the parser first. During this translation, a 
> *.tokens file is created, which is needed for the translation of the 
> treewalker.
> The plugin currently deals with grammar files in arbitrary order (because 
> files are stored in a Map, which is not sorted). I propose the plugin sorts 
> the files alphabetically before processing. This way, the developer can 
> determine the compilation order by choosing alphabetically sorted grammar 
> names.
> Note that using the anltr naming convention (foobar.g and foobarWalker.g) the 
> files are sorted correctly.
> Patch attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to