parse functions return a Node instance
This commit is contained in:
parent
6f64f6d6d9
commit
0a816d9636
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
from lexrules import tokens
|
from lexrules import tokens
|
||||||
|
from Node import Node
|
||||||
|
|
||||||
def p_c_expr(p):
|
def p_c_expr(p):
|
||||||
'c_expr : C LPAREN STRING RPAREN SEMICOLON'
|
'c_expr : C LPAREN STRING RPAREN SEMICOLON'
|
||||||
p[0] = 'success'
|
p[0] = Node('c_expr', data=p[3])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user