A compiler for Basic Language. The reference manual for this language can be found at documentation/Reference_Manual_BASIC.pdf.
Make sure to have G++, Lex and Yacc installed before running the make command.
Download or clone the repository. In the folder where it was downloaded / cloned, run:
$ cd CompilerBasicLanguage/
$ make
Then, the compiler is able to run. It uses the standard input and output, therefore, in order to compile the BASIC code in some file input.basic to a file named output.cpp, just run the following command:
$ ./Compiler < input.basic > output.cpp
Now, you can compile the output file with G++. For this, run the following command:
$ g++ -Wall --std=c++11 -fpermissive output.cpp -o exe.out
Finally, run the executable code:
./exe.out