Skip to content

It's a simple compiler design which can compile C language

Notifications You must be signed in to change notification settings

aaaaaron722/Simple-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Compiler using python to compile HelloWorld language

Author: Aaron

Update Date: Dec 24 2024

Course: Compiler Design

Language: python

This tutorial is very helpful for beginner who are learning Compiler Design. Strong recommendation.

How to use this document

Step 1: Clone this repository and import the lex.py in your code

Step 2: Open your terminal and type this command:

bash build.sh <ExecutedFile>

Example: image

The Language would look like

    PRINT"Here is example 3: add(10, 20)"
    LET a = 10
    LET b = 20
    FUNC add(a, b)
        LET c = a + b
        RETURN c
    ENDFUNC
    PRINT add(a, b)

About

It's a simple compiler design which can compile C language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published