xo-tokenizer xo-reader: + bool literals + if-expr parsing
This commit is contained in:
parent
b0305ede55
commit
ce760bd5cf
30 changed files with 848 additions and 74 deletions
|
|
@ -13,6 +13,7 @@ namespace xo {
|
|||
#define CASE(x) case tokentype::x: return STRINGIFY(x)
|
||||
|
||||
switch(tk_type) {
|
||||
CASE(tk_bool);
|
||||
CASE(tk_i64);
|
||||
CASE(tk_f64);
|
||||
CASE(tk_string);
|
||||
|
|
@ -46,6 +47,8 @@ namespace xo {
|
|||
CASE(tk_def);
|
||||
CASE(tk_lambda);
|
||||
CASE(tk_if);
|
||||
CASE(tk_then);
|
||||
CASE(tk_else);
|
||||
CASE(tk_let);
|
||||
|
||||
CASE(tk_in);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue