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

Expression evaluator and repl #15

Merged
merged 14 commits into from
Aug 21, 2023
Merged

Expression evaluator and repl #15

merged 14 commits into from
Aug 21, 2023

Conversation

ahdinosaur
Copy link
Owner

@ahdinosaur ahdinosaur commented Aug 18, 2023

  • add rimu-env lib crate with Environment (previously Context)
  • change rimu-value Value::Number to be rust_decimal
  • add rimu-eval lib crate with evaluate function
    • add basic errors: EvalError
  • add rimu-repl bin crate to play with parsing and evaluating expressions
  • change operators in rimu-expr to more match Rust, e.g:
    • and -> &&
    • or -> ||
    • = -> ==
    • not -> !
    • mod -> %

@ahdinosaur ahdinosaur added the work in progress This is currently being worked on label Aug 18, 2023
@ahdinosaur ahdinosaur changed the title [wip] Expression evaluator Expression evaluator and repl Aug 21, 2023
@ahdinosaur ahdinosaur merged commit 331c911 into main Aug 21, 2023
@ahdinosaur ahdinosaur mentioned this pull request Sep 4, 2023
17 tasks
@ahdinosaur ahdinosaur deleted the eval branch September 5, 2023 12:29
@ahdinosaur ahdinosaur removed the work in progress This is currently being worked on label Sep 14, 2023
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.

None yet

1 participant