1
delectate 2019-05-20 08:33:04 +08:00
中文编程,就是闲的。
|
2
LokiSharp 2019-05-20 09:16:44 +08:00 1
pyparsing 性能太差了 antlr 还靠谱点
|
4
LokiSharp 2019-05-20 11:49:30 +08:00 1
@xuanwu #3 https://qiita.com/osamunmun/items/54a00e963d1a7db0cf59
» python test.py ## benchmarker: release 4.0.1 (for python) ## python version: 3.5.1 ## python compiler: GCC 4.2.1 (Apple Inc. build 5666) (dot 3) ## python platform: Darwin-15.6.0-x86_64-i386-64bit ## python executable: .../antlr/query/venv.d/bin/python ## cpu model: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz ## parameters: loop=1000, cycle=1, extra=0 ## real (total = user + sys) antlr 34.1303 34.0900 34.0500 0.0400 pyparsing 159.7840 159.5700 158.7100 0.8600 ## Ranking real antlr 34.1303 (100.0) ******************** pyparsing 159.7840 ( 21.4) **** ## Matrix real [01] [02] [01] antlr 34.1303 100.0 468.2 [02] pyparsing 159.7840 21.4 100.0 |
5
xuanwu OP @LokiSharp 多谢. 回头试试 antlr 自带的 python 语法定义. 不过也许遥遥无期了..估计在那之前就会有像样的中文编程环境出现.
|
6
LokiSharp 2019-05-20 11:57:17 +08:00
|