summaryrefslogtreecommitdiff
path: root/src/assembler.rs
Commit message (Collapse)AuthorAge
* Rewrite assemblerBen Bridle2024-10-28
| | | | | | | | | | This is an almost complete rewrite of the entire assembler from the ground up, with a different parsing strategy and a whole new symbol resolution mechanism for automatically including library files. The assembly syntax has also been slightly modified, with padding tokens now being prefixed with '#' instead of '$', and a block-style anonymous-label syntax which uses the '{' and '}' characters.
* Report preceding label name on assembly errorBen Bridle2023-12-19
| | | | | | | | | | | | When the assembler encounters an error, the erroneous line and the line number are output in order to help the user to find where in the input file the error occurred. This is useful for single-file inputs, but the line number is generally not helpful if the input file was generated by concatenating multiple files. In order to help the user to determine where in the program source the error occurred, the assembler now reports the name of the label which directly precedes the erroneous line.
* Added detection of cyclic macro references, and made assembler binary usableBen Bridle2023-05-08