Implement reserved operators.

This commit is contained in:
2018-06-21 19:00:45 -07:00
parent a5429ae2c8
commit 48300cd86e
3 changed files with 41 additions and 1 deletions

View File

@@ -23,6 +23,11 @@ struct libab_reserved_operator_s {
* The associativity of this operator.
*/
int associativity;
/**
* The function this operator performs.
*/
libab_result (*function)(libab*, libab_ref*, libab_tree*,
libab_tree*, libab_ref*);
};
typedef struct libab_reserved_operator_s libab_reserved_operator;