Add "SimpleT" t
output form
This new output form allows easy piping to the decode function of the tricu executable. Includes a new test for roundtrip evaluation of map, compilation to tree calculus terms, and decoding back to a human readable string.
This commit is contained in:
34
README.md
34
README.md
@ -46,14 +46,42 @@ tricu < map (\i : listConcat i " is super cool!") [("Tree Calculus") ("Intension
|
||||
READ -: ["Tree Calculus is super cool!", "Intensionality is super cool!", "tricu is super cool!"]
|
||||
```
|
||||
|
||||
## Installation
|
||||
## Installation and Use
|
||||
|
||||
You can easily build and/or run this project using [Nix](https://nixos.org/download/).
|
||||
|
||||
- Run REPL immediately:
|
||||
- Quick Start (REPL):
|
||||
- `nix run git+https://git.eversole.co/James/tricu`
|
||||
- Build REPL executable in `./result/bin`:
|
||||
- Build executable in `./result/bin`:
|
||||
- `nix build git+https://git.eversole.co/James/tricu`
|
||||
- `./result/bin/tricu --help`
|
||||
|
||||
```
|
||||
tricu - compiler and repl
|
||||
|
||||
tricu [COMMAND] ... [OPTIONS]
|
||||
tricu: Exploring Tree Calculus
|
||||
|
||||
Common flags:
|
||||
-? --help Display help message
|
||||
-V --version Print version information
|
||||
|
||||
tricu [repl] [OPTIONS]
|
||||
Start interactive REPL
|
||||
|
||||
tricu compile [OPTIONS]
|
||||
Compile 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: (tree|ast|ternary|ascii)
|
||||
|
||||
tricu decode [OPTIONS]
|
||||
Decode a Tree Calculus value into a string representation
|
||||
|
||||
-f --input=FILE Optional file path containing a Tree Calculus value.
|
||||
Defaults to stdin.
|
||||
```
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
|
Reference in New Issue
Block a user