Skip to content

This is my repo for CS111 - Spring 2021, University of Information Technology, VNU HCM - create a barebones compiler using C++

License

Notifications You must be signed in to change notification settings

BTrDung/barebones-programming-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barebones programming language

This is my repo for CS111 - Spring 2021, University of Information Technology, VNU HCM.
In this repo, I create a barebones compiler using C++. Barebones programming language is a low level language which includes only basic statements to execute a simple program.

Introduction

version

How syntax tree of barebones look like?

Syntax tree is a data structure, which is widely used in compilers to represent the structure of a program. It often serves as an intermediate representation of the program through several stages that the compiler requires, and thus has a strong impact on the final output of the compiler

alt text

How to run program

Clone my repo:

git clone https://github.com/BTrDung/barebones-language.git

Compile and executive barebone command using your own link-to-file in your terminal:

chmod +x run.sh && ./run $link-to-file$

Examples barebones program

Two simple sample barebones programs are provided in the "examples" subdirectory. test1.bb will compute A + B. For example, to compute A + B:

./bb ./examples/test1.bb

Requirements

g++ 9.3.0 or later

Installation

chmod +x g++_download.sh && ./g++_download

About

This is my repo for CS111 - Spring 2021, University of Information Technology, VNU HCM - create a barebones compiler using C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published