Extend mathematic operations support in the kmath-ast parser #120
No reviewers
Labels
No Label
bug
dependencies
discussion
documentation
duplicate
feature
good first issue
misc
performance
question
test
use case
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kscience/kmath#120
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "extended-grammar"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #117
Converting it to draft because of better-parse bug. h0tk3y/better-parse#28
1.23e+3
generally + in exponent is generally allowed@ -0,0 +1,59 @@
grammar ArithmeticsEvaluator;
fragment DIGIT: '0'..'9';
fragment LETTER: 'a'..'z';
What about uppercase letters?
@ -0,0 +50,4 @@
: powChain ((DIV | MUL) powChain)*
;
subSumChain
Is operator precedence right? Looks suspicious. It would be nice to add test for it
@ -0,0 +50,4 @@
: powChain ((DIV | MUL) powChain)*
;
subSumChain
Tests were added
Fixed
@ -0,0 +1,59 @@
grammar ArithmeticsEvaluator;
fragment DIGIT: '0'..'9';
fragment LETTER: 'a'..'z';
Added.