Implementing C-like includes


I'm developing a language plugin and want to implement advanced support of file includes which work as in C language.
Ideally, I would to handle includes in lexer and show program text with all includes with possibility to edit included files "in place".
Is this possible?

I tried to adopt "skeleton.nested" file from JFlex distribution as it has yypushStream/yypopStream features but got an error about broken token sequence.
1 comment
Comment actions Permalink

Handling C includes correctly is possible, and it is fully supported in AppCode, but it's very tricky to implement, and we see it as a competitive advantage for our tools. Because of that, we have no plans to release any code or documentation describing how the AppCode implementation works.


Please sign in to leave a comment.