fix nil expressions mapping to valid expression kinds, thus implying children nodes

This commit is contained in:
Ryan Fleury
2024-02-23 11:18:53 -08:00
parent c1984edadf
commit dd0416f9f9
3 changed files with 12 additions and 6 deletions
+6 -3
View File
@@ -4,8 +4,9 @@
//- GENERATED CODE
C_LINKAGE_BEGIN
U8 eval_expr_kind_child_counts[39] =
U8 eval_expr_kind_child_counts[40] =
{
0,
2,
2,
1,
@@ -47,8 +48,9 @@ U8 eval_expr_kind_child_counts[39] =
0,
};
String8 eval_expr_kind_strings[39] =
String8 eval_expr_kind_strings[40] =
{
str8_lit_comp("Nil"),
str8_lit_comp("ArrayIndex"),
str8_lit_comp("MemberAccess"),
str8_lit_comp("Deref"),
@@ -105,8 +107,9 @@ str8_lit_comp("Insufficient evaluation machine stack space."),
str8_lit_comp("Malformed bytecode."),
};
String8 eval_expr_op_strings[39] =
String8 eval_expr_op_strings[40] =
{
str8_lit_comp(""),
str8_lit_comp("[]"),
str8_lit_comp("."),
str8_lit_comp("*"),