def state_48_actions(parser, lexer): value = None raise ShiftAccept() replay = [StateTermValue(0, Nt(InitNt(goal=Nt('grammar'))), value, False)] del parser.stack[-2:] parser.shift_list(replay, lexer) return
def state_43_actions(parser, lexer): value = None value = parser.stack[-1].value replay = [StateTermValue(0, Nt(InitNt(goal=Nt('grammar'))), value, False)] del parser.stack[-1:] parser.shift_list(replay, lexer) return
def state_48_actions(parser, lexer): # { Accept(); Unwind(Nt(InitNt(goal=Nt('grammar'))), 2, 0) } value = None raise ShiftAccept() replay = [] replay.append(StateTermValue(0, Nt(InitNt(goal=Nt('grammar'))), value, False)) del parser.stack[-2:] parser.replay.extend(replay) r0 = parser.replay.pop() state_84_actions(parser, lexer, r0) return
def state_43_actions(parser, lexer): # { value = AstBuilder::id(1) [off: 0]; Unwind(Nt(InitNt(goal=Nt('grammar'))), 1, 0) } value = None value = parser.stack[-1].value replay = [] replay.append(StateTermValue(0, Nt(InitNt(goal=Nt('grammar'))), value, False)) del parser.stack[-1:] parser.replay.extend(replay) r0 = parser.replay.pop() state_84_actions(parser, lexer, r0) return
# 7. {'}': 71, 'IDENT': 52, 'STR': 53, Nt('prod'): 57, Nt('terms'): 8, Nt('term'): 51, Nt('symbol'): 9}, # 8. {';': 58, 'IDENT': 52, 'STR': 53, '=>': 15, Nt('term'): 59, Nt('symbol'): 9, Nt('reducer'): 38}, # 9. {'=>': 79, 'STR': 79, 'IDENT': 79, ';': 79, '?': 60, Nt('reducer'): 79, Nt('symbol'): 79, Nt('term'): 79}, # 10. {'nt': 18, 'COMMENT': 19, 'goal': 20, 'token': 21, 'var': 22, Nt('grammar'): 43, Nt('nt_defs'): 12, Nt('nt_def'): 44, Nt('token_defs'): 11, Nt('token_def'): 45, Nt(InitNt(goal=Nt('grammar'))): 23}, # 11. {'nt': 18, 'COMMENT': 19, 'goal': 20, 'token': 21, 'var': 22, Nt('nt_defs'): 13, Nt('nt_def'): 44, Nt('token_def'): 47}, # 12. {End(): 77, 'goal': 20, 'COMMENT': 19, 'nt': 18, Nt('nt_def'): 46}, # 13. {End(): 78, 'goal': 20, 'COMMENT': 19, 'nt': 18, Nt('nt_def'): 46}, # 14.
actions = [ # 0. { 'nt': 2, 'COMMENT': 3, 'goal': 4, 'token': 6, 'var': 7, Nt('grammar'): 43, Nt('nt_defs'): 1, Nt('nt_def'): 44, Nt('token_defs'): 5, Nt('token_def'): 45, Nt(InitNt(goal=Nt('grammar'))): 8 }, # 1. { End(): 77, 'goal': 4, 'COMMENT': 3, 'nt': 2, Nt('nt_def'): 46 }, # 2. { 'IDENT': 10 },
return def state_79_actions(parser, lexer): value = None value = parser.stack[-2].value replay = [StateTermValue(0, Nt('term'), value, False)] replay = replay + parser.stack[-1:] del parser.stack[-2:] parser.shift_list(replay, lexer) return actions = [ # 0. {'nt': 2, 'COMMENT': 3, 'goal': 4, 'token': 6, 'var': 7, Nt('grammar'): 43, Nt('nt_defs'): 1, Nt('nt_def'): 44, Nt('token_defs'): 5, Nt('token_def'): 45, Nt(InitNt(goal=Nt('grammar'))): 8}, # 1. {End(): 77, 'goal': 4, 'COMMENT': 3, 'nt': 2, Nt('nt_def'): 46}, # 2. {'IDENT': 10}, # 3. {'nt': 11, 'goal': 12}, # 4.