Specify literal tokens

This commit is contained in:
Aleksey Kladov 2020-07-31 18:16:08 +02:00
parent 7980a7e19a
commit 8d28289d0f
2 changed files with 8 additions and 1 deletions

View file

@ -590,6 +590,7 @@ fn lower_rule(acc: &mut Vec<Field>, grammar: &Grammar, label: Option<&String>, r
| "op"
| "index"
| "base"
| "value"
);
if manually_implemented {
return;

View file

@ -239,7 +239,13 @@ Expr =
| WhileExpr
Literal =
Attr* 'int_number'
Attr* value:(
'int_number' | 'float_number'
| 'string' | 'raw_string'
| 'byte_string' | 'raw_byte_string'
| 'true' | 'false'
| 'char' | 'byte'
)
PathExpr =
Attr* Path