def expression_varcreate(p): parser.appendtext("end")
def expression_varcreate(p): parser.appendtext("{0}{1}".format(p[0].getstr(), p[1].getstr()[:-1]))
def expression_ifstate(p): parser.appendtext("if {0} {1} {2} then".format(p[1].eval(), p[2].getstr(), p[3].eval()))
def expression_ifstate(p): parser.appendtext("function {0} {1}".format(p[1].getstr(), p[2].getstr()[:-1]))
def expression_forstate(p): parser.appendtext("for {0} = {1},{2} do".format(p[1].getstr(), p[2].eval(), p[3].eval()))
def expression_ifstate(p): parser.appendtext("if {0} then".format(p[1].eval()))
def expression_inc(p): parser.appendtext("{0} = {0} + 1".format(p[0].eval()))
def expression_varcreate(p): parser.appendtext("{0} = {1}".format(p[0].getstr(), p[2].eval()))
def expression_privarcreate(p): parser.appendtext("local " + varcreate(p[1].getstr(), p[3].eval()))