i'm working on flex and bison together but i have a problem. i'm trying to make a compiler for my own language and i want to be able to add a file to the programan.i mean, i send a file to yacc with my program but in it there are one or more sentences which call other files and i want to change ,when a find a sentence like that,the input file to that one and after to continue with the one i had before and from the point where i had finished,that is a stack,how can i do that??
thanks |