infix
infix copied to clipboard
Dot multiplication fails to parse
Trying to add new functionality and discovered this doesn't seem to work out of the box.
((infix.macros/from-string "10 * 5"))
=> 50
((infix.macros/from-string "10 . 5"))
Execution error (ParseException) at jasentaa.position/parse-exception-interop (position.cljc:45).
Failed to parse text at line: 1, col: 4
10 . 5
^
I suspect the string parsing part does not understand that . is a valid operator whereas the macro part does