Hi,

strangely enough, I changed the name of the lexer to one which is not a 
sub-string of the combined grammar's name and it works fine.

Luigi
On 31 Mar 2010, at 23:29, Luigi Iannone wrote:

> Hi
> 
> I have built a lexer grammar, and a combined one which should import it.
> The problem is that as soon as I try to import using the following code in my 
> combined grammar
> 
> grammar ManchesterOWLSyntax;
> import  ManchesterOWLSyntaxLexer ;
> 
> 
> main:
>        IDENTIFIER  
>       ;
> 
> I get the following error
> 
> ANTLR Parser Generator 3.2 Sep 23, 2009 12:02:23.
> Using project classpath: Yes.
> Grammar: /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntax.g
> error(163): /Parsers/src/ManchesterOWLSyntax.g:2:9: combined grammar 
> ManchesterOWLSyntax and imported lexer grammar ManchesterOWLSyntaxLexer both 
> generate ManchesterOWLSyntax_ManchesterOWLSyntaxLexer; import ignored
> |---> import  ManchesterOWLSyntaxLexer ;
> 
> 
> I wonder what am I doing wrong. Any clue?
> 
> Thanks,
> 
> Luigi
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to