mung/language.py
cecilkorik 8a5b25e6b0 mung server
--HG--
branch : mung
2010-11-13 04:17:50 +00:00

20 lines
183 B
Python

from ply import lex
tokens = (
"OPERATION",
"LITERAL",
"VARIABLE"
)
t_OPERATION = (
r"CALLBUILTIN|CALLFUNC|SETVAR|RETURN"
)
t_LITERAL = (
r'"i"'
)
lex.lex()
print lex