antlr4/python3: pretty print parse tree to console

后端 未结 0 689
花落未央
花落未央 2021-01-30 00:30

How do I print a version of the parse tree to stdout?

input_stream = FileStream(argv[1])
lexer = PrystLexer(input_stream)
stream = CommonTokenStream(lexer)
parse         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题