def makebool(value): b = ast.BoolConst(value) b.ty = ast.Type('bool') return b
def p_boolconst(p): '''expr : BOOLCONST''' p[0] = ast.BoolConst(p[1] == 'true').at(loc(p))