shift-reduce-conflict
Creating shift-reduce / reduce-reduce free grammars
I\'m trying to implement a simple Java like language parser in sablecc, although I\'m constantly running into shift-reduce / reduce-reduce problems when implementing if, while and block statements.[详细]
2023-02-24 03:03 分类:问答Happy/YACC reducing when it should shift
I\'m working on a parser and I\'m really frustrated. In the language, we can have an expression like:[详细]
2023-02-12 09:43 分类:问答Packrat parser conflict
Suppose I try to parse a string abc with a Packrat Parser: lazy val abc: PackratParser[AnyRef] = ab ~ \"c\"[详细]
2023-02-10 16:26 分类:问答resolve grammar ambiguity
I\'ll post the rules of the grammar in question to start. interface_sections :main_interfacebind_buttonsbind_functions bind_panel_items[详细]
2023-01-23 19:50 分类:问答shift/reduce conflict with SableCC
I\'m at my first experience with SableCC and grammar definition. I have the following grammar (a part of it):[详细]
2023-01-06 10:14 分类:问答How to solve a shift/reduce conflict?
I\'m using CUP to开发者_如何学C create a parser that I need for my thesis. I have a shift/reduce conflict in my grammar. I have this production rule:[详细]
2023-01-06 07:48 分类:问答yacc shift reduce problem
i have what i think is a simple part of my grammar this is getting an error from yacc. i know i need to add a %prec somewhere, but not really sure where.[详细]
2022-12-19 21:30 分类:问答Why do i have a shift reduce/conflict on the ')' and not '('?
I have syntax like %(var开发者_JS百科) and %var and (var) My rules are something like optExpr: \'%\'\'(\'CommaLoop\')\'[详细]
2022-12-12 20:55 分类:问答