Method: Parsec::Parsec.validate_syntax
- Defined in:
- lib/parsec.rb
.validate_syntax(equation) ⇒ Object
returns true or an error string
32 33 34 35 36 |
# File 'lib/parsec.rb', line 32 def self.validate_syntax(equation) equation = sanitize(equation) validate(Libnativemath.native_eval(equation), false) end |