docs/precedence.template in code-ruby-0.2.4 vs docs/precedence.template in code-ruby-0.3.0
- old
+ new
@@ -1,60 +1,35 @@
- Code
- {a = "Go" a += "od" a}
- Statement
- {a = "Good"}
- - {
- a = 0
- while a < 10
- a += 1
- "Good"
- end
- }
+- Equality
+ - {1 == 1 ? "Good"}
- While
- - {
- a = 0
- until a > 10
- a += 1
- "Good"
- end
- }
- - {
- a = 0
- while
- if a > 10
- false
- else
- true
- end
- a += 1
- "Good"
- end
- }
+ - {a = 0
+ while a < 10 a += 1 "Good" end}
- If
- {if true "Good" end}
- - {if true if false "Bad" else "Good" end}
- IfModifier
- {"Good" if true}
- OrKeyword
- {false or "Good"}
- NotKeyword
- {not false and "Good"}
-- Defined
- - {a = 1 "Good" if defined?(a)}
- Equal
- {a = "Good"}
- Rescue
- {0 > "String" rescue "Good"}
- Ternary
- {nothing ? "Bad" : "Good"}
+- Defined
+ - {a = 1 "Good" if defined?(a)}
- Range
- {("Good".."Bad").first}
- OrOperator
- {false || "Good"}
- AndOperator
- {"Bad" && "Good"}
-- Equality
- - {1 == 1 ? "Good"}
- GreaterThan
- {2 > 1 ? "Good"}
- BitwiseOr
- {2 | 1 == 3 ? "Good"}
- BitwiseAnd