[antlr-interest] Problem using my own AST class

Hélène Ortiz hortiz at objetdirect.com
Mon Jul 2 07:41:47 PDT 2007


Hi,

In order to have column and line set for my AST
instances, I have created
my own class which extends CommonAST.

It works fine, except for one type of command: a
command with only one word:

> count

The resulting AST instance has 0 value for both line
and column, whereas
the command :

> count 10

generates an AST instance with correct values for line
and column.

Any idea ?
Thanks a lot for your help





More information about the antlr-interest mailing list