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