Last active
August 29, 2015 14:12
-
-
Save st98/091c2c5fcde0b5e58ccc to your computer and use it in GitHub Desktop.
coffee -s -n, coffee -s -t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> python -c "print('console.log do -> 1')" | coffee -s -n | |
Block | |
Call | |
Value "console" | |
Access "log" | |
Call | |
Code | |
Block | |
Value "1" | |
> python -c "print('console.log ((x) -> x * x)(12)')" | coffee -s -n | |
Block | |
Call | |
Value "console" | |
Access "log" | |
Call | |
Value | |
Parens | |
Block | |
Code | |
Param "x" | |
Block | |
Op * | |
Value "x" | |
Value "x" | |
Value "12" | |
----- | |
> python -c "print('console.log do -> 1')" | coffee -s -t | |
[IDENTIFIER console] [. .] [IDENTIFIER log] [CALL_START (] [UNARY do] [-> ->] [INDENT 2] [NUMBER 1] [OUTDENT 2] [CALL_END )] [TERMINATOR \n] | |
> python -c "print('console.log ((x) -> x * x)(12)')" | coffee -s -t | |
[IDENTIFIER console] [. .] [IDENTIFIER log] [CALL_START (] [( (] [PARAM_START (] [IDENTIFIER x] [PARAM_END )] [-> ->] [INDENT 2] [IDENTIFIER x] [MATH *] [IDENTIFIER x] [OUTDENT 2] [) )] [CALL_START (] [NUMBER 12] [CALL_END )] [CALL_END )] [TERMINATOR \n] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment