LLVM based parser in C++ for simpler BASIC.
Course: Compilers, Monsoon 2019
Taught by: Prof. Suresh Purini
e**.bas are example input programs to scanner.
use ./scanner <input file> to run scanner.
26.10.2019
- added several inbuilt qb-functions
- could not depointer
stringinValue - (this is not allowed in c++ wo copy con.)
- parser does not allow
xto be bothId/Fn - there can be unstructured goto anywhere
- using string stream makes
s()convenient - virtual function called
insfor insertion - operator overloading with
ostream. friendfunction used as multiple includes- was reusing
xin parser which caused problems
27.06.2019
- ast needs transformation
30.06.2019
- how do you have line numbers or labels in lines
- how do you keep track of it
- close needs to validates es to ints and call1 close