[antlr-interest] Re: Problem with Heterogenous AST antlr 2.7.2a6
Terence Parr
parrt at jguru.com
Sat Dec 21 00:48:02 PST 2002
On Friday, December 20, 2002, at 06:27 PM, micheal_jor
<open.zone at virgin.net> wrote:
> --- In antlr-interest at yahoogroups.com, "beeh1973 <hastur4711 at b...>"
> <hastur4711 at b...> wrote:
>> hi,
>>
>> i tried to use my grammar with antlr 2.7.2a6. i used it with
> version
>> 2.7.2a2 before without problems.
>>
>> i use heterogenous AST Construction
>> AST Classes are in some package.
>>
>> header {
>> package org.mydomain;
>> }
>>
>> tokens {
>> EXIST <AST=ExistOperator>;
>> }
>>
>> [...]
>>
>> i have a corresponding class org.mydomain.ExistOperator
>
> So the class is really called "org.mydomain.ExistOperator"
>
> Have you tried the following?
> tokens {
> EXIST <AST=org.mydomain.ExistOperator>;
> }
>
> I'm not sure whether your example with just the classname should work
> as well. Ter?
You should have to use the full classname unless your parser is in the
org.mydomain package (in Java).
Ter
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list