Last active
March 14, 2016 19:28
-
-
Save jacobmendoza/164c2c0a713be3ade49e to your computer and use it in GitHub Desktop.
S-expression example
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
[:program, [:stmts_add, [:stmts_new], [:method_add_block, [:command_call, [:var_ref, [:@const, "RSpec", [1, 0]]], :".", | |
[:@ident, "describe", [1, 6]], [:args_add_block, [:args_add, [:args_new], [:var_ref, [:@const, "Something", [1, 15]]]], | |
false]], [:do_block, nil, [:stmts_add, [:stmts_new], [:method_add_block, [:command, [:@ident, "describe", [2, 2]], | |
[:args_add_block, [:args_add, [:args_new], [:string_literal, [:string_add, [:string_content], [:@tstring_content, | |
"when creating the handler", [2, 12]]]]], false]], [:do_block, nil, [:stmts_add, [:stmts_new], [:method_add_block, | |
[:command, [:@ident, "it", [3, 4]], [:args_add_block, [:args_add, [:args_new], [:string_literal, [:string_add, | |
[:string_content], [:@tstring_content, "fails if no tweet has been provided", [3, 8]]]]], false]], [:do_block, nil, | |
[:stmts_add, [:stmts_new], [:command_call, [:method_add_arg, [:fcall, [:@ident, "expect", [4, 6]]], [:arg_paren, | |
[:args_add_block, [:args_add, [:args_new], [:@int, "0", [4, 13]]], false]]], :".", [:@ident, "to", [4, 16]], [:args_add, | |
[:args_new], [:command, [:@ident, "be", [4, 19]], [:args_add_block, [:args_add, [:args_new], [:@int, "1", [4, 22]]], | |
false]]]]]]]]]]]]]]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment