28 lines
249 B
Python
28 lines
249 B
Python
|
# lex_token.py
|
||
|
#
|
||
|
# Missing documentation string
|
||
|
|
||
|
import lex
|
||
|
|
||
|
tokens = [
|
||
|
"PLUS",
|
||
|
"MINUS",
|
||
|
"NUMBER",
|
||
|
]
|
||
|
|
||
|
t_PLUS = r'\+'
|
||
|
t_MINUS = r'-'
|
||
|
def t_NUMBER(t):
|
||
|
pass
|
||
|
|
||
|
def t_error(t):
|
||
|
pass
|
||
|
|
||
|
|
||
|
import sys
|
||
|
sys.tracebacklimit = 0
|
||
|
|
||
|
lex.lex()
|
||
|
|
||
|
|