Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Ludovic 'Archivist' Lagouardette 1e0cae17df Cleaned some concept syntax back to templates há 1 ano
.idea Compiles and build completely há 1 ano
include/molasses Cleaned some concept syntax back to templates há 1 ano
prototypes/molasses First unit test added há 1 ano
src Cleaned some concept syntax back to templates há 1 ano
tests Cleaned some concept syntax back to templates há 1 ano
.clang-format Compiles and build completely há 1 ano
.clang-tidy Added several features há 1 ano
.gitignore Git Ignores há 1 ano
CMakeLists.txt Added tests for error messages on incomplete inputs há 1 ano
README.md Made help into a proper readme too há 1 ano

README.md

Sugar

Commands

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

Examples

  • compile the file "example.mol" into the "potato.s" assembly file

$ sugar example.mol lex parse potato generate

  • compile the file "example.mol" into the "potato" executable

$ sugar example.mol lex parse potato generate assemble

  • compile the file "example.mol" and "2.mol" into the "potato" executable

$ sugar example.mol lex 2.mol lex merge parse potato generate assemble