英文:
Is there an open source lexer (parser) for the go language?
问题
对于Go语言,是否有一种工具可以将其解析为词法元素?我正在寻找一个能够接受Go源代码并输出其标记化版本的过滤器。它不需要进行完整的语义编译。
谢谢您提前的帮助!
英文:
For the go language, is there a tool that would parse it into lexical elements? I am looking for a filter that would take go source code and output a tokenized version of it. It does not need to do full semantic compilation.
thank you in advance,
答案1
得分: 3
标准库:
你可以从scanner包开始,它可以对Go源代码进行标记化处理。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论