|help with EBNF grammar email@example.com (Paul Meaney) (2001-03-28)|
|Re: help with EBNF grammar firstname.lastname@example.org (William S. Lear) (2001-03-31)|
|Re: help with EBNF grammar email@example.com (Ralph Boland) (2001-03-31)|
|Re: help with EBNF grammar firstname.lastname@example.org (Mahesha N) (2001-03-31)|
|Re: help with EBNF grammar email@example.com (Raymond Limpus) (2001-03-31)|
|Re: help with EBNF grammar firstname.lastname@example.org (Mike Dimmick) (2001-03-31)|
|Re: help with EBNF grammar email@example.com (Barry Watson) (2001-04-04)|
|Re: help with EBNF grammar firstname.lastname@example.org (William S. Lear) (2001-04-04)|
|From:||"Mike Dimmick" <email@example.com>|
|Date:||31 Mar 2001 02:49:40 -0500|
|Posted-Date:||31 Mar 2001 02:49:40 EST|
"Paul Meaney" <firstname.lastname@example.org> wrote in message
> In searching the web I have hit on the idea of using the JavaCC
> and defining my own grammar in Extended Backus- Naur Form to turn the
> input expression into a Java statement. However all the online
> documentation for EBNF is for 2nd/ 3rd year computing courses and are
> heavily mathematical in nature. Given my background I find it really
> difficult to understand what is going on.
You've probably got hold of compiler and parsing theory information
there. One of the advantages of a parser generator (for example,
JavaCC) is of course that it takes away most of the pain of
understanding what's going on (unless you have to debug the tables, in
which case, understanding it is helpful!)
I would suggest a more practical textbook, such as "Modern Compiler
Design," by Grune, Bal, Jacobs and Langendoen, published in 2000 by
John Wiley & Sons (ISBN 0-471-97697-0).
This book has _way_ too much information for what you need it for, but
it approaches it in the right direction (to my mind).
Hope this helps,
Return to the
Search the comp.compilers archives again.