summaryrefslogtreecommitdiff
path: root/colm/colm.lm
diff options
context:
space:
mode:
Diffstat (limited to 'colm/colm.lm')
-rw-r--r--colm/colm.lm2
1 files changed, 2 insertions, 0 deletions
diff --git a/colm/colm.lm b/colm/colm.lm
index dce0f83b..e559209c 100644
--- a/colm/colm.lm
+++ b/colm/colm.lm
@@ -15,6 +15,7 @@ lex
token NAMESPACE / 'namespace' /
token FOR / 'for' /
token IF / 'if' /
+ token WHILE / 'while' /
token ELSIF / 'elsif' /
token ELSE / 'else' /
token IN / 'in' /
@@ -219,6 +220,7 @@ def statement
| [VarDef: var_def OptDefInit: opt_def_init]
| [FOR ForDecl: id COLON TypeRef: type_ref IN IterCall: iter_call BlockOrSingle: block_or_single]
| [IF IfExpr: code_expr BlockOrSingle: block_or_single ElsifList: elsif_list]
+| [WHILE WhileExpr: code_expr BlockOrSingle: block_or_single]
| [LhsVarRef: var_ref EQUALS CodeExpr: code_expr]
def elsif_list