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

checkSyntax does not works fully correctly with implied multiplication expression string, but disabled implied multiplication option #259

Closed
mariuszgromada opened this issue Apr 19, 2022 · 1 comment
Labels

Comments

@mariuszgromada
Copy link
Owner

Case 1: works ok

Expression e = new Expression("2pi+3e");
e.disableImpliedMultiplicationMode();
e.checkSyntax();
mXparser.consolePrintln( e.getErrorMessage());

Result

[mXparser-v.5.0.0] [2pi+3e] checking ...
[2pi+3e] (2pi, 0) invalid <TOKEN>.
[2pi+3e] (3e, 2) invalid <TOKEN>.
[2pi+3e] errors were found.

Case 2: does not work ok

Expression e = new Expression("2(3+4)5");
e.disableImpliedMultiplicationMode();
e.checkSyntax();
mXparser.consolePrintln( e.getErrorMessage());

Result

[mXparser-v.5.0.0] [2(3+4)5] checking ...
[2(3+4)5] no errors.
mariuszgromada added a commit that referenced this issue May 20, 2022
…lication expression string, but disabled implied multiplication option #259
@mariuszgromada
Copy link
Owner Author

Fixed

Expression e = new Expression("2(3+4)5");
e.disableImpliedMultiplicationMode();
e.checkSyntax();
mXparser.consolePrintln( e.getErrorMessage());

Result

[mXparser-v.5.0.3] [2(3+4)5] checking ...
[2(3+4)5] Multiplication operator missing - try Implied Multiplication Mode.
[2(3+4)5] errors were found.

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

No branches or pull requests

1 participant