arithmetic.g4 question

28 views
Skip to first unread message

Willy Andrianarisoa

unread,
Jun 12, 2024, 3:10:45 AMJun 12
to antlr-discussion
I try to implement formula builder project , i start as a scratch the arithmetic.g4 grammar available in antlr4 github (https://github.com/antlr/grammars-v4/blob/master/arithmetic/arithmetic.g4)
I start to test it , with some inputs,
When i try to analyze (with ANTLR input below
10 < 10G
it didn"treport any error ! 
Is this correct (10G is a bad input i suppose)?
I'm a little bit stucked with it. I t

I put in attachments ,  the grammar and the parsetree result
Thanks for any help
Will
arithmetic.g4
parseTree.png
Reply all
Reply to author
Forward
0 new messages