maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Faes (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MANTLR-28) [antlr3-maven-plugin] plugin translates grammar files in arbitrary order, but some grammars may depend on eachother
Date Sat, 12 Jan 2008 08:25:57 GMT
[antlr3-maven-plugin] plugin translates grammar files in arbitrary order, but some grammars
may depend on eachother
-------------------------------------------------------------------------------------------------------------------

                 Key: MANTLR-28
                 URL: http://jira.codehaus.org/browse/MANTLR-28
             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

        

Mime
View raw message