上传者: duanjing123
|
上传时间:2023/8/27 17:49:09
|
文件大小:147KB
|
文件类型:pdf
PL/0编译程序的语法分析实验报告
PL/0源程序//PL0.txtconsta=10;varb,c;procedurep;beginc:=b+aend;beginread(b);whileb#0dobegincallp;write(2*c);read(b)endend.//outputfile.txtconstsym,ident,aeql,number,10semicolon,varsym,ident,bcomma,ident,csemicolon,proceduresym,ident,psemicolon,beginsym,ident,cbecomes,ident,bplus,ident,aendsym,semicolon,beginsym,readsym,lparen,ident,brparen,semicolon,whilesym,ident,bneq,number,0dosym,beginsym,callsym,ident,psemicolon,writesym,lparen,number,2times,ident,crparen,semicolon,readsym,lparen,ident,brparen,endsym,endsym,
本软件ID:688788