Hi :)
I'm developing a C like compiler and I whant to know, how it's work the include system... I mean, how the compiler works with the system include
The compiler read the entire code, and stores all includes found in one list and parser the includes, after finish the reading the current code?
#include <stdio.h> // store in one list
int main()
{
return 0;
}
#include <types.h> // store in list
#include <bios.h> // store in list
void printf(...)
{
}
void scanf(...)
{
}
Btw, I have developd an system ( only test ) to read the includes and, stop the parse, to read the include... ( it's a disgusting code, but, work... )
( link of sample )
https://gist.github.com/4399601[
^]
Btw, What is the best way to read the includes... and work with includes files ??