Skip to content

making a compiler for converting to high level language to 8 bit architecture assembly code .

Notifications You must be signed in to change notification settings

AYSTRONGIRP/SimpleLang-A-Basic-High-Level-Language-for-an-8-bit-CPU-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIMPLELANG COMPILER

Current feature

  • identification of tokens,
  • Variable Declaration
  • Assignment
  • Arithmetic Operations (+ , -)
  • Conditionals (if with else branch )

Build the compiler:

g++ -o compiler main.cpp lexer.cpp parser.cpp

Executing the compiler

compiler.exe

How to run the output

Use the 8-bit computer

Sample Outputs

1

Input-

image

Output- image

Structure of Compiler

parts of compiler

lexer

parser

ast

About

making a compiler for converting to high level language to 8 bit architecture assembly code .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published