Skip to content

Dot multiplication fails to parse #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dsbw opened this issue Feb 7, 2022 · 1 comment
Open

Dot multiplication fails to parse #38

dsbw opened this issue Feb 7, 2022 · 1 comment

Comments

@dsbw
Copy link
Contributor

dsbw commented Feb 7, 2022

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
   ^
@rm-hull
Copy link
Owner

rm-hull commented Feb 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants