xo-reader2 stack: expand symbol table to store typedefs

+ typedef utest
+ misc qol policy choices
This commit is contained in:
Roland Conybeare 2026-03-11 07:49:14 -05:00
commit 458fd04ca2
4 changed files with 10 additions and 2 deletions

View file

@ -591,6 +591,8 @@ namespace xo {
tk_type = tokentype::tk_type;
} else if (tk_text == "def") {
tk_type = tokentype::tk_def;
} else if (tk_text == "deftype") {
tk_type = tokentype::tk_deftype;
} else if (tk_text == "lambda") {
tk_type = tokentype::tk_lambda;
} else if (tk_text == "if") {

View file

@ -51,6 +51,7 @@ namespace xo {
CASE(tk_type);
CASE(tk_def);
CASE(tk_deftype);
CASE(tk_lambda);
CASE(tk_if);
CASE(tk_then);