Skip to content

Instantly share code, notes, and snippets.

@bakkdoor
Created October 3, 2010 17:43
Show Gist options
  • Save bakkdoor/608761 to your computer and use it in GitHub Desktop.
Save bakkdoor/608761 to your computer and use it in GitHub Desktop.
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