summaryrefslogtreecommitdiff
path: root/example/ansic
diff options
context:
space:
mode:
Diffstat (limited to 'example/ansic')
-rw-r--r--example/ansic/clex.py3
-rw-r--r--example/ansic/cparse.py1
2 files changed, 0 insertions, 4 deletions
diff --git a/example/ansic/clex.py b/example/ansic/clex.py
index 4bde1d7..5d99416 100644
--- a/example/ansic/clex.py
+++ b/example/ansic/clex.py
@@ -4,9 +4,6 @@
# A lexer for ANSI C.
# ----------------------------------------------------------------------
-import sys
-sys.path.insert(0, "../..")
-
import ply.lex as lex
# Reserved words
diff --git a/example/ansic/cparse.py b/example/ansic/cparse.py
index 5fe9bce..21c3478 100644
--- a/example/ansic/cparse.py
+++ b/example/ansic/cparse.py
@@ -4,7 +4,6 @@
# Simple parser for ANSI C. Based on the grammar in K&R, 2nd Ed.
# -----------------------------------------------------------------------------
-import sys
import clex
import ply.yacc as yacc