lib/hilbert/parser.rb in hilbert-0.0.2700210 vs lib/hilbert/parser.rb in hilbert-0.0.2700300
- old
+ new
@@ -35,10 +35,10 @@
value = lexed.get_value($1).delete("\n")
rslt = $world << value
lexed.parsed!(rslt, $2)
when /:(EVALOGIC)(\d+)/
- value = lexed.get_value($1).delete("?\n")
+ value = lexed.get_value($1).rm(/ *\?/).delete("\n")
rslt = $world.impl value
lexed.parsed!(rslt, $2)
when /:(VECTOR)(\d+)/, /:(MATRIX)(\d+)/, /:(TMATRIX)(\d+)/, /:(INTEGRAL)(\d+)/, /:(DEF_FUNC)(\d+)/, /:(DIFFERENTIAL)(\d+)/, /:(LIMIT)(\d+)/, /:(SIGMA)(\d+)/
token_els = lexed.get_els($2)