avatar
JavaCC/SableCC/otherCC ?# Java - 爪哇娇娃
j*1
1
【 以下文字转载自 Complain 讨论区 】
发信人: mitbbs (未名空间), 信区: Complain
标 题: Re: [投诉]TrustinJesus版主Dignity两天之内狂删我19篇主题帖
发信站: BBS 未名空间站 (Tue Jun 28 02:58:38 2011, 美东)
由于版内炸版,会引起误删。版主可恢复其误删的帖子
avatar
m*r
2
I am now trying to extend Java. In addition to lexer and parser,
I need one function that can inference the type of expression
for java. Or, better if it can give the type range during parsing.
No other requirement. Any guru know such tools?
I checked JavaCC, SableCC, and some other tools, But can not find
such capability. Is there any third implementation based on such
CC tools, such as a Compiler-Compiler based full java compiler (in
which there must be such functions)? I say CC-based because
avatar
D*I
3
I'm not sure, but I think JavaCC has a visitor pattern where you can add
functions to each node on the parser tree.
I suggest you send a email to professor Jens p******[email protected], he's one
of the guys that knows more on this.

【在 m***r 的大作中提到】
: I am now trying to extend Java. In addition to lexer and parser,
: I need one function that can inference the type of expression
: for java. Or, better if it can give the type range during parsing.
: No other requirement. Any guru know such tools?
: I checked JavaCC, SableCC, and some other tools, But can not find
: such capability. Is there any third implementation based on such
: CC tools, such as a Compiler-Compiler based full java compiler (in
: which there must be such functions)? I say CC-based because

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。