summaryrefslogtreecommitdiff
path: root/parse/tok.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-12-28 14:35:44 -0500
committerOri Bernstein <ori@eigenstate.org>2013-12-28 14:35:44 -0500
commit58550115b787023de68c7f760e8dd68c7d57c719 (patch)
treee2c0b125b28551625679e8e7cc0cca65234e3824 /parse/tok.c
parent778de2674cd8f3b2951e367482ef6e56f7382424 (diff)
downloadmc-58550115b787023de68c7f760e8dd68c7d57c719.tar.gz
Add parsing support for iter loops
'for expr in loop' syntax is now parsed, although we don't actually generate code for it.
Diffstat (limited to 'parse/tok.c')
-rw-r--r--parse/tok.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/tok.c b/parse/tok.c
index a8b8f9b..2d37629 100644
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -171,6 +171,7 @@ static int kwd(char *s)
{"generic", Tgeneric},
{"goto", Tgoto},
{"if", Tif},
+ {"in", Tin},
{"match", Tmatch},
{"pkg", Tpkg},
{"protect", Tprotect},