diff options
Diffstat (limited to 'bfs.h')
-rw-r--r-- | bfs.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -111,12 +111,13 @@ enum timeunit { }; struct expr { + /** The function that evaluates this expression. */ + eval_fn *eval; + /** The left hand side of the expression. */ struct expr *lhs; /** The right hand side of the expression. */ struct expr *rhs; - /** The function that evaluates this expression. */ - eval_fn *eval; /** The optional comparison flag. */ enum cmpflag cmp; @@ -138,6 +139,9 @@ struct expr { /** Optional string data for this expression. */ const char *sdata; + + /** Whether this expression has no side effects. */ + bool pure; }; /** |