Internal compiler fails on set literals #102

Open
pyjsorg opened this Issue Apr 27, 2012 · 3 comments

Comments

Projects
None yet
1 participant
@pyjsorg
Contributor

pyjsorg commented Apr 27, 2012

compiler.transformer fails to parse set literals (python 2.7 syntax)

Should check pgen/grammar2x.txt against http://docs.python.org/reference/grammar.html

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=621 (June 26, 2011 08:17:31)

@pyjsorg

This comment has been minimized.

Show comment
Hide comment
@pyjsorg

pyjsorg Apr 27, 2012

Contributor

From dan.kl...@gmail.com on June 27, 2011 13:08:13:
Added compiler/parser support in
http://pyjamas.git.sourceforge.net/git/gitweb.cgi?p=pyjamas/pyjamas;a=commit;h=4d47de488ce99d81a15e7258c391deaf35f1bb1a
http://pyjamas.git.sourceforge.net/git/gitweb.cgi?p=pyjamas/pyjamas;a=commit;h=4d474fcb80c05b083a3b64ac2e19c282e8d6ded6
http://pyjamas.git.sourceforge.net/git/gitweb.cgi?p=pyjamas/pyjamas;a=commit;h=9fef70a785c85a6b4cb1c7f166242f404f4c6c18

Translator still lacks set literals and set/dict comprehension support.

Implementing tests for this is tricky, as it will trigger SyntaxError for CPython < 2.7, maybe add it in separate Python2_7Test.py?

Contributor

pyjsorg commented Apr 27, 2012

From dan.kl...@gmail.com on June 27, 2011 13:08:13:
Added compiler/parser support in
http://pyjamas.git.sourceforge.net/git/gitweb.cgi?p=pyjamas/pyjamas;a=commit;h=4d47de488ce99d81a15e7258c391deaf35f1bb1a
http://pyjamas.git.sourceforge.net/git/gitweb.cgi?p=pyjamas/pyjamas;a=commit;h=4d474fcb80c05b083a3b64ac2e19c282e8d6ded6
http://pyjamas.git.sourceforge.net/git/gitweb.cgi?p=pyjamas/pyjamas;a=commit;h=9fef70a785c85a6b4cb1c7f166242f404f4c6c18

Translator still lacks set literals and set/dict comprehension support.

Implementing tests for this is tricky, as it will trigger SyntaxError for CPython < 2.7, maybe add it in separate Python2_7Test.py?

@pyjsorg

This comment has been minimized.

Show comment
Hide comment
@pyjsorg

pyjsorg Apr 27, 2012

Contributor

From dan.kl...@gmail.com on June 30, 2011 05:25:54:
Implemented translator part of set literals in 519c5bb

Contributor

pyjsorg commented Apr 27, 2012

From dan.kl...@gmail.com on June 30, 2011 05:25:54:
Implemented translator part of set literals in 519c5bb

@pyjsorg

This comment has been minimized.

Show comment
Hide comment
@pyjsorg

pyjsorg Apr 27, 2012

Contributor

From dan.kl...@gmail.com on June 30, 2011 15:15:08:
Set/dict comprehensions are implemented as well, and added tests for all 3 things.
0cb45b9
1695859
c19b85b
015a26d

Contributor

pyjsorg commented Apr 27, 2012

From dan.kl...@gmail.com on June 30, 2011 15:15:08:
Set/dict comprehensions are implemented as well, and added tests for all 3 things.
0cb45b9
1695859
c19b85b
015a26d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment