Skip to content

Latest commit

 

History

History
45 lines (24 loc) · 1.79 KB

README.md

File metadata and controls

45 lines (24 loc) · 1.79 KB

Assembly language compiler

assembly-language:100% python:3.8 coverage:100% build:passsing

An assembly langauge compiler written in python that outputs the lexer,parser and code generator after being provided with a sample Java or C code in the (code.txt)[https://github.com/leonkoech/Assembly-Language-Compiler/blob/master/compiler/code.txt] file.

Requirements

python 2.x or Python 3.x

Tests

The tests done for both java and c (can be found here.) https://github.com/leonkoech/Assembly-Language-Compiler/blob/master/tests/test1.md#c

Demo

Here are screenshots demonstrating the code input and the outputs from the lexer,parser and code generator

code input

Screenshot from 2020-04-28 01-12-31

lex output

Screenshot from 2020-04-28 01-13-24

syntax analyser output

Screenshot from 2020-04-28 01-13-35

code generator output

Screenshot from 2020-04-28 01-13-43

Contribution

Read the contribution guide

License

This project is under the MIT license.