Read an integer from the user
Inheritance: Statement
コード例 #1
0
 public virtual void Visit(Read node)
 {
 }
コード例 #2
0
 void ReadStmt(out Statement stmt)
 {
     stmt = null;
     Expect(15);
     if (la.kind == 1) {
     Get();
     stmt = new Read(new Variable(t.val));
     } else if (la.kind == 6) {
     Get();
     Expect(1);
     stmt = new Read(new Variable(t.val));
     Expect(9);
     } else SynErr(55);
 }