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