[antlr-interest] ANTLR 3: Newbie EEPROM Binary Parsing

Terence Parr parrt at cs.usfca.edu
Tue Nov 7 13:08:45 PST 2006


On Nov 7, 2006, at 1:06 PM, Christian Bryan wrote:

> Hi,
> 	I am currently taking a crash course in ANTLR 3 and language  
> recognition in general for my latest project which involves parsing  
> a file from an automotive company. The format of the file is like  
> the following:
>
> vbf_version = 2.2;
> header {
> 	/*Contents*/
> } &^%$£@@&*% ...
>
> I have not a problem in writing the lexer or parser rules to parse  
> the vbf_version line the header or its contents. My problem is how  
> do I write a rule to get the lexer to consume everything after the  
> right curly brace including spaces as this is EEPROM data.

What indicates that the data is "over"?

Ter



More information about the antlr-interest mailing list