File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,15 @@ Python version of SimplePEG
33
44To use, simply do::
55
6- >>> import SPEG from simplepeg
7- >>> parser = s.SPEG()
8- >>> # will throw Exception if grammar is invalid
6+ >>> from simplepeg import SPEG
7+ >>> parser = SPEG()
98 >>> parser.parse_grammar('GRAMMAR test b -> "a";')
10- >>> # will throw Exception if text have invalid grammar
119 >>> ast = parser.parse_text('a')
1210 >>> print ast.to_json()
1311
1412or::
1513
16- >>> import SPEG from simplepeg
17- >>> parser = s. SPEG()
14+ >>> from simplepeg import SPEG
15+ >>> parser = SPEG()
1816 >>> ast = parser.parse('GRAMMAR test b -> "a";', 'a')
1917 >>> print ast.to_json()
Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ def readme():
44 with open ('README.rst' ) as f :
55 return f .read ()
66
7+ with open ('LICENSE' ) as f :
8+ license = f .read ()
9+
710setup (name = 'simplepeg' ,
8- version = '1.0.0 ' ,
11+ version = '1.0.1 ' ,
912 description = 'Python version of SimplePEG' ,
1013 long_description = readme (),
1114 classifiers = [
@@ -18,7 +21,7 @@ def readme():
1821 author = 'Oleksii Okhrymenko' ,
1922 author_email = 'ai_boy@live.ru' ,
2023 keywords = 'peg parser grammar' ,
21- license = 'MIT' ,
24+ license = license ,
2225 packages = ['simplepeg' ],
2326 include_package_data = True ,
2427 zip_safe = False )
You can’t perform that action at this time.
0 commit comments