Skip to content

support negative number#6

Open
Nice2008 wants to merge 1 commit intoW-Mai:masterfrom
Nice2008:master
Open

support negative number#6
Nice2008 wants to merge 1 commit intoW-Mai:masterfrom
Nice2008:master

Conversation

@Nice2008
Copy link

  1. Support such as: "-1*(-2)"

1. Support such as: "-1*(-2)"
@W-Mai
Copy link
Owner

W-Mai commented Nov 15, 2024

I test your code, but get

-1*(-2);
[Syntax Error]: -.

Another grammatical error appears. Similarly, if we try the following code,

-sin(30)

There will be the same result. Maybe we need to modify - at the grammatical analysis level.

Are you interested in delving into it and continuing to modify it? Let's discuss together.

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

Successfully merging this pull request may close these issues.

2 participants