History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ANTLR-229
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Terence Parr
Reporter: Terence Parr
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ANTLR v3

interpreter bug

Created: 23/Mar/08 12:19 PM   Updated: 02/May/08 06:22 PM
Component/s: interpreter
Affects Version/s: 3.0.1
Fix Version/s: 3.1


 Description  « Hide
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



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 02/May/08 06:22 PM
Wasn't handling implied exit branch of loops in interpreter.