Shift/reduce conflict despite precedence rules
问题 The language I'm writing a parser for has three constructs that are relevant here: the ord operator, represented by TOK_ORD , which casts character expressions into integer expressions, and [ ] and . , which are used for index and field access, respectively, just like in C. Here's an excerpt from my precedence rules: %right TOK_ORD %left PREC_INDEX PREC_MEMBER My grammar has a nonterminal expr , which represents expressions. Here's some relevant snippets from the grammar ( TOK_IDENT is a