Skip to content
Pyth, an extremely concise language. Try it here:
Python HTML
Branch: master
Clone or download
Latest commit b70e591 Nov 27, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Update doc.rst May 28, 2017
.coveragerc Added rotations to V, L, M, .N Oct 17, 2015
.gitignore Added more ignores Dec 19, 2015
.pylintrc Linting cleanups Oct 24, 2016
LICENSE Initial commit Jul 1, 2014
Procfile Use flask for server instead of cgi Dec 31, 2014
README.md Added an update Nov 26, 2017
big-pyth.bp big-pyth-example Oct 15, 2016
big-pyth.py Finished the rest of the tokens Dec 30, 2016
data.py
extra_parse.py Fixed bug with \r Aug 3, 2017
favicon2.ico Tweaked Dec 23, 2014
how-to-use-pyth.txt Changed # to loop until exception then break. Sep 25, 2014
index.html Integrated rev-doc with website Dec 26, 2015
lexer.py Brought up to pyflakes compatibility Jun 4, 2017
macros.py Merge branch 'master' of https://github.com/Maltysen/pyth into Maltys… Nov 26, 2017
packed-pyth.py Brought up to pyflakes compatibility Jun 4, 2017
pyth.py Gave = an implicit Q if no following variables Nov 26, 2017
requirements.txt Added pillow Jun 18, 2015
rev-doc.txt Gave = an implicit Q if no following variables Nov 26, 2017
runtime.txt Add files for Heroku Dec 31, 2014
server.py Autoformatting with autopep8, max line length 120 Apr 26, 2016
test.py Gave = an implicit Q if no following variables Nov 26, 2017
tree.py Autoformatting with autopep8, max line length 120 Apr 26, 2016

README.md

Pyth

Pyth, an extremely concise language.

Try it here.

Tutorial here.


Recent changes:

11/26/17

  • = and ~ now allow an implicit Q if they are not followed by any variables for the rest of the program.
    • For instance, in the program mQ=h, the = assigns the result of h, which expands to hQ to Q. Thus, with an input of 2, the output is [3, 3, 3].

8/20/17

  • J and K now define assignment expressions until an assignment expression is complete, since the associated variables are not defined until that point.
    • For instance, in the program J+J4*J3J, the first J defines an assignment expression. + is part of that expression, J is part of that expression and defines another assignment expression. That inner assignment gives J the value 4. Now, J is defined, and so it is treated as a variable in the expression *J3. Then, the final J is an expression of its own, and prints out J's new value at this point, 16.
You can’t perform that action at this time.