Skip to content

Instantly share code, notes, and snippets.

@rking

rking/a.rb Secret

Created October 29, 2012 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rking/809ad978075744f43a49 to your computer and use it in GitHub Desktop.
Save rking/809ad978075744f43a49 to your computer and use it in GitHub Desktop.
% ruby --dump parsetree
class Post
class << self
end
end
###########################################################
## Do NOT use this node dump for any purpose other than ##
## debug and research. Compatibility is not guaranteed. ##
###########################################################
# @ NODE_SCOPE (line: 4)
# +- nd_tbl: (empty)
# +- nd_args:
# | (null node)
# +- nd_body:
# @ NODE_CLASS (line: 1)
# +- nd_cpath:
# | @ NODE_COLON2 (line: 1)
# | +- nd_mid: :Post
# | +- nd_head:
# | (null node)
# +- nd_super:
# | (null node)
# +- nd_body:
# @ NODE_SCOPE (line: 4)
# +- nd_tbl: (empty)
# +- nd_args:
# | (null node)
# +- nd_body:
# @ NODE_SCLASS (line: 2)
# +- nd_recv:
# | @ NODE_SELF (line: 2)
# +- nd_body:
# @ NODE_SCOPE (line: 3)
# +- nd_tbl: (empty)
# +- nd_args:
# | (null node)
# +- nd_body:
# @ NODE_BEGIN (line: 3)
# +- nd_body:
# (null node)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment