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

老師希望可以限制某些語法不能使用 #183

Open
Bogay opened this issue Jan 4, 2023 · 0 comments
Open

老師希望可以限制某些語法不能使用 #183

Bogay opened this issue Jan 4, 2023 · 0 comments

Comments

@Bogay
Copy link
Member

Bogay commented Jan 4, 2023

程設 B 班有出現過一個需求,是老師希望同學們只能使用已經在課堂上教過的語法,e.g. 可以用 if else,但不能用 for。若是使用超出範圍的語法則會將分數打折,之前的做法是使用 pycparse 手動將所有同學的 submission 爬下來之後檢查 AST 中是否含有特定 node,但這做法顯然不夠標準化,而且需要手動執行。

@uier uier added this to NOJ Board Sep 21, 2022
@Bogay Bogay converted this from a draft issue Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant