diff options
Diffstat (limited to 'src/parser/event_parser/grammar/expressions.rs')
-rw-r--r-- | src/parser/event_parser/grammar/expressions.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/parser/event_parser/grammar/expressions.rs b/src/parser/event_parser/grammar/expressions.rs deleted file mode 100644 index 8caaf3553..000000000 --- a/src/parser/event_parser/grammar/expressions.rs +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | use super::*; | ||
2 | |||
3 | pub(super) fn literal(p: &mut Parser) -> bool { | ||
4 | match p.current() { | ||
5 | TRUE_KW | FALSE_KW | INT_NUMBER | FLOAT_NUMBER | BYTE | CHAR | STRING | RAW_STRING | ||
6 | | BYTE_STRING | RAW_BYTE_STRING => { | ||
7 | let lit = p.start(); | ||
8 | p.bump(); | ||
9 | lit.complete(p, LITERAL); | ||
10 | true | ||
11 | } | ||
12 | _ => false, | ||
13 | } | ||
14 | } | ||
15 | |||
16 | pub(super) fn expr(p: &mut Parser) { | ||
17 | if !literal(p) { | ||
18 | p.error().message("expected expression").emit(); | ||
19 | } | ||
20 | } | ||