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

Jonathan Thomas jonathan.thomas at ca.com
Wed Jun 27 17:13:36 PDT 2007


Did you search from _within_ the wiki??
I just did a 'fragment' search and it returned a bunch of references 
from the wiki - I just tried the first five of these and none give me a 404.
In that list the 7th match is "5 minute introduction ..." Being new to 
it like yourself at _least_ you give that page a read, I'd hope!

Vaclav Barta said the following on 27/06/2007 9:27 PM:
> 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