g******a 发帖数: 730 | 1 好像有点怪:)
我以前的lexer使用Python写的
不想重新写了
如果能在java里用python的模块也行
多谢 |
o**v 发帖数: 1662 | |
g******a 发帖数: 730 | 3 3x a lot.:P
But as far as I see, it's a parser/lexer for java
I need a parser/lexer for C, but written in Java.
Is there any such tool?
【在 o**v 的大作中提到】 : http://www.cs.princeton.edu/~appel/modern/java/JLex/ : http://www.cs.princeton.edu/~appel/modern/java/CUP/
|
o**v 发帖数: 1662 | 4 我看错了你的问题,呵呵
不知道.
【在 g******a 的大作中提到】 : 3x a lot.:P : But as far as I see, it's a parser/lexer for java : I need a parser/lexer for C, but written in Java. : Is there any such tool?
|
g******a 发帖数: 730 | 5 hehe
3x anyway. :)
【在 o**v 的大作中提到】 : 我看错了你的问题,呵呵 : 不知道.
|
z***y 发帖数: 42 | 6 javacc. (like LEX/YACC)
They have C grammar available.
【在 g******a 的大作中提到】 : 好像有点怪:) : 我以前的lexer使用Python写的 : 不想重新写了 : 如果能在java里用python的模块也行 : 多谢
|
c*****s 发帖数: 214 | 7 最流行的当然是antlr: http://antlr.org , C/C++的Parser有现成的
java的python解释可以用jython http://www.jython.org 。但这个只是语言解释器,不
是
用来调现有的python模块。
【在 g******a 的大作中提到】 : 好像有点怪:) : 我以前的lexer使用Python写的 : 不想重新写了 : 如果能在java里用python的模块也行 : 多谢
|
j******r 发帖数: 201 | 8 javacc website has it.
【在 g******a 的大作中提到】 : 好像有点怪:) : 我以前的lexer使用Python写的 : 不想重新写了 : 如果能在java里用python的模块也行 : 多谢
|