def p_bigBlock(p): '''bigBlock : CURLYL bigBlockIn CURLYR | CURLYL CURLYR''' if len(p) == 4: p[0] = sbml_nodes.blockNode(p[2]) else: p[0] = sbml_nodes.blockNode([])
def p_block(p): '''block : CURLYL blockIn CURLYR | CURLYL CURLYR''' if (len(p) == 3): p[0] = sbml_nodes.blockNode([]) else: p[0] = sbml_nodes.blockNode(p[2])
def p_expression_entire(p): '''expression : entire''' p[0] = sbml_nodes.blockNode(p[1])