Skip to content

Commit 4b9e746

Browse files
author
Oleksii Okhrymenko
committed
Fix description and example in README
1 parent 39be10a commit 4b9e746

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

README.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ Python version of SimplePEG
33

44
To 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

1412
or::
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()

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
710
setup(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)

0 commit comments

Comments
 (0)