简体   繁体   中英

antlr4 missing file Python3LexerBase.go

伙计们,我需要用 antlr4 通过 golang 分析 python,我发现缺少 Python3LexerBase.go,有人有吗?

That file is not provided in the Github repo of grammars . You'll need to implement that class yourself. You can look at the other implementations that are provided of the Python3LexerBase class (C#, Java and Python are provided, if memory serves me well).

Also see: https://github.com/antlr/grammars-v4/issues/2288

Please note that the Github repo of grammars is not an official maintained repository of the authors/maintainers of ANTLR. It is a large amount of (not too well tested) contributions of other people. Do not expect all files to be there, and be cautious when using them in anything other than a small side/pet project you're working on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM