Permalink
Browse files

Remove test program

  • Loading branch information...
1 parent 8699696 commit e7b9786948bef442ffb5e7d93999db9a21da4463 @namelessjon committed Jun 6, 2010
Showing with 0 additions and 28 deletions.
  1. +0 −28 treetop_test.rb
View
@@ -1,28 +0,0 @@
-#!/usr/bin/ruby
-# Jonathan D. Stott <jonathan.stott@gmail.com>
-$LOAD_PATH.unshift 'lib'
-require 'exalted_math'
-require 'pp'
-
-parser = Exalted::MathsParser.new
-
-what_you_said = gets
-what_you_said.strip! # remove the newline at the end
-p what_you_said
-puts "-----"
-
-hash = {'willpower' => 9, 'essence' => 4, 'compassion' => 4, 'conviction' => 3, 'temperance' => 4, 'valor' => 2}
-
-success, result = parser.ast(what_you_said)
-if success
- pp result
- errors = []
- if valid = Exalted::Ast.valid?(result, hash.keys, errors)
- puts Exalted::Ast.value(result, hash)
- else
- puts "Problem with node:"
- pp errors
- end
-else
- puts result
-end

0 comments on commit e7b9786

Please sign in to comment.