Permalink
Browse files

minor readme cleanup

[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 7823]
  • Loading branch information...
zenspider committed Oct 9, 2012
1 parent b94768c commit 51f1c741b4c8ce51e09f95f2d617f87ce6cbe173
Showing with 6 additions and 11 deletions.
  1. +6 −11 README.txt
View
@@ -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:

0 comments on commit 51f1c74

Please sign in to comment.