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

Philippe Faes closed MANTLR-27.
-------------------------------

    Resolution: Won't Fix

Posted at the wrong place. It was meant for antlr3-maven-plugin.

> plugin translates grammar files in arbitrary order, but some grammars may 
> depend on eachother
> ---------------------------------------------------------------------------------------------
>
>                 Key: MANTLR-27
>                 URL: http://jira.codehaus.org/browse/MANTLR-27
>             Project: Maven 2.x Antlr Plugin
>          Issue Type: Improvement
>            Reporter: Philippe Faes
>         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

        

Reply via email to