[antlr-interest] C# target doesn't do numbers

Vaclav Barta vbar at comp.cz
Wed Jun 27 04:27:54 PDT 2007


Gavin Lambert wrote:
> At 22:34 27/06/2007, Vaclav Barta wrote:
>  >Err, what is a fragment rule and how do I make it? My ANTLR
>  >knowledge is rather dismal... What I tried was removing
> Perhaps you should read the ANTLR book -- or the website :)
Well, as for the book, I'd have to buy it first, which is expensive and 
inconvenient - I'll probably get it eventually, but this project won't 
wait for my studies. As for the website, I find it rather difficult to 
navigate; when I search for "fragment", for example, I get a Wiki page 
and a bunch of posts on antlr-interest, and the usual result of my 
searches is a 404... I'd prefer something more organized and 
authoritative, but well, I suppose that's what the book is for...

> A fragment rule is easily created -- just put the word 'fragment' in 
...
> recognise Digits, only Integers, you had a failed match.  Making it a 
> fragment removes it as a top-level candidate and the lexer will output 
> an Integer instead.
Ah, now it makes sense - thanks.

	Bye
		Vasek




More information about the antlr-interest mailing list