This is the original SunyAT assembler written in C. This version was originally written by William "Amos" Confer and further modified by me, Zachary Harvey. This version is built to work with the window registering version of the SunyAT and is being put here to be used for further testing with the SunyAT Rust version.
* sunyat-asm.lex
lexical/token analyzer... uses flex
* sunyat-asm.y
grammar/semantic analyser... uses the Lemon parser
generator whose source is included (lemon.c and lempar.c)
* token.h
definition of the assembler token structure shared
between the lexer and parser
You'll need make, GCC, and flex. Flex can be found at this link. Lemon is also a dependency but it's source file is carried in the repository.
git clone https://github.com/zedth2/sunyat-assembler.git
pacman -S base-devel flex
cd sunyat-assembler
make
./bin/sunyat-asm examples/protoShell.asm