hapy/generate_py.py
def py_atom(tok):
        """return the value of a token"""

        # if its a boolean, don't stringify the value, return it
        # raw
        if tok["type"] == "bool":
            return "%s" % tok["value"]
        return json.dumps(tok["value"])
return the value of a token
return the value of a token
return the value of a token
def py_atom(tok):
        if tok["type"] == "bool":
            return "%s" % tok["value"]
        return json.dumps(tok["value"])
def py_atom ( tok ) : if tok [ "type" ] == "bool" : return "%s" % tok [ "value" ] return json . dumps ( tok [ "value" ] )
return the value of a token
return the value of a token
"""return the value of a token""" # if its a boolean, don't stringify the value, return it # raw
tok