import Rvar f = open('origin.cpp','r') s = f.read() s = Rvar.trans(s,0) print s[0]
def trans(s): x = 0 [s, x] = Rvar.trans(s,x) [s, x] = Rnum.trans(s,x) return s