| Abstract—Teaching beginners to learn programming has
many difficult parts. One of them is that some students often
finish course exercises by taking shortcuts, such as using
build-in libraries. This makes teachers difficultly identify
whether students have really learnt some programming
concepts and skills. To improve this problem, we propose the
Selective Syntactic Compiler (SSC) approach to limit
students to only utilize the permitted parts of the grammars
when they code a program. In this paper, we apply the SSC
approach to Python programming language to build a tool,
named Python Selective Syntactic Compiler (pySSC). The
pySSC supports two programming languages: Python and C
and is divided into four modules: filter module, lexical
analyzer, syntax analyzer and code generator. Finally, two
kinds of test cases are designed for testing its functionality
and error-handling mechanism. |