[antlr-interest] [ANTLRWorks][Bug?]

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jan 25 04:31:14 PST 2008


On 25/1/08 2:03 PM, "Ruslan Zasukhin" <sunshine at public.kherson.ua> wrote:

Hi Jean,

Aha, so I have test this on 1.1.5 release,
And here it works well,

So 2 issues in the 1.1.6 build you have sent me:

    * this on char issue
    * diagrams in the interpreter are FLAT.

 
> I have meet strange glitch in the Interpreter, I think it is bug.
> 
> Steps to reproduce:
> -----------------------
> 
> * Copy paste this tiny grammar into  VSQL_Parser.g text file
> 
> grammar VSQL_Parser;
> 
> options 
> {
>     k        = 2;
>     output    = AST;
> }
> 
> sql
>     :    'create' 'table' IDENT EOF
>     ;
> 
> fragment
> DIGIT   : ('0'..'9');
> 
> fragment
> LETTER     : 'a'..'z';
> 
> IDENT    : ( LETTER | '_' ) ( LETTER | '_' | DIGIT )* ;
> 
> 
> 
> * open this grammar in the AW,
> * go to Interpreter panel
> 
> * specify as input         create table tt
> * click button RUN,  works fine. We see expected diagram.
> 
> now
> 
> * specify as input         create table t
> * click button RUN,  Errors in the console about NULL exception.
> 
> As far as I see IDENT Lexer rule is correct. So why interpreter failes with
> single character IDENT ???
> 
> 

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the antlr-interest mailing list