aboutsummaryrefslogtreecommitdiffstats
path: root/src/grammar.pest
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar.pest')
-rw-r--r--src/grammar.pest2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grammar.pest b/src/grammar.pest
index 822e256..000ddd5 100644
--- a/src/grammar.pest
+++ b/src/grammar.pest
@@ -1,7 +1,7 @@
COMMENT = _{ "#" ~ (!("#" | NEWLINE) ~ ANY)* ~ NEWLINE* }
WHITESPACE = _{ " " | "\t" | NEWLINE }
program = { SOI ~ statement+ ~ EOI }
-statement = { (definition | expression)}
+statement = { (definition | expression) }
definition = { symbol ~ "=" ~ expression ~ ";"+ }
expression = { (symbol | integer_literal | string_literal | ("(" ~ expression ~ ")"))+ }
integer_literal = @{ "-"? ~ ASCII_DIGIT+ }