I am writing a basic language in flex + bison for my own personal research / to run simple scripts for fun.
It takes user input via the command line, parses it, and executes the desired result. I would like to add functionality load files.
for example, when the "load file 'somefile.src'" the file is loaded and automatically parsed, then the parser switches back to waiting for command line inputs.
I haven't been able to make sense of the documentation and am pretty lost. It doesn't help that I am new to flex, bison, and C as a whole.
I am following this pdf: http://epaperpress.com/lexandyacc/ (using the complex calculator as a skeleton and adding functionality on top of it) as well as looking through bison documentation http://www.gnu.org/software/bison/manual/bison.html.
Any advice would be appreciated.