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,
2023/8/27 17:49:09
147KB
语法分析
1