diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-09-26 15:49:38 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-09-26 15:49:38 +0300 |
commit | 914c841ce466677c9e4261fbbcc3c0df13f472eb (patch) | |
tree | 0d2c7375f15e47a8f29b890423f486509fd1f267 /src/compiler | |
parent | 4a10d960ab3798267f83395e1b0d473a176d8a86 (diff) |
Fix some parsing mistakes
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/compiler.lm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compiler/compiler.lm b/src/compiler/compiler.lm index 59b0ee3..a4968f9 100644 --- a/src/compiler/compiler.lm +++ b/src/compiler/compiler.lm @@ -20,7 +20,7 @@ context fspec context container context enum lex - ignore / space+ / + ignore / '//' [^\n]* '\n' | space+ / literal `= `, `{ `} end @@ -47,7 +47,7 @@ context fspec context strukt # <- struct is taken :( lex - ignore / space+ / + ignore / '//' [^\n]* '\n' | space+ / literal `{ `} end @@ -64,7 +64,7 @@ context fspec context select lex - ignore / space+ / + ignore / '//' [^\n]* '\n' | space+ / literal `( `) `{ `} `* end @@ -86,15 +86,15 @@ context fspec context declaration lex - ignore / space+ / + ignore / '//' [^\n]* '\n' | space+ / literal `; `| `[ `] + token VISUAL / 'nul' | 'dec' | 'hex' | 'str' / end literal `enum `struct - token VISUAL / 'nul' | 'dec' | 'hex' | 'str' / def visual - [WS+ name:VISUAL] + [name:VISUAL] def filter [`| function:reference::function::type] |