
|
If you were logged in you would be able to see more operations.
|
|
|
ANTLR v3
Created: 06/Nov/06 06:22 PM
Updated: 10/Apr/07 06:00 PM
|
|
| Component/s: |
ANTLR Core
|
| Affects Version/s: |
3.0
|
| Fix Version/s: |
3.0b7
|
|
|
STRING -> {%{$STRING.text}} // how not to interpret string?
gets
codegen.g:0:0: attribute is not a token, parameter, or return value: $STRING
-> {...} doesn't work for trees; tree/template not consistent; one
has ALT above...templ doesn't.
|
|
Description
|
STRING -> {%{$STRING.text}} // how not to interpret string?
gets
codegen.g:0:0: attribute is not a token, parameter, or return value: $STRING
-> {...} doesn't work for trees; tree/template not consistent; one
has ALT above...templ doesn't. |
Show » |
|
grammar T;
options {
language = Java;
output = AST;
}
r
: INT -> {new CommonTree(new CommonToken(FLOAT,$INT.text+".0"))}
;
INT : '0'..'9'+;
WS: (' ' | '\n' | '\t')+ {$channel = HIDDEN;};