[antlr-interest] Antlr3b6 [bug?] Can't find template matchSetTrack.st

David Holroyd dave at badgers-in-foil.co.uk
Fri Jan 5 00:56:57 PST 2007


On Fri, Jan 05, 2007 at 09:38:20AM +0300, Ilia Kantor wrote:
> The problem appeared after I introduced tree construction syntax from 
> http://www.antlr.org/wiki/display/ANTLR3/Tree+construction:
> 
> ========== Error ================
> ilia at home ~/taskpower/antlr $ ./antlr.sh GrammarReader.g
> no such locale file org/antlr/tool/templates/messages/languages/ru.stg 
> retrying with English locale
> ANTLR Parser Generator  Version 3.0b6 (??)  1989-2007
> error(10):  internal error: GrammarReader.g : 
> java.lang.IllegalArgumentException: Can't find template matchSetTrack.st
[...]
> type=(FORMULA|OUTPUT) name+=ID (DOT name+=ID)* COMMAND? BODY ->
> ^($type ^(NAME $name+) COMMAND? BODY)
> ;

ANTLR doesn't let you do "a=(X|Y|Z)", though "(a=X|a=Y|a=Z)" works, I
think.


ta,
dave

-- 
http://david.holroyd.me.uk/


More information about the antlr-interest mailing list