Try it!
You can download the source from github or packaged as one file. Then to start the repl, run:
atlas
To run from a file:
atlas filename.atl
You will need Ruby, I have tested it to work with 2.7 and 3.1.
Repl
Using it in non repl mode is actually very similar to just piping each line of your file into the repl. One difference is that in the repl a list or vector of numbers will print with a space between them instead of a newline. You can still use the print
command to see how it would print in non repl mode. Or use the -l
flag. You may also use the -L
flag to make the non repl print like the repl.
Debug Features
These commands may be useful for debugging:
help
see op's info (help +
)version
see atlas versiontype
see expression type (type 1+2 -> Num
)p
pretty print value (p 1,2 -> [1,2]
)print
print a value as it would be done implicitly in file mode