projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3ff9ea
)
Add EXPR_ERROR to the precedence list.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 28 Mar 2012 13:53:51 +0000
(15:53 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 28 Mar 2012 13:53:51 +0000
(15:53 +0200)
ast.c
patch
|
blob
|
history
diff --git
a/ast.c
b/ast.c
index
e59e3b1
..
883cd05
100644
(file)
--- a/
ast.c
+++ b/
ast.c
@@
-101,6
+101,7
@@
static int right_to_left(unsigned precedence)
static unsigned get_expression_precedence(expression_kind_t kind)
{
static const unsigned prec[] = {
+ [EXPR_ERROR] = PREC_PRIMARY,
[EXPR_REFERENCE] = PREC_PRIMARY,
[EXPR_REFERENCE_ENUM_VALUE] = PREC_PRIMARY,
[EXPR_LITERAL_INTEGER] = PREC_PRIMARY,