Skip to content

A compiler that outputs your java or c or dott (a combination of both based on my lex grammar) code in Assembly language

License

Notifications You must be signed in to change notification settings

leonkoech/Assembly-Language-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A compiler that outputs your java or c or dott (a combination of both based on my lex grammar) code in Assembly language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages