aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/expression.h
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-01-26 00:48:48 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-09-26 18:11:16 +0200
commitddebbc1dff5701d2c97562de0f91e51cd5544382 (patch)
treedcc8c10192f21e2b8c856bb1a08827de6f339fc1 /expression.h
parente6d4cd7933a006aa71e8aa265e3c2c40ca9030d3 (diff)
downloadsparse-dev-ddebbc1dff5701d2c97562de0f91e51cd5544382.tar.gz
string: add helper string_expression()
This will help to detect earlier syntax errors concerning string constants. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'expression.h')
-rw-r--r--expression.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/expression.h b/expression.h
index ed6f4d65..13f35e64 100644
--- a/expression.h
+++ b/expression.h
@@ -270,6 +270,7 @@ struct token *parse_expression(struct token *token, struct expression **tree);
struct token *conditional_expression(struct token *token, struct expression **tree);
struct token *primary_expression(struct token *token, struct expression **tree);
struct token *parens_expression(struct token *token, struct expression **expr, const char *where);
+struct token *string_expression(struct token *token, struct expression **expr, const char *where);
struct token *assignment_expression(struct token *token, struct expression **tree);
extern int expand_symbol(struct symbol *);