Rename "compiler" functionality to Evaluator

Allows for stdin input for evaluation when no input file is provided.
This commit is contained in:
2025-01-01 08:17:05 -06:00
committed by James Eversole
parent bc9064b058
commit 3ab9b58194
8 changed files with 43 additions and 32 deletions

View File

@ -58,7 +58,7 @@ You can easily build and/or run this project using [Nix](https://nixos.org/downl
`./result/bin/tricu --help`
```
tricu - compiler and repl
tricu Evaluator and REPL
tricu [COMMAND] ... [OPTIONS]
tricu: Exploring Tree Calculus
@ -70,17 +70,20 @@ Common flags:
tricu [repl] [OPTIONS]
Start interactive REPL
tricu compile [OPTIONS]
Compile a file and return the result of the expression in the final line
tricu eval [OPTIONS]
Evaluate a file and return the result of the expression in the final line
-f --file=FILE Relative or absolute path to file input for compilation
-o --output=OUTPUT Optional output file path for resulting output
-t --form=FORM Output form: (fsl|tree|ast|ternary|ascii)
-f --file=FILE Optional input file path for evaluation.
Defaults to stdin.
-o --output=OUTPUT Optional output file path for resulting output.
Defaults to stdout.
-t --form=FORM Optional output form: (fsl|tree|ast|ternary|ascii).
Defaults to fsl.
tricu decode [OPTIONS]
Decode a Tree Calculus value into a string representation
-f --input=FILE Optional file path containing a Tree Calculus value.
-f --input=ITEM Optional file path to attempt decoding.
Defaults to stdin.
```