summaryrefslogtreecommitdiff
path: root/ext/ply/test/lex_token1.py
blob: e8eca2b63901d731883c8bb9f5945c45fbfb454d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# lex_token.py
#
# Tests for absence of tokens variable

import lex

t_PLUS = r'\+'
t_MINUS = r'-'
t_NUMBER = r'\d+'

def t_error(t):
    pass

import sys
sys.tracebacklimit = 0

lex.lex()