[antlr-interest] Bug: String constant is too big in Parser generated by ANTLR v4

Terence Parr parrt at cs.usfca.edu
Mon Aug 13 12:44:35 PDT 2012


Hi.That is an ANTLR v2 grammar… I'm shocked that he didn't give you a syntax error using v4.
Ter
On Aug 12, 2012, at 6:06 PM, Amal Khailtash wrote:

> I might have been doing something wrong.  I was writing a fuzzy grammar
> with many Lexer rules.  I am not sure if I am doing it correctly.  I
> searched the mailing list and I saw similar message.
> 
> Basically I am trying to use Verilog 200x grammar (
> http://v2kparse.sourceforge.net/) to filter all module_instantiation in the
> source file.
> 
> Not sure if I can do this easily as a fuzzy lexer, or there are too many
> lexer rules that start from module_instantiation.
> 
> *-- Amal*
> 
> 
> On Fri, Aug 10, 2012 at 8:20 PM, Sam Harwell <sam at tunnelvisionlabs.com>wrote:
> 
>> Is there any way you can you send me a copy of the grammar for testing?
>> 
>> Thanks,
>> --
>> Sam Harwell
>> Owner, Lead Developer
>> http://tunnelvisionlabs.com
>> 
>> -----Original Message-----
>> From: Amal Khailtash [mailto:amal.khailtash at gmail.com]
>> Sent: Friday, August 10, 2012 4:11 PM
>> To: antlr-interest at antlr.org
>> Subject: Re: [antlr-interest] Bug: String constant is too big in Parser
>> generated by ANTLR v4
>> 
>> I encounter the same error "error: UTF8 representation for string "???..."
>> is too long for the constant pool" for a test grammar I am working on.
>> 
>> Is this going to be fixed soon?
>> 
>> Thanks,
>> *-- Amal*
>> 
>> 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



More information about the antlr-interest mailing list