Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/third_party/ply/test/lex_token1.py
6162 views
1
# lex_token1.py
2
#
3
# Tests for absence of tokens variable
4
5
import sys
6
if ".." not in sys.path: sys.path.insert(0,"..")
7
8
import ply.lex as lex
9
10
t_PLUS = r'\+'
11
t_MINUS = r'-'
12
t_NUMBER = r'\d+'
13
14
def t_error(t):
15
pass
16
17
lex.lex()
18
19
20
21