lib/qlang/parser/vector_parser.rb in qlang-0.0.14142135 vs lib/qlang/parser/vector_parser.rb in qlang-0.0.27000000
- old
+ new
@@ -1,10 +1,12 @@
module Qlang
module Parser
module VectorParser
include Base
- def execute(lexed)
- VectorApi.execute(lexed.values)
+ def execute(lexed_string)
+ lexed_string.rms!(/ *\( */, / *\) */)
+ elements = lexed_string.split_by_sp
+ VectorApi.execute(elements)
end
module_function :execute
end
end
end