Skip to content
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

sin function is used as id #2

Open
MuhammadSawalhy opened this issue Feb 7, 2021 · 0 comments
Open

sin function is used as id #2

MuhammadSawalhy opened this issue Feb 7, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MuhammadSawalhy
Copy link
Member

Describtion

When automult = true and singleCharName = true, if you try to parse an expression in which you used builtin functions as identifers, you will get an AST of "automult"s.

Reproduce

sin^2x
sin + x

Actual behaviour

It is parsed as s*i*n^(2x) and s*i*n + x respectively.

Expected behaviour

I expect a syntax error to be thrown:

the function "sin", it used with no arguments! can not use the function a variable!
@MuhammadSawalhy MuhammadSawalhy self-assigned this Feb 7, 2021
@MuhammadSawalhy MuhammadSawalhy added the bug Something isn't working label Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant