directly use Node's children in UnitNode object
This commit is contained in:
parent
9063eb10ce
commit
0f82c9b43b
@ -17,7 +17,7 @@ class Parser(object):
|
|||||||
if self.saw_error:
|
if self.saw_error:
|
||||||
p[0] = None
|
p[0] = None
|
||||||
else:
|
else:
|
||||||
p[0] = UnitNode([p[1]])
|
p[0] = UnitNode(p[1].children)
|
||||||
|
|
||||||
def p_unit_items(self, p):
|
def p_unit_items(self, p):
|
||||||
'unit_items : unit_item unit_items'
|
'unit_items : unit_item unit_items'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user