mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-20 10:54:59 -07:00
fix nil expressions mapping to valid expression kinds, thus implying children nodes
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
// op_string - string for quick display of the operator
|
||||
EVAL_ExprKindTable:
|
||||
{
|
||||
{ Nil 0 "" }
|
||||
|
||||
{ ArrayIndex 2 "[]" }
|
||||
{ MemberAccess 2 "." }
|
||||
{ Deref 1 "*" }
|
||||
|
||||
@@ -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("*"),
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
typedef U32 EVAL_ExprKind;
|
||||
typedef enum EVAL_ExprKindEnum
|
||||
{
|
||||
EVAL_ExprKind_Nil,
|
||||
EVAL_ExprKind_ArrayIndex,
|
||||
EVAL_ExprKind_MemberAccess,
|
||||
EVAL_ExprKind_Deref,
|
||||
@@ -68,10 +69,10 @@ EVAL_ResultCode_COUNT,
|
||||
} EVAL_ResultCode;
|
||||
|
||||
C_LINKAGE_BEGIN
|
||||
extern U8 eval_expr_kind_child_counts[39];
|
||||
extern String8 eval_expr_kind_strings[39];
|
||||
extern U8 eval_expr_kind_child_counts[40];
|
||||
extern String8 eval_expr_kind_strings[40];
|
||||
extern String8 eval_result_code_display_strings[11];
|
||||
extern String8 eval_expr_op_strings[39];
|
||||
extern String8 eval_expr_op_strings[40];
|
||||
C_LINKAGE_END
|
||||
|
||||
#endif // EVAL_META_H
|
||||
|
||||
Reference in New Issue
Block a user