Permalink
Browse files

Small spec fixes, some perf improvement

  • Loading branch information...
namelessjon committed Jun 8, 2010
1 parent 2098d1a commit 795732859a1d3cdf24c2873ffaaa37dcb0f0d186
Showing with 288 additions and 387 deletions.
  1. +1 −1 lib/exalted_math.rb
  2. +254 −367 lib/exalted_math/math.rb
  3. +13 −13 lib/exalted_math/math.treetop
  4. +20 −6 spec/parser_spec.rb
View
@@ -7,7 +7,7 @@
module Exalted
class MathsParser
def ast(text)
- result = parse(text)
+ result = parse(text.strip)
if result
[true, result.ast]
else
Oops, something went wrong.

0 comments on commit 7957328

Please sign in to comment.