Algorithm Visualization for Teaching Principles of Compiler

王强,冯雁
DOI: https://doi.org/10.3969/j.issn.1672-5913.2010.03.007
2010-01-01
Abstract:This paper explores how to visualize the algorithms in courses of teaching principles of compiler.A scheme is proposed to demonstrate the algorithm steps.The scheme shows the actions and datum using different graph elements and colors,and thus shows the algorithm steps and connected datum clearly.It is used to demonstrate LR parsing algorithm,showing how to decompose the complicated steps into sub-steps and use graph elements and colors to reveal the parsing actions,such as shift,reduce,accepting and errors,and connected datum are showing simultaneously.
What problem does this paper attempt to address?