On Saturday 09 April 2011 01:49:40 am Jody Garnett wrote:
> I think I misspoke:
>
> Is there a file for the BNF in source code that we could just "include" in
> this page? I don't like retyping the BNF in; and it would always be out of
> date.
>
> Better to "include" the origional.
It is crystal clear now.
The nearest to BNF are the
trunk/modules/library/cql/src/main/jjtree/CQLGrammar.jjt
trunk/modules/library/cql/src/main/jjtree/CQLGrammar.jjt
files. They are the inputs for the compiler of compiler. The jjt syntax is very
particular, it is a java like syntax. It contains instructions to direct the
parsing process and has some java instructions (java block and java
functions). I think it is a "dirty BNF".
Moreover, many times the original BNF structure requires some modification in
order to avoid bad parsing behaviors, so it is necessary to remove
indeterminations or left recursion in the rules. Thus the jjt is a good file to
generate a good compiler but it is bad for the human readers.
I think we should maintain the BNF grammar in different doc. Fortunately, a
program language is not a piece that require many changes.
cheers
--
Mauricio Pazos
www.axios.es
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel