I need to implement support for #include “file.ext” directive in my custom language.
Idea behind this directive is the same as in other languages like C or C++.
I need to have access to included file at lexer and parser level but that path of included file is relative to current document. Lexer interface takes as an input CharSequence and it does not understand files, so I cannot resolve relative file name to absolute path.
Do you know any solution to this problem?