Updates to Bronnikov Java grammar?

17 Apr 2002 23:17:04 -0400

          From comp.compilers

Related articles
Updates to Bronnikov Java grammar? vbar@comp.cz (2002-04-17)
| List of all articles for this month |

From: vbar@comp.cz
Newsgroups: comp.compilers
Date: 17 Apr 2002 23:17:04 -0400
Organization: Compilers Central
Keywords: Java, question
Posted-Date: 17 Apr 2002 23:17:04 EDT

I've been looking for a Java grammar, and found
http://home.inreach.com/bronikov/grammars/java.html - which looks very
good on first sight, but isn't *quite* correct...

For example, the lexer has
AnyButSlash [^\/]
AnyButAstr [^\*]
Comment1 [\/][\*]({AnyButAstr}|[\*]{AnyButSlash})*[\*][\/]
for a multi-line comment, which doesn't match
There are also other bugs, which may be easy to fix - for an
expert - but I'm not and I have a hard time making it work...

The page is quite old ((c) 1998) - I'm not sure to what extent
it's even maintained... Are there any newer versions of this
grammar floating around?


Post a followup to this message

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