A simple Math EWAluator written on C.
git clone https://github.com/mandriota/mewa
cd mewa
make build
sudo ln -n ./bin/mewa /usr/local/bin
- Basic arithmetic operators
- Basic logical operators
- Operators priority and associativity
- Type inference
- Functions
- Function specialization
- Function ranged specialization
- Command-line arguments and redirects handling
- REPL
- REPL: multiline input
- REPL: history
- REPL: escape handling
- Calculation of maximal relative error
All caps, snake case.
Title, camel case.
All script, snake case.
Same as functions. First word is an abbreviation of struct name.
Name | Abbreviation |
---|---|
Primitive |
PM /PRIM |
Reader |
RD |
Token |
TK |
TokenType |
TT |
Lexer |
LX |
Node |
ND |
NodeType |
NT |
Parser |
PR |
Priority |
PT |
Interpreter |
IR |
- Thanks to Shiney for helping with some math formulas.
- Thanks to Giovanni Crisalfi for the kaomoji collection used in this file.