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.
我想在词法分析期间在 EOF 之前插入一个标记。antlr3(C-target)可以做到这一点吗?
您可以覆盖 nextToken() 函数并在您拥有的特定条件下返回您的虚拟令牌。但是,如果不去运行时,我看不出有什么办法。