-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Description
“还需要注意的是指针解引用(dereference)的识别, ”这一段下方的代码:
if (!make_token(e)) {
*success = false;
return 0;
}
/* TODO: Implement code to evaluate the expression. */
for (i = 0; i < nr_token; i ++) {
if (tokens[i].type == '*' && (i == 0 || tokens[i - 1].type == certain type) ) {
tokens[i].type = DEREF;
}
}
return eval(?, ?);
我认为这个for循环不应该放到这里,而应该放到make_token函数体内处理,更有逻辑。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels