ANTLR

ANTLR is a groovy and widely-used open-source parser and translator generator tool supported by those hip cats at jGuru.   <<Less

SUBSCRIBE       NEW TOPIC
Results  11 to 20 of 1211  « Prev 1 2 3 4 5 6 7 8 9 10 ... 122 Next » 
 
The question is related to handling languages where keywords can also be identifiers. Separating a g...
Wed 12/22/04
08:43:47AM
 
0
Wed 12/22/04
08:43:47AM
129
 
 
I'm sorry if this question was asked before - jGuru does not enable search for not advanced users. L...
Tue 12/28/04
08:23:22AM
 
2
Fri 12/17/04
06:21:28AM
84
 
 
The following rule was defined: identifier returns [String res=null]: {res = LT(1).getText();} ~(S...
Thu 02/03/05
03:07:23AM
 
0
Thu 02/03/05
03:07:23AM
113
 
 
Currently, result of a subrule can be assigned to a variable: rule: {final String name;} name=name...
Fri 12/17/04
02:33:13AM
 
1
Fri 12/17/04
01:08:24AM
87
 
 
This situation is (well) thought-out in ANTLR: "literals override the more general identifier patter...
Fri 12/17/04
02:30:37AM
 
1
Thu 12/16/04
07:10:00AM
89
 
 
 
I will not bring the quotations from the manual telling us that the lexer uses the same algorithms a...
Mon 03/14/05
07:33:13AM
 
1
Wed 02/02/05
01:50:50AM
98
 
 
The documentation merely tells that returning false is enaught to fail parsing, but nothing is tol...
Fri 12/17/04
02:36:19AM
 
1
Tue 12/14/04
09:24:17PM
110
 
 
For example, the ALTR rule edifVersion: LP "edifVersion" ver:NUM RP {(ver.getText().compareTo("2")...
Fri 12/17/04
02:39:50AM
 
1
Tue 12/14/04
08:53:46PM
102
 
 
this is translated correctly: ConstToken ct = new ConstToken(CONST, $getText, 100); $setToken(...
Wed 01/26/05
03:15:20AM
 
0
Wed 01/26/05
03:15:20AM
90
 
 
The lexer return token class objects. Actually, the lexer matches complex tokens, like floating poin...
Wed 01/26/05
02:43:47AM
 
0
Wed 01/26/05
02:43:47AM
113
 
 
 
Results  11 to 20 of 1211  « Prev 1 2 3 4 5 6 7 8 9 10 ... 122 Next » 
"ANTLR" is moderated by Moderators:  SAdmin
About | Sitemap | Contact