Skip to content

Commit

Permalink
Fixes more typos and bump pypi version to v3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
sighingnow committed Dec 12, 2016
1 parent 0619c72 commit 5ffc232
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ parsec.py
.. image:: https://img.shields.io/github/license/sighingnow/parsec.py.svg
:target: https://github.com/sighingnow/parsec.py/blob/master/LICENSE

A univeral Python parser combinator library inspirted by Parsec library of Haskell.
A universal Python parser combinator library inspired by Parsec library of Haskell.
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
# built documents.
#
# The short X.Y version.
version = '3.2'
version = '3.3'
# The full version, including alpha/beta/rc tags.
release = '3.2'
release = '3.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:Date: 2016-11-18
:Version: 3.2
:Date: 2016-12-12
:Version: 3.3
:Authors: - He Tao

.. meta::
Expand Down
2 changes: 1 addition & 1 deletion examples/jsonc.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def object_pair():

@generate
def json_object():
'''Parse json object.'''
'''Parse JSON object.'''
yield lbrace
pairs = yield sepBy(object_pair, comma)
yield rbrace
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

setup(
name = 'parsec',
version = '3.2',
version = '3.3',
description = 'parser combinator.',
long_description = 'A univeral Python parser combinator library inspirted by Parsec library of Haskell.',
long_description = 'A universal Python parser combinator library inspired by Parsec library of Haskell.',
author = 'He Tao',
author_email = 'sighingnow@gmail.com',
url = 'https://github.com/sighingnow/parsec.py',
Expand Down
12 changes: 6 additions & 6 deletions src/parsec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

'''
A univeral Python parser combinator library inspirted by Parsec library of Haskell.
A universal Python parser combinator library inspired by Parsec library of Haskell.
'''

__author__ = 'He Tao, sighingnow@gmail.com'
Expand Down Expand Up @@ -45,7 +45,7 @@ def __str__(self):
return 'expected {} at {}'.format(self.expected, self.loc())

##########################################################################
# Defination the Value model of parsec.py.
# Definition the Value model of parsec.py.
##########################################################################


Expand Down Expand Up @@ -218,7 +218,7 @@ def parsecmap(self, fn):
return self.bind(lambda res: Parser(lambda _, index: Value.success(index, fn(res))))

def result(self, res):
'''Return a value according to the param `res` when parse successfully.'''
'''Return a value according to the parameter `res` when parse successfully.'''
return self >> Parser(lambda _, index: Value.success(index, res))

def mark(self):
Expand Down Expand Up @@ -328,7 +328,7 @@ def parsecmap(p, fn):


def result(p, res):
'''Return a value according to the param `res` when parse successfully.'''
'''Return a value according to the parameter `res` when parse successfully.'''
return p.result(res)


Expand Down Expand Up @@ -484,13 +484,13 @@ def sepBy1(p, sep):


def endBy(p, sep):
'''`endBy(p, sep)` parses zero or more occurrences of `p`, seperated and
'''`endBy(p, sep)` parses zero or more occurrences of `p`, separated and
ended by `sep`. Returns a list of values returned by `p`.'''
return separated(p, sep, 0, maxt=float('inf'), end=True)


def endBy1(p, sep):
'''`endBy1(p, sep) parses one or more occurrences of `p`, seperated and
'''`endBy1(p, sep) parses one or more occurrences of `p`, separated and
ended by `sep`. Returns a list of values returned by `p`.'''
return separated(p, sep, 1, maxt=float('inf'), end=True)

Expand Down

0 comments on commit 5ffc232

Please sign in to comment.