MiniScriptEval
expression evaluator (with variables and optional REPL) in MiniScript (by JoeStrout)
ms-ms
A MiniScript parser and evaluator written in MiniScript (by marcgurevitx)
MiniScriptEval | ms-ms | |
---|---|---|
3 | 1 | |
1 | 3 | |
- | - | |
10.0 | 5.4 | |
about 2 years ago | 5 months ago | |
MAXScript | MAXScript | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
MiniScriptEval
Posts with mentions or reviews of MiniScriptEval.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-02-21.
-
An expression parser for MiniScript
Last week, we talked about the Pratt parsing algorithm. Prior to learning about that, I had always written recursive-descent parsers, including one a couple years ago that could evaluate simple numeric expressions.
-
Advent of Code (in MiniScript), Day 21
Note that dependsOn is a list of monkey names; we look up the corresponding Monkey objects in a global map called monkeys. Also, to avoid writing code to handle the four different operators, I used the eval module from this repo to evaluate an expression based on the monkey's operator.
-
Advent of Code (Day 11), in MiniScript
That "Operation" line is a problem. MiniScript does not have a built-in eval function (though there is a repo for that). If I weren't under time pressure, I'd probably write a very simple expression parser and evaluator that can parse and evaluate A op B, where A and B are either "old" or a number, and op is either '+' or '*'. But this being Advent of Code, I was under time pressure. That seemed like a poor choice.
ms-ms
Posts with mentions or reviews of ms-ms.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-02-21.
-
An expression parser for MiniScript
If you need to evaluate expressions involving lists or maps, or basically arbitrary MiniScript code, then this little parser is probably not for you. In that case consider the ms.ms project instead.
What are some alternatives?
When comparing MiniScriptEval and ms-ms you can also consider the following projects:
AdventOfCode2022 - Solutions to all 25 Advent of Code 2022 in Rust 🦀 Less than 100 lines per day, total runtime of less than 1 second.