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

Change ConstExpr to use a vector of (op, eudobj) pairs #126

Open
armoha opened this issue Dec 24, 2023 · 0 comments
Open

Change ConstExpr to use a vector of (op, eudobj) pairs #126

armoha opened this issue Dec 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@armoha
Copy link
Owner

armoha commented Dec 24, 2023

// epScript example
const a = Db(336 * 1700);
const b = Db(336 * 1700);
const diff = b - a;  // subtraction between ConstExpr is not supported

Current Status

b - a
= (baseobj: b, offset: 0, rlocmode: 4) - (baseobj: a, offset: 0, rlocmode: 4)

Alternative

b - a 
= (opobjpairs: [(+, b),], offset: 0, rlocmode: 4) - (opobjpairs: [(+, a),], offset: 0, rlocmode: 4)
= (opobjpairs: [(+, b), (-, a)], offset: 0 - 0, rlocmode: 4)
@armoha armoha added the enhancement New feature or request label Dec 24, 2023
@armoha armoha changed the title Change ConstExpr to use vectors of (op, eudobj) Change ConstExpr to use a vector of (op, eudobj) Dec 24, 2023
@armoha armoha changed the title Change ConstExpr to use a vector of (op, eudobj) Change ConstExpr to use a vector of (op, eudobj) pairs Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant