Skip to content

Commit

Permalink
Fixed issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen van der Heijden committed Oct 25, 2016
1 parent 7c9c537 commit d33a84b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2016.10.25, Version 1.1.4 (Stable)

- Fixed exporting Tokens to JavaScript and Python. (issue #2)

2016.10.24, Version 1.1.3 (Stable)

- Added export to Python method. This can be useful even if the source is
Expand Down
2 changes: 1 addition & 1 deletion pyleri/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
__author__ = 'Jeroen van der Heijden'
__maintainer__ = 'Jeroen van der Heijden'
__email__ = 'jeroen@transceptor.technology'
__version__ = '1.1.3'
__version__ = '1.1.4'
4 changes: 2 additions & 2 deletions pyleri/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def _get_node_result(self, root, tree, rule, s, node):
return False, node.start

def _run_export_js(self, js_identation, ident, classes):
return 'Tokens(\'{}\')'
return 'Tokens(\'{}\')'.format(' '.join(self._tokens))

def _run_export_py(self, py_identation, ident, classes):
return 'Tokens(\'{}\')'
return 'Tokens(\'{}\')'.format(' '.join(self._tokens))

@c_export
def _run_export_c(self, c_identation, ident, enums, gid):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from distutils.core import setup

VERSION = '1.1.3'
VERSION = '1.1.4'

setup(
name='pyleri',
Expand Down

0 comments on commit d33a84b

Please sign in to comment.