48 lines
3.1 KiB
Python
48 lines
3.1 KiB
Python
|
|
# parsetab.py
|
|
# This file is automatically generated. Do not edit.
|
|
# pylint: disable=W,C,R
|
|
_tabversion = '3.10'
|
|
|
|
_lr_method = 'LALR'
|
|
|
|
_lr_signature = 'statementATOM ATTRIB BASE10 BASE16 COMMENT DEEP SECTION STRING\n value : BASE16\n | BASE10\n | STRING\n | ATOM\n attribute : ATOM ATTRIB value\n attributes : attributes attribute\n attributes : attribute\n \n section : SECTION ATOM\n | SECTION ATOM attributes\n \n values : values value\n values : value\n \n element : ATOM values\n | ATOM values attributes\n | ATOM attributes\n \n statement : element\n | DEEP element\n | section\n '
|
|
|
|
_lr_action_items = {'DEEP':([0,],[3,]),'ATOM':([0,3,5,6,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,],[5,5,8,16,-4,8,20,-11,-7,-1,-2,-3,20,23,20,-10,-6,20,-4,-5,]),'SECTION':([0,],[6,]),'$end':([1,2,4,7,8,9,10,11,12,13,14,15,16,18,19,21,22,23,24,],[0,-15,-17,-16,-4,-12,-14,-11,-7,-1,-2,-3,-8,-13,-10,-6,-9,-4,-5,]),'BASE16':([5,8,9,11,13,14,15,17,19,],[13,-4,13,-11,-1,-2,-3,13,-10,]),'BASE10':([5,8,9,11,13,14,15,17,19,],[14,-4,14,-11,-1,-2,-3,14,-10,]),'STRING':([5,8,9,11,13,14,15,17,19,],[15,-4,15,-11,-1,-2,-3,15,-10,]),'ATTRIB':([8,20,],[17,17,]),}
|
|
|
|
_lr_action = {}
|
|
for _k, _v in _lr_action_items.items():
|
|
for _x,_y in zip(_v[0],_v[1]):
|
|
if not _x in _lr_action: _lr_action[_x] = {}
|
|
_lr_action[_x][_k] = _y
|
|
del _lr_action_items
|
|
|
|
_lr_goto_items = {'statement':([0,],[1,]),'element':([0,3,],[2,7,]),'section':([0,],[4,]),'values':([5,],[9,]),'attributes':([5,9,16,],[10,18,22,]),'value':([5,9,17,],[11,19,24,]),'attribute':([5,9,10,16,18,22,],[12,12,21,12,21,21,]),}
|
|
|
|
_lr_goto = {}
|
|
for _k, _v in _lr_goto_items.items():
|
|
for _x, _y in zip(_v[0], _v[1]):
|
|
if not _x in _lr_goto: _lr_goto[_x] = {}
|
|
_lr_goto[_x][_k] = _y
|
|
del _lr_goto_items
|
|
_lr_productions = [
|
|
("S' -> statement","S'",1,None,None,None),
|
|
('value -> BASE16','value',1,'p_value','parser.py',7),
|
|
('value -> BASE10','value',1,'p_value','parser.py',8),
|
|
('value -> STRING','value',1,'p_value','parser.py',9),
|
|
('value -> ATOM','value',1,'p_value','parser.py',10),
|
|
('attribute -> ATOM ATTRIB value','attribute',3,'p_attribute','parser.py',17),
|
|
('attributes -> attributes attribute','attributes',2,'p_attributes','parser.py',24),
|
|
('attributes -> attribute','attributes',1,'p_attributes','parser.py',25),
|
|
('section -> SECTION ATOM','section',2,'p_section','parser.py',36),
|
|
('section -> SECTION ATOM attributes','section',3,'p_section','parser.py',37),
|
|
('values -> values value','values',2,'p_values','parser.py',46),
|
|
('values -> value','values',1,'p_values','parser.py',47),
|
|
('element -> ATOM values','element',2,'p_element','parser.py',58),
|
|
('element -> ATOM values attributes','element',3,'p_element','parser.py',59),
|
|
('element -> ATOM attributes','element',2,'p_element','parser.py',60),
|
|
('statement -> element','statement',1,'p_statement','parser.py',70),
|
|
('statement -> DEEP element','statement',2,'p_statement','parser.py',71),
|
|
('statement -> section','statement',1,'p_statement','parser.py',72),
|
|
]
|