Exemple #1
0
 def p_boolean_literal(self, p):
     """boolean_literal : TRUE
                        | FALSE
     """
     p[0] = ast.Boolean(p[1], lineno=p.lineno(1))
Exemple #2
0
 def p_boolean_literal(self, p):
     """boolean_literal : TRUE
                        | FALSE
     """
     p[0] = ast.Boolean(p[1])