From af80858e888c5f36979da88fcb1080de7b848967 Mon Sep 17 00:00:00 2001 From: David Beazley Date: Thu, 27 Oct 2022 13:44:12 -0500 Subject: Reorganization. Added makefile --- tests/lex_token2.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/lex_token2.py (limited to 'tests/lex_token2.py') diff --git a/tests/lex_token2.py b/tests/lex_token2.py new file mode 100644 index 0000000..00e758b --- /dev/null +++ b/tests/lex_token2.py @@ -0,0 +1,19 @@ +# lex_token2.py +# +# Tests for tokens of wrong type + +import ply.lex as lex + +tokens = "PLUS MINUS NUMBER" + +t_PLUS = r'\+' +t_MINUS = r'-' +t_NUMBER = r'\d+' + +def t_error(t): + pass + + +lex.lex() + + -- cgit v1.2.1