Sentient Lang.

Basic usage

The CLI can read from either a file or standard input:

$ sentient program.snt

$ cat program.snt | sentient

If Sentient is called without arguments, it will wait for user-input:

$ sentient
<user enters input>

By default, Sentient will compile and run the provided program without optimisation. When an option is set, Sentient no longer compiles and runs the input program and instead performs the task for that option. For example:

$ sentient --compile program.snt > program.json

The above command will compile the program and write its output to a JSON file. This program can then be run with:

$ sentient --run program.json

Options can be combined to perform a series of operations in a single command:

$ sentient --compile --optimise --run program.snt