Redian新闻
>
Smart Parser/Compiler Development
avatar
Smart Parser/Compiler Development# Programming - 葵花宝典
s*7
1
有一个问题想让版上有经验的同学帮忙回答一下。本人打算今年5月申请OPT延期,但之
前想提交
I-140,不知道会不会对申请OPT延期有影响。多谢。
avatar
S*t
2
人如果已经在美国,中国当地户口以经注销,那么出生证明是怎么办的?
avatar
c*7
3
有人会吗?要求功能类似IE的BHO。请站内联系。谢谢!
avatar
g*s
4
Hi, can any guru give some suggestion on how to develop a smart parser/
compiler
given a set of syntax definition?
By "smart" I mean the parser can skip some errors and continue, like gcc
does in some situation. I hope to learn some general principles on this
issue.
Thanks!
avatar
e*6
5
户口怎么会注销呢?赶快找国内的亲人帮你查查,如果你找到熟人,很容易办。你写个
委托书扫描过去,发个照片(邮寄或者扫描让国内给你去冲洗),自己写个中英文草稿
,国内那边的公安局有专门办理这个的。有关系和熟人的话,不会那么多麻烦。
avatar
j*a
6
i did one before and can do it for you
Email:g**********[email protected]

【在 c****7 的大作中提到】
: 有人会吗?要求功能类似IE的BHO。请站内联系。谢谢!
avatar
c*t
7
For LR parsers, when a set of tokens couldn't be reduced, there is a
error. At this point, you can decided on a case by case basis to
manipulate the parsing stack or directly generate an error.
For LL parsers, if your look ahead token isn't what you expect (such
as missing ';'), you can insert this pretty easily. Usually LL parsers
is a bit easier for this kind of stuff.
I'd say don't waste your time on itt. It's really not that importat.

【在 g*********s 的大作中提到】
: Hi, can any guru give some suggestion on how to develop a smart parser/
: compiler
: given a set of syntax definition?
: By "smart" I mean the parser can skip some errors and continue, like gcc
: does in some situation. I hope to learn some general principles on this
: issue.
: Thanks!

avatar
c*7
8
你好,我回了你的信,请问收到了吗?

【在 j****a 的大作中提到】
: i did one before and can do it for you
: Email:g**********[email protected]

avatar
d*2
9
bison supports "error" token, you can do whatever you want.
avatar
N*n
10
The idea is simple: Add additional rules to track potential errors.
Like switch case statements:
switch (status)
case 0 : // do status 0
...
case 1 : // do status 1
...
case 2 : // wrong, status 2 is caused by some certain mistake
generateErrorReportOnStatus2 ();
... ...
"case 2" is an example of the additional rules.


【在 g*********s 的大作中提到】
: Hi, can any guru give some suggestion on how to develop a smart parser/
: compiler
: given a set of syntax definition?
: By "smart" I mean the parser can skip some errors and continue, like gcc
: does in some situation. I hope to learn some general principles on this
: issue.
: Thanks!

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