parser.y in lrama-0.6.2 vs parser.y in lrama-0.6.3
- old
+ new
@@ -127,9 +127,29 @@
ident_or_tags: val[6],
token_code: val[3],
lineno: val[3].line
)
}
+ | "%after-shift" IDENTIFIER
+ {
+ @grammar.after_shift = val[1]
+ }
+ | "%before-reduce" IDENTIFIER
+ {
+ @grammar.before_reduce = val[1]
+ }
+ | "%after-reduce" IDENTIFIER
+ {
+ @grammar.after_reduce = val[1]
+ }
+ | "%after-shift-error-token" IDENTIFIER
+ {
+ @grammar.after_shift_error_token = val[1]
+ }
+ | "%after-pop-stack" IDENTIFIER
+ {
+ @grammar.after_pop_stack = val[1]
+ }
symbol_declaration: "%token" token_declarations
| "%type" symbol_declarations
{
val[1].each {|hash|