Moved hack assembly parser into its own library, as this is a more
modular setup and opens the possibility of adding additional front
ends (Eg. a web front end).
Currently there is one executable 'Asmblr' which is the command line
front end. See README.md for more details of its operation.
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
Additionally, added scaffolding for the future implementation of a test
suite, as well as TODO markers for documentation.
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
Added type signatures to all top-level bindings and made minor
modifications to remove ghc warnings generated by -Wall, excluding the
unused-do-bind warning.
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
Need to implement a fancier main function that accepts a few other
arguments and can take input from stdin and output to stdout instead of
a file.
asmblr [-o[--output=] out] file
Where:
- out is the name of the file to write to, or '-' for stdout
- file is the name of the input hack asm file or '-' for stdin
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
Asmblr.hs can assemble symbol-less hack programs, but currently doesn't
work for hack programs containing symbols.
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>