Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.2 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.2 KB

sunyat-assembler

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.

Files

* 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

Building

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.

Arch Linux Instructions (Not fully tested)

git clone https://github.com/zedth2/sunyat-assembler.git
pacman -S base-devel flex
cd sunyat-assembler
make
./bin/sunyat-asm examples/protoShell.asm