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

Add arithmetic expressions (SET /a) #46

Open
niutech opened this issue Mar 24, 2021 · 2 comments
Open

Add arithmetic expressions (SET /a) #46

niutech opened this issue Mar 24, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@niutech
Copy link

niutech commented Mar 24, 2021

Please add SET /a command line switch with mathematical expressions, using e.g. TinyExpr, expr or expression_parser.

@PerditionC PerditionC added the enhancement New feature or request label May 27, 2021
@PerditionC
Copy link
Contributor

I looked into using https://github.com/zserge/expr - while it compiles with OW with minimal changes (declaring and initializing variables is done at use instead of start of scope). This will require some reworking the build as adding it causes the segments to exceed 64KB. Leaving as future enhancement project.

@niutech
Copy link
Author

niutech commented Dec 26, 2024

@PerditionC Thanks for looking at it! Expr uses float and all operators, while set uses only integers and + - * / and bitwise operators. Maybe if you strip down expr to basic calculations and make it use int, it would fit in 64KB?

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

2 participants