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

Vincent Siveton closed MANTLR-14.
---------------------------------

         Assignee: Vincent Siveton
       Resolution: Fixed
    Fix Version/s: 2.0-beta-2

Applied. Thanks!

> Allowing patterns in filename
> -----------------------------
>
>                 Key: MANTLR-14
>                 URL: http://jira.codehaus.org/browse/MANTLR-14
>             Project: Maven 2.x Antlr Plugin
>          Issue Type: Improvement
>            Reporter: Emmanuel Lécharny
>            Assignee: Vincent Siveton
>            Priority: Minor
>             Fix For: 2.0-beta-2
>
>         Attachments: pattern.diff
>
>
> It would be very cool to allow a user to add some patterns in the grammars 
> list, instead of having to give every single name.
> Apache Directory Server project has more than 10 parsers to deal with, and 
> the list becomes very long. 
> Here is a patch which deal with this issue. You can mix filenames and 
> pattern, the order won't be lost :
> For instance, here is what I'm using :
> <grammars>filter-value-lexer.g filter-lexer.g filter-lexer.g 
> filter-value-parser.g filter-parser.g *.g</grammars>
> The first files are kept as is, to avoid antlr failures, but the last one 
> will eat all the remaining grammars.
> '*' and '?' are transformed to their regexp counterparts. A grammar which 
> match more than one pattern won't be compile dtwice.
> 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