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

Update rpnlib to 0.23.x #2274

Merged
merged 15 commits into from
Aug 2, 2020
Merged

Update rpnlib to 0.23.x #2274

merged 15 commits into from
Aug 2, 2020

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Jun 7, 2020

Tracking rpnlib update

@mcspr mcspr changed the title Update rpnlib to 0.4.0-pre13 Update rpnlib to 0.4.0-pre Jun 27, 2020
Rule processing failures were not handled
std::{round,abs} should work for Core 2.3.0
Nested stacks (and nicer syntax for index...)
- fix index out of bounds
- if cmp3 return value when equals

For the integration:

- use rpnlib helper methods, don't access internal structs
- add millis, returning current unsigned timestamp
- add log (accepting string)
- make rpnDelay do something
- try removing variables requirement, we could use 'exist' now
@mcspr mcspr mentioned this pull request Jul 16, 2020
- fix 'swap' swapping values directly instead of swapping the
  stack positions
- fix parser to accept empty strings as a valid token
- Revamped variable handling, use & to get ref and $ to get value
  Restores old behaviour of halting execution when variable does not exist
- Fix rot, unrot, swap, over, dup and dup2 moving underlying values instead of value refs
- Fix 'empty' variable parsing ('$', '$ $', etc.) which accessed raw memory after the rule string
- Update null vs. null comparisons, `null null eq` is true
- Stringify boolean into "true" or "false"
- Add deref operator to convert &var to $var inplace
- Tweak exists operator to use reference counter instead of null value comparison
@mcspr mcspr changed the title Update rpnlib to 0.4.0-pre Update rpnlib to 0.23.x Jul 26, 2020
@mcspr mcspr merged commit 35305f1 into xoseperez:dev Aug 2, 2020
@mcspr mcspr deleted the rpn/forked branch August 2, 2020 10:14
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.

1 participant