infix icon indicating copy to clipboard operation
infix copied to clipboard

Dot multiplication fails to parse

Open dsbw opened this issue 3 years ago • 1 comments

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
   ^

dsbw avatar Feb 07 '22 02:02 dsbw

I suspect the string parsing part does not understand that . is a valid operator whereas the macro part does

rm-hull avatar Feb 07 '22 08:02 rm-hull