Petit is an educational programming language for learning compilers. Students embark on the journey of learning compilers through a series of six tutorials, progressing from topics like lexical analysis and syntactic analysis to semantic analysis and code generation. The initial tutorials in this series cover the practical applications of the lex and yacc tools, while the concluding tutorial focuses on generating LLVM intermediate representation.
翻译:Petit是一种用于学习编译器的教育性编程语言。学生通过一系列六个教程踏上编译器学习之旅,内容从词法分析、语法分析等主题逐步深入到语义分析与代码生成。本系列教程的早期部分涵盖lex与yacc工具的实际应用,而最终教程则聚焦于生成LLVM中间表示。