[expr parser] Move acceleration into parse context.

This commit is contained in:
Miguel Lechon
2021-09-12 11:12:26 +02:00
parent aad96bf978
commit 4f4fb0f7f9
2 changed files with 30 additions and 30 deletions
+1 -6
View File
@@ -797,13 +797,8 @@ struct MD_ExprOperatorList
typedef struct MD_ExprOperatorTable MD_ExprOperatorTable;
struct MD_ExprOperatorTable
{
// TODO(mal): Something faster; arrays indexed by op kind or hash table...
MD_ExprOperatorList table[MD_ExprOperatorKind_COUNT];
MD_ExprOperatorList table[MD_ExprOperatorKind_COUNT]; // TODO(mal): Hash?
MD_MessageList errors;
MD_ExprOperator *call_op; // TODO: Move elsewhere
MD_ExprOperator *subscript_op;
MD_ExprOperator *bracket_set_op;
MD_ExprOperator *brace_set_op;
};
typedef struct MD_ExprNode MD_ExprNode;