
编译原理
南隅笙箫
双非毕业蹲哥,https://jimmyhjh.吸欧诶姆
展开
-
利用LEX工具构造TINY语言的词法分析器
实验目的构造 tiny 语言的词法分析器(扫描器),要求利用第三方的 lex 工具进行构造。实验结果:构造出的扫描器,能够读入教材样例中给出的 tiny 语言的示例代码,分解成 token 输出。输入设计{ Sample programin TINY language -computes factorial}read x; { input an integer }if 0...原创 2020-02-24 20:56:13 · 1519 阅读 · 0 评论 -
基于YACC的TINY语法分析器的构建(含实验报告
实验要求运用YACC,针对TINY语言,构造一个语法分析器输入设计{ Sample program in TINY language - computes factorial } read x; { input an integer } if 0 < x then { don't compute if x <= 0 } fact := 1;...原创 2020-02-24 20:49:41 · 1888 阅读 · 1 评论