readme
来自「antlr最新版本V3源代码」· 代码 · 共 17 行
TXT
17 行
The example input file has been slightly modified from the analogous Java example: the non-ascii characters have been removed and replacedby some ascii data.The lexer would fail, if it tries to compare a byte >0x7f from the inputto a unicode constant.It would work fine, if you feed unicode into the lexer, but then sys.stdout.write() would probably fail, when it tries to print non-asciidata.It will also work with non-ascii input (the lexer operates on unicode()strings), but then you'll have to do some more work (which I omitted forsimplicity): - decode the input using the appropriate encoding into a unicode string. - encode the data as you send it to the console or store it in a file.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?