⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug.txt

📁 c++语言编写的PL0语言的语法分析程序
💻 TXT
📖 第 1 页 / 共 2 页
字号:
|      ->Pl0();  
|      |      <-getsym ();  
|      |      |      const a=10;  
|      |      |      const 1 
|      |      |      sym= 27 
|      |      >-getsym ();  
|      ->Pl0();  
|      <-block();  
|      |      <-gen();  
|      |      |      JMP 0 0
|      |      >-gen();  
|      |      <-test();  
|      |      >-test();  
|      |      <-getsym ();  
|      |      |      a 1 
|      |      |      sym= 1 
|      |      >-getsym ();  
|      |      <-constDeclaration();  
|      |      |      <-getsym ();  
|      |      |      |      sym= 8 
|      |      |      >-getsym ();  
|      |      |      <-getsym ();  
|      |      |      |      number =  10 
|      |      |      |      sym= 2 
|      |      |      >-getsym ();  
|      |      |      <-enter();  
|      |      |      >-enter();  
|      |      |      <-getsym ();  
|      |      |      |      var b,c;  
|      |      |      |      sym= 17 
|      |      |      >-getsym ();  
|      |      >-constDeclaration();  
|      |      <-getsym ();  
|      |      |      var 2 
|      |      |      sym= 28 
|      |      >-getsym ();  
|      |      <-getsym ();  
|      |      |      b 2 
|      |      |      sym= 1 
|      |      >-getsym ();  
|      |      <-varDeclaration();  
|      |      |      <-enter();  
|      |      |      >-enter();  
|      |      |      <-getsym ();  
|      |      |      |      sym= 16 
|      |      |      >-getsym ();  
|      |      >-varDeclaration();  
|      |      <-getsym ();  
|      |      |      c 2 
|      |      |      sym= 1 
|      |      >-getsym ();  
|      |      <-varDeclaration();  
|      |      |      <-enter();  
|      |      |      >-enter();  
|      |      |      <-getsym ();  
|      |      |      |      procedure p;  
|      |      |      |      sym= 17 
|      |      |      >-getsym ();  
|      |      >-varDeclaration();  
|      |      <-getsym ();  
|      |      |      procedure 3 
|      |      |      sym= 29 
|      |      >-getsym ();  
|      |      <-getsym ();  
|      |      |      p 3 
|      |      |      sym= 1 
|      |      >-getsym ();  
|      |      <-enter();  
|      |      >-enter();  
|      |      <-getsym ();  
|      |      |      	begin  
|      |      |      sym= 17 
|      |      >-getsym ();  
|      |      <-getsym ();  
|      |      |      	    c:=b+a;  
|      |      |      begin 5 
|      |      |      sym= 20 
|      |      >-getsym ();  
|      |      <-block();  
|      |      |      <-gen();  
|      |      |      |      JMP 0 0
|      |      |      >-gen();  
|      |      |      <-test();  
|      |      |      >-test();  
|      |      |      <-gen();  
|      |      |      |      INT 0 3
|      |      |      >-gen();  
|      |      |      <-statement()  
|      |      |      |      <-test();  
|      |      |      |      >-test();  
|      |      |      |      <-getsym ();  
|      |      |      |      |      c 5 
|      |      |      |      |      sym= 1 
|      |      |      |      >-getsym ();  
|      |      |      |      <-statement()  
|      |      |      |      |      <-test();  
|      |      |      |      |      >-test();  
|      |      |      |      |      <-position();  
|      |      |      |      |      >-position();  
|      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      sym= 19 
|      |      |      |      |      >-getsym ();  
|      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      b 5 
|      |      |      |      |      |      sym= 1 
|      |      |      |      |      >-getsym ();  
|      |      |      |      |      <-expression();  
|      |      |      |      |      |      <-test();  
|      |      |      |      |      |      >-test();  
|      |      |      |      |      |      <-term();  
|      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      <-factor();  
|      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      |      <-position();  
|      |      |      |      |      |      |      |      >-position();  
|      |      |      |      |      |      |      |      <-gen();  
|      |      |      |      |      |      |      |      |      LOD 1 3
|      |      |      |      |      |      |      |      >-gen();  
|      |      |      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      |      |      sym= 3 
|      |      |      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      >-factor();  
|      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      >-term();  
|      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      a 5 
|      |      |      |      |      |      |      sym= 1 
|      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      <-term();  
|      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      <-factor();  
|      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      |      <-position();  
|      |      |      |      |      |      |      |      >-position();  
|      |      |      |      |      |      |      |      <-gen();  
|      |      |      |      |      |      |      |      |      LIT 0 10
|      |      |      |      |      |      |      |      >-gen();  
|      |      |      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      |      |      	begin  
|      |      |      |      |      |      |      |      |      sym= 17 
|      |      |      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      >-factor();  
|      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      >-term();  
|      |      |      |      |      |      <-gen();  
|      |      |      |      |      |      |      OPR 0 2
|      |      |      |      |      |      >-gen();  
|      |      |      |      |      |      <-test();  
|      |      |      |      |      |      >-test();  
|      |      |      |      |      >-expression();  
|      |      |      |      |      <-gen();  
|      |      |      |      |      |      STO 1 4
|      |      |      |      |      >-gen();  
|      |      |      |      |      <-test();  
|      |      |      |      |      >-test();  
|      |      |      |      >-statement()  
|      |      |      |      <-getsym ();  
|      |      |      |      |      	    b:=c+a;  
|      |      |      |      |      begin 7 
|      |      |      |      |      sym= 20 
|      |      |      |      >-getsym ();  
|      |      |      |      <-statement()  
|      |      |      |      |      <-test();  
|      |      |      |      |      >-test();  
|      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      b 7 
|      |      |      |      |      |      sym= 1 
|      |      |      |      |      >-getsym ();  
|      |      |      |      |      <-statement()  
|      |      |      |      |      |      <-test();  
|      |      |      |      |      |      >-test();  
|      |      |      |      |      |      <-position();  
|      |      |      |      |      |      >-position();  
|      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      sym= 19 
|      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      c 7 
|      |      |      |      |      |      |      sym= 1 
|      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      <-expression();  
|      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      <-term();  
|      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      |      <-factor();  
|      |      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      |      |      <-position();  
|      |      |      |      |      |      |      |      |      >-position();  
|      |      |      |      |      |      |      |      |      <-gen();  
|      |      |      |      |      |      |      |      |      |      LOD 1 4
|      |      |      |      |      |      |      |      |      >-gen();  
|      |      |      |      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      |      |      |      sym= 3 
|      |      |      |      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      |      >-factor();  
|      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      >-term();  
|      |      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      |      a 7 
|      |      |      |      |      |      |      |      sym= 1 
|      |      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      |      <-term();  
|      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      |      <-factor();  
|      |      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      |      |      <-position();  
|      |      |      |      |      |      |      |      |      >-position();  
|      |      |      |      |      |      |      |      |      <-gen();  
|      |      |      |      |      |      |      |      |      |      LIT 0 10
|      |      |      |      |      |      |      |      |      >-gen();  
|      |      |      |      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      |      |      |      	    read(c)  
|      |      |      |      |      |      |      |      |      |      sym= 17 
|      |      |      |      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      |      >-factor();  
|      |      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      |      >-term();  
|      |      |      |      |      |      |      <-gen();  
|      |      |      |      |      |      |      |      OPR 0 2
|      |      |      |      |      |      |      >-gen();  
|      |      |      |      |      |      |      <-test();  
|      |      |      |      |      |      |      >-test();  
|      |      |      |      |      |      >-expression();  
|      |      |      |      |      |      <-gen();  
|      |      |      |      |      |      |      STO 1 3
|      |      |      |      |      |      >-gen();  
|      |      |      |      |      |      <-test();  
|      |      |      |      |      |      >-test();  
|      |      |      |      |      >-statement()  
|      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      read 8 
|      |      |      |      |      |      sym= 31 
|      |      |      |      |      >-getsym ();  
|      |      |      |      |      <-statement()  
|      |      |      |      |      |      <-test();  
|      |      |      |      |      |      >-test();  
|      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      sym= 14 
|      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      c 8 
|      |      |      |      |      |      |      sym= 1 
|      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      <-position();  
|      |      |      |      |      |      >-position();  
|      |      |      |      |      |      <-gen();  
|      |      |      |      |      |      |      OPR 0 16
|      |      |      |      |      |      >-gen();  
|      |      |      |      |      |      <-gen();  
|      |      |      |      |      |      |      STO 1 4
|      |      |      |      |      |      >-gen();  
|      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      	end  
|      |      |      |      |      |      |      sym= 15 
|      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      <-getsym ();  
|      |      |      |      |      |      |      	end;  
|      |      |      |      |      |      |      end 10 
|      |      |      |      |      |      |      sym= 21 
|      |      |      |      |      |      >-getsym ();  
|      |      |      |      |      |      <-test();  
|      |      |      |      |      |      >-test();  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -