xo-tokenizer: mvp: recognize keywords

This commit is contained in:
Roland Conybeare 2024-08-06 11:37:41 -04:00
commit 5d31ac7a43
3 changed files with 37 additions and 0 deletions

View file

@ -100,6 +100,14 @@ namespace xo {
token::string_token("tab to the right [\t], to the right [\t]"), true},
{"symbol", false, token::symbol_token("symbol"), true},
{"type", false, token::type(), true},
{"def", false, token::def(), true},
{"lambda", false, token::lambda(), true},
{"if", false, token::if_token(), true},
{"let", false, token::let(), true},
{"in", false, token::in(), true},
{"end", false, token::end(), true},
};
}