[antlr-interest] Translate from Bison to ANTLR
Gunnar Wagenknecht <kreismeister at yahoo.de>
kreismeister at yahoo.de
Sun Feb 2 10:29:56 PST 2003
Hi!
I have a grammer file that was written for Bison. Any tips/hints for
translating it to ANTLR?
I start with a few simple lines but now I'm going deeper and I see
some infenity recursions and I don't have much experience with antlr.
Example:
sendId
: identName
| macroVar
;
objectData
: ( numValue
| nilValue
| literalValue
| codeBlock
| selfValue
| array
| arrayAt
| variable
| aliasVar
| aliasExpr
| macroVar
| macroExpr
| funCall
| pareExpList
| variableAt
| objectMethod
| objectData
| withMethod
| withData
) COLON sendId
;
objectMethod
: objectData LPAREN argList RPAREN
;
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list