Ludovic 'Archivist' Lagouardette ee0243bd8a | pirms 1 gada | |
---|---|---|
.idea | pirms 1 gada | |
include | pirms 1 gada | |
prototypes/molasses | pirms 1 gada | |
src | pirms 1 gada | |
tests | pirms 1 gada | |
.clang-format | pirms 1 gada | |
.clang-tidy | pirms 1 gada | |
.gitignore | pirms 1 gada | |
CMakeLists.txt | pirms 1 gada | |
README.md | pirms 1 gada |
lex : string ➔ lexed_output
takes a filename to a file that must be compiled
merge : lexed_output lexed_output ➔ lexed_output
merges two lexed modules together
parse : lexed_output ➔ parsed_output
prepares code for generation
generate : parsed_output string ➔ string
takes a root filename, it will be appended with ".s" and that will be the generated assembly file, the filename will not be consumed
assemble : string ➔ _
takes a root filename, it will be appended with ".s" and that file will be compiled, the compiled output will be the given filename
help : _ ➔ _
prints this help
$ sugar example.mol lex parse potato generate
$ sugar example.mol lex parse potato generate assemble
$ sugar example.mol lex 2.mol lex merge parse potato generate assemble