Skip to content

gbrsouza/CompilerBasicLanguage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CompilerBasicLanguage

A compiler for Basic Language. The reference manual for this language can be found at documentation/Reference_Manual_BASIC.pdf.

Dependencies

Make sure to have G++, Lex and Yacc installed before running the make command.

Installation and running

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

About

A compiler for Basic Language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •