Commit Graph

7 Commits

Author SHA1 Message Date
Collin J. Doering da2586db57 Allow spaces between = and ; in ASM instructions
During the firstpass, strip spaces from:
 - between the instruction destination and '='
 - between '=' and the instruction ALU ops
 - between the instruction ALU ops and ';'
 - between ';' and the instruction jump

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2016-01-06 18:06:35 -05:00
Collin J. Doering e85ff2b949 Clean up spacing
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2016-01-06 18:05:55 -05:00
Collin J. Doering 48a171e6c9 Replace Label synonym with String in some parsers
The Label type synonym (which is used to identify labels in assembly),
is used as a plane String in cInstrDest, cInstrJump and cInstrAluOps
parsers. This doesn't cause any compilation or run-time problems because
Label is just a type synonym for String, but is ugly and breaks the
intended meaning of the Label type.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2016-01-06 17:58:35 -05:00
Collin J. Doering c2c930de9d Removed unnecessary uses of try from Parser
This provides a reasonable performance enhancement as backtracking occurs
less.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-06 04:46:12 -04:00
Collin J. Doering ce38a50ee7 Fixed module name in comment
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-07-06 03:38:30 -04:00
Collin J. Doering 6a4f9ef5b4 Restructured cabalized project
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>
2015-06-17 17:53:37 -04:00
Collin J. Doering a3f12e21d1 Cabalized and modularized project
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>
2015-06-16 18:33:26 -04:00