Skip to content
New issue

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

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

Already on GitHub? # to your account

plus_minus, minus_plus are not recognized as unary ops #317

Closed
o314 opened this issue Oct 5, 2021 · 0 comments · Fixed by #324
Closed

plus_minus, minus_plus are not recognized as unary ops #317

o314 opened this issue Oct 5, 2021 · 0 comments · Fixed by #324

Comments

@o314
Copy link

o314 commented Oct 5, 2021

import CSTParser as C
using Test

_eval_or_ex(a) = try; a catch ex; ex end
_backtest_parse(s) = (s |> Meta.parse) == (s |> C.parse |> Expr)
_log_parse(s) =  s |> Meta.parse |> Meta.show_sexpr
±(x) = (0.99,1.01) .* x
@test ± 1000 == (990, 1010)

@test_broken """ ± 1000 """ |> _backtest_parse # see unary-ops @ julia-parser.scm
@o314 o314 changed the title plus_minus, minus_plus are not be recognized as unary ops plus_minus, minus_plus are not recognized as unary ops Oct 21, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant