
|
If you were logged in you would be able to see more operations.
|
|
|
ANTLR v3
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
|
|
|
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
|
|
Description
|
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
|
Show » |
|