Yujie Zhang, Yuhao Dou, Xiang-wu Meng, Yi’an Lai, Y. Lu, Xin Wang
{"title":"Gamification of LR Algorithm: Engaging Students by Playing in Compiler Principle Course","authors":"Yujie Zhang, Yuhao Dou, Xiang-wu Meng, Yi’an Lai, Y. Lu, Xin Wang","doi":"10.1109/ICCSE49874.2020.9201825","DOIUrl":null,"url":null,"abstract":"Theoretical knowledge of the compiler principle courses is often abstract and uninteresting, which may easily make students lose their confidence and interest in learning such important computer science courses. To solve this problem, we introduce the concept of gamification into the compiler principle course for teaching aids, and design the card game called Into the Stack for the LR parsing algorithm, an important theory that must be mastered by students. When playing the game, players think over the quickest way to reduce their hands, which is based on the \"shift-reduce\" actions in LR parsing. Simulating such core actions of LR algorithm in this game, the whole abstract theory and algorithm has been demonstrated in a way of entertainment. It would help learners overcome their fear of theoretical knowledge, stimulate their interest in learning theories and enhance their ability of applying algorithms. Applied in realistic compiler principle courses, this game and such teaching method have achieved satisfactory teaching results.","PeriodicalId":350703,"journal":{"name":"2020 15th International Conference on Computer Science & Education (ICCSE)","volume":"5 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 15th International Conference on Computer Science & Education (ICCSE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCSE49874.2020.9201825","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
Theoretical knowledge of the compiler principle courses is often abstract and uninteresting, which may easily make students lose their confidence and interest in learning such important computer science courses. To solve this problem, we introduce the concept of gamification into the compiler principle course for teaching aids, and design the card game called Into the Stack for the LR parsing algorithm, an important theory that must be mastered by students. When playing the game, players think over the quickest way to reduce their hands, which is based on the "shift-reduce" actions in LR parsing. Simulating such core actions of LR algorithm in this game, the whole abstract theory and algorithm has been demonstrated in a way of entertainment. It would help learners overcome their fear of theoretical knowledge, stimulate their interest in learning theories and enhance their ability of applying algorithms. Applied in realistic compiler principle courses, this game and such teaching method have achieved satisfactory teaching results.