Implementing C-like includes

Hi,


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

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.

0

Please sign in to leave a comment.