Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于tokenizer.cpp中的checkToken函数的问题 #9

Closed
Simoncxm opened this issue Nov 17, 2019 · 5 comments
Closed

关于tokenizer.cpp中的checkToken函数的问题 #9

Simoncxm opened this issue Nov 17, 2019 · 5 comments

Comments

@Simoncxm
Copy link

在tokenizer.h中写了需要自己完成这个函数,但指导书中写只能修改nextToken函数。还是只能新增一个辅助函数用来检测其他情况?

@wtdcode
Copy link
Member

wtdcode commented Nov 17, 2019 via email

@Simoncxm
Copy link
Author

checkToken函数显然是应该补充其他情况的,但是指导书中写不能修改这个函数。

@Simoncxm
Copy link
Author

比如检测一个数字是否越界是否可以也写在checkToken函数中?还是只能新建辅助函数

@wtdcode
Copy link
Member

wtdcode commented Nov 17, 2019 via email

@wtdcode
Copy link
Member

wtdcode commented Nov 18, 2019

See #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants