Created
October 3, 2010 17:43
-
-
Save bakkdoor/608761 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
bakkdoor:~/projekte/cpp/fancy-lang[rbx_bytecode*]> fancy --rsexp-nice rbx/examples/classes.fnc | |
It's missing "," where there's a "<-" | |
[:exp_list, | |
[:class_def, | |
[:ident, | |
'Person'] | |
[] <- | |
[:exp_list, | |
[:method_def, | |
[:ident, | |
'initialize:'] <- | |
[:args, | |
'name'] <- etc. | |
[:exp_list, | |
[:assign, | |
[:ident, | |
'@name'] | |
[:ident, | |
'name']]]] | |
[:method_def, | |
[:ident, | |
'to_s'] | |
[:args] | |
[:exp_list, | |
[:message_send, | |
[:string_lit, | |
'Person with name: '] | |
[:ident, | |
'++'] | |
[:message_args, | |
[:ident, | |
'@name']]]]]]] | |
[:assign, | |
[:ident, | |
'p'] | |
[:message_send, | |
[:ident, | |
'Person'] | |
[:ident, | |
'new:'] | |
[:message_args, | |
[:string_lit, | |
'Christopher']]]] | |
[:message_send, | |
[:ident, | |
'p'] | |
[:ident, | |
'println'] | |
[:message_args]]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment