diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2016-08-09 21:24:40 +0000 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2016-08-09 21:24:40 +0000 |
commit | 9c57a4241aa9d531de00f25ec3fe1723fe7268cc (patch) | |
tree | 4f435c112b7cf434e7ec114aa196a5b45907e014 /src/examples/ebnftest.py | |
parent | 5b3a2bff031f821ab2b69d157f1b24408b201a1b (diff) | |
download | pyparsing-git-9c57a4241aa9d531de00f25ec3fe1723fe7268cc.tar.gz |
Add missing authorship attributions and copyrights to examples
Diffstat (limited to 'src/examples/ebnftest.py')
-rw-r--r-- | src/examples/ebnftest.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/examples/ebnftest.py b/src/examples/ebnftest.py index 32c7fed..253404f 100644 --- a/src/examples/ebnftest.py +++ b/src/examples/ebnftest.py @@ -1,9 +1,15 @@ +#
+# ebnftest.py
+#
+# Test script for ebnf.py
+#
+# Submitted 2004 by Seo Sanghyeon
+#
print('Importing pyparsing...')
from pyparsing import *
print('Constructing EBNF parser with pyparsing...')
import ebnf
-import sets
grammar = '''
@@ -39,7 +45,7 @@ parsers = ebnf.parse(grammar, table) ebnf_parser = parsers['syntax']
commentcharcount = 0
-commentlocs = sets.Set()
+commentlocs = set()
def tallyCommentChars(s,l,t):
global commentcharcount,commentlocs
# only count this comment if we haven't seen it before
|