Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找 C 语言的 GCC 中的词法分析器代码,但找不到。我找到了 lex.c 但文件中的注释说它适用于 C++。
请提供任何可以提供帮助的链接(如果有)。
解析器正在从目录中的预处理器读取令牌流libcpp/
libcpp/
阅读GCC 资源中心(印度孟买 IIT)提供的文档和幻灯片
如果您想扩展 GCC,请考虑使用MELT
顺便说一句,使用更新版本的 GCC,例如 4.9