Re: help with EBNF grammar

"Mike Dimmick" <mike@dimmick.demon.co.uk>
31 Mar 2001 02:49:40 -0500

          From comp.compilers

Related articles
help with EBNF grammar paul.meaney@qa.comstar.co.uk (Paul Meaney) (2001-03-28)
Re: help with EBNF grammar rael@zopyra.com (William S. Lear) (2001-03-31)
Re: help with EBNF grammar rboland@unb.ca (Ralph Boland) (2001-03-31)
Re: help with EBNF grammar mahesha@india.hp.com (Mahesha N) (2001-03-31)
Re: help with EBNF grammar limpus@immortalnet.com.au (Raymond Limpus) (2001-03-31)
Re: help with EBNF grammar mike@dimmick.demon.co.uk (Mike Dimmick) (2001-03-31)
Re: help with EBNF grammar uabbwat@uab.ericsson.se (Barry Watson) (2001-04-04)
Re: help with EBNF grammar rael@zopyra.com (William S. Lear) (2001-04-04)
| List of all articles for this month |
From: "Mike Dimmick" <mike@dimmick.demon.co.uk>
Newsgroups: comp.compilers,comp.compilers.tools.javacc
Date: 31 Mar 2001 02:49:40 -0500
Organization: Compilers Central
References: 01-03-154
Keywords: parse
Posted-Date: 31 Mar 2001 02:49:40 EST

"Paul Meaney" <paul.meaney@qa.comstar.co.uk> wrote in message
news:01-03-154@comp.compilers...
> 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,


--
Mike Dimmick


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.