Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor readme cleanup

[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 7823]
  • Loading branch information...
commit 51f1c741b4c8ce51e09f95f2d617f87ce6cbe173 1 parent b94768c
@zenspider zenspider authored
Showing with 6 additions and 11 deletions.
  1. +6 −11 README.txt
View
17 README.txt
@@ -13,24 +13,19 @@ base types.
As an example:
- def conditional1(arg1)
- if arg1 == 0 then
- return 1
- end
+ def conditional1 arg1
+ return 1 if arg1 == 0
return 0
end
becomes:
- s(:defn, :conditional1,
- s(:args, :arg1),
- s(:scope,
- s(:block,
- s(:if,
- s(:call, s(:lvar, :arg1), :==, s(:arglist, s(:lit, 0))),
+ s(:defn, :conditional1, s(:args, :arg1),
+ s(:if,
+ s(:call, s(:lvar, :arg1), :==, s(:lit, 0)),
s(:return, s(:lit, 1)),
nil),
- s(:return, s(:lit, 0)))))
+ s(:return, s(:lit, 0)))
== FEATURES/PROBLEMS:
Please sign in to comment.
Something went wrong with that request. Please try again.