Disable or skip parsing of some token in C/C++ language (Eclipse plugin, using CDT)

我只是一个虾纸丫 提交于 2020-04-30 06:24:28

问题


Following this question disable-syntax-error, I need something really similar.

I have my set of eclipse plugins and I want to support my own language which extends C++ with some keywords and concepts. For example:

int i = @$symbol;

the identifier @$symbol is defined somehere else, and literally substituted from my custom compiler before the real C code gets to the C compiler.

Now I need some basic guideline to what class override in CDT codebase, to get rid of "Symbol could not be resolved". The answer to the post disable-syntax-error is not clear to me.. I need some basic information or good practice on how to extend the CDT, maybe some kind of tutorial.

Thank you

来源:https://stackoverflow.com/questions/59968431/disable-or-skip-parsing-of-some-token-in-c-c-language-eclipse-plugin-using-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!