- Name: rubygem-ParseTree
- Version: 3.0.5
- Release: 3m.mo7
- Epoch:
- Group: Development/Languages
- License: GPLv2+ or Ruby
- Url: http://rubyforge.org/projects/parsetree/
- Summary: ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and returns it as a s-expression (aka sexp) using ruby's arrays, strings, symbols, and integers
- Architecture: noarch
- Size: 989309
- Distribution:
- Vendor:
- Packager:
Description:
ParseTree is a C extension (using RubyInline) that extracts the parse
tree for an entire class or a specific method and returns it as a
s-expression (aka sexp) using ruby's arrays, strings, symbols, and
integers.
As an example:
def conditional1(arg1)
if arg1 == 0 then
return 1
end
return 0
end
becomes:
[:defn,
:conditional1,
[:scope,
[:block,
[:args, :arg1],
[:if,
[:call, [:lvar, :arg1], :==, [:array, [:lit, 0]]],
[:return, [:lit, 1]],
nil],
[:return, [:lit, 0]]]]]
- OptFlags: -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC
- Cookie: natsuki.momonga-linux.org 1283942424
- Buildhost: natsuki.momonga-linux.org