Skip to content

Commit dcdcc4c

Browse files
committed
Fix booleans
1 parent 3bdb927 commit dcdcc4c

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ A restricted Python to idiomatic JavaScript / Ruby / Go / C# translator
77

88
[Pseudo](https://github.com/alehander42/pseudo) is a framework for high level code generation: it is used by this compiler to translate a subset of Python to all Pseudo-supported languages
99

10-
**If you are using Python3.5 and you experience problems with an already installed version of pseudo-python, please upgrade it to `0.2.10` (`pip3 install pseudo-python --upgrade`)**
10+
**If you are using Python3.5 and you experience problems with an already installed version of pseudo-python, please upgrade it to `0.2.12s` (`pip3 install pseudo-python --upgrade`)**
11+
1112

1213

1314
## Supported subset
@@ -25,6 +26,8 @@ That's why it can be mapped to a well defined subset of a language
2526

2627
It is meant as a framework consuming ast from parser generators / compilers / various tools and generating snippets / codebases in different target languages
2728

29+
# Plan
30+
2831
![a diagram illustrating the pseudon framework: compilers -> ast -> api translation -> target code](http://i.imgur.com/7ySfy5j.jpg?2)
2932

3033
# Pseudo supports

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.10
1+
0.2.12

pseudo_python/ast_translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ def _translate_handler(self, handler):
14011401

14021402
def _translate_nameconstant(self, value, location):
14031403
if value == True or value == False:
1404-
return {'type': 'boolean', 'value': value, 'pseudo_type': 'Boolean'}
1404+
return {'type': 'boolean', 'value': str(value).lower(), 'pseudo_type': 'Boolean'}
14051405
elif value is None:
14061406
return {'type': 'null', 'pseudo_type': 'Void'}
14071407

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='pseudo-python',
5-
version='0.2.10',
5+
version='0.2.12',
66
description='a python3 to pseudo compiler',
77
author='Alexander Ivanov',
88
author_email='alehander42@gmail.com',

0 commit comments

Comments
 (0)