Skip to content

Toy-Compiler can be for educational purpose. Helpful for those who need to design a compiler for a simple language. It has the complete compiler built in C language which includes lexer,parser and code generator.

Notifications You must be signed in to change notification settings

amit9oct/Toy-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toy-Compiler

Author: Amitayush Thakur


Use: Anyone who wants to learn how to design a compiler for simple language can use this as a tool. It has lexer, parser and code generator everything written in C language. It doesn't use any external libraries. Also for asm it uses nasm.

Instructions


  1. Making the repository: ###Use $> make or $> make all

    This will make all the files and create toycompiler in the main folder as well as bin folder.

  2. Compiling the files with code: ###Use $> toycompiler <path of source file> <path where you want to create asm file>

    This will create a file asm file which can later be executed using nasm.

About

Toy-Compiler can be for educational purpose. Helpful for those who need to design a compiler for a simple language. It has the complete compiler built in C language which includes lexer,parser and code generator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages