Relative Content

Tag Archive for c++bisonflex-lexer

is this a issue happening when switching from file to file or from file to main file? in the lexer?

i have created a simple intrepeter using c flex(for lexer) and bison(for parser) i have support for variables, arrays and 2 dimentional arrays, i have created a way to include files inside the main file that will be runned by the intrepeter(my goal is to create a way for users to create librarys) and for me as the creator of the language to create a standard library for the language. my issue is that i get a Parse error: syntax error for each file i include, if i add more files then multiple Parse error: syntax error will be written after the intrepter is done with executing my code. if i dont include files then i dont get the Parse error: syntax error error, my issue is that i dont know where this problem start in my code.