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.
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
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$
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
g++ 9.3.0
or later
chmod +x g++_download.sh && ./g++_download