blob: 6fca300b1e751752edf37bc4c2bc7ac402aa35c1 [file] [log] [blame]
Nathan Binkerte1270f82009-08-16 13:39:58 -07001# lex_token1.py
Steve Reinhardtba2eae52006-05-22 14:29:33 -04002#
3# Tests for absence of tokens variable
4
Nathan Binkert44ebb8d2007-05-24 21:54:51 -07005import sys
Nathan Binkerte1270f82009-08-16 13:39:58 -07006if ".." not in sys.path: sys.path.insert(0,"..")
Nathan Binkert44ebb8d2007-05-24 21:54:51 -07007
8import ply.lex as lex
Steve Reinhardtba2eae52006-05-22 14:29:33 -04009
10t_PLUS = r'\+'
11t_MINUS = r'-'
12t_NUMBER = r'\d+'
13
14def t_error(t):
15 pass
16
Steve Reinhardtba2eae52006-05-22 14:29:33 -040017lex.lex()
18
19