[antlr-interest] writing a simple tool
Johannes Luber
jaluber at gmx.de
Wed Jan 16 03:22:31 PST 2008
Edwards, Waverly schrieb:
> I am currently attempting to write what I hope is a simple tool to
> validate an ebnf grammar and export the first and follow set.
> Unfortunately, no amount of reading has enabled perform the 'easy' (to
> others) task of generating this first and follow set. I have read
> multiple books and texts on the subject. So I've embarked on a mission
> to start by first validating an ebnf grammar and moving forward from
> there.
>
> My first stumbling block came early in writing an ebnf grammar. In my
> effort to separate my parser rules so I can apply some type of action I
> have created recursive definitions. I know what they are but I've been
> unable figure out how to dig myself out of this hole.
>
> Any and all help will be greatly appreciated.
I also happen to have an unpublished tutorial about the very kind of
problem you have (before anyone asks - no, I don't have any more lurking
on the harddrive ;). I've attached it to this email. I'd also appreciate
any of feedback here.
Johannes
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LeftRecursionTutorial.txt
Url: http://www.antlr.org/pipermail/antlr-interest/attachments/20080116/29c73c5e/attachment-0001.txt
More information about the antlr-interest
mailing list