[antlr-interest] [C target] how to skip empty lines
Юрушкин Михаил
yurushkin at rambler.ru
Thu Oct 22 15:08:02 PDT 2009
Good evening.
thanks for your support!
Could u give me one tip.
I user C target and want to parse such input
"a = 3.14
f(x) = 3x^2 - 4x + 2
print "The value of f for " a " is " f(a)
print "The derivative of " f() " is " f'()
list variables
list functions
g(y) = 2y^3 + 6y - 5
h = f + g
print h()"
I use this tutorial
http://jnb.ociweb.com/jnb/jnbJun2008.html
but parser fails.. when finds empty lines. It's correct, but how can i fix
it? It's common problem for all languages. Programmer can input some empty
lines between constructions to improve code readability...
--
Best regards,
Michael
More information about the antlr-interest
mailing list