Exemplo n.º 1
0
		public void write_c_for_cycle(c_for_cycle _c_for_cycle)
		{
			write_statement(_c_for_cycle);
			if (_c_for_cycle.expr1 == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_c_for_cycle.expr1.visit(this);
			}
			if (_c_for_cycle.expr2 == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_c_for_cycle.expr2.visit(this);
			}
			if (_c_for_cycle.expr3 == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_c_for_cycle.expr3.visit(this);
			}
			if (_c_for_cycle.stmt == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_c_for_cycle.stmt.visit(this);
			}
		}
Exemplo n.º 2
0
 public override void visit(c_for_cycle _c_for_cycle)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
		public void visit(c_for_cycle _c_for_cycle)
		{
			bw.Write((Int16)166);
			write_c_for_cycle(_c_for_cycle);
		}
Exemplo n.º 4
0
 public override void visit(c_for_cycle _c_for_cycle)
 {
     //throw new Exception("The method or operation is not implemented.");
     
 }
		public void read_c_for_cycle(c_for_cycle _c_for_cycle)
		{
			read_statement(_c_for_cycle);
			_c_for_cycle.expr1 = _read_node() as statement;
			_c_for_cycle.expr2 = _read_node() as expression;
			_c_for_cycle.expr3 = _read_node() as expression;
			_c_for_cycle.stmt = _read_node() as statement;
		}
		public void visit(c_for_cycle _c_for_cycle)
		{
			read_c_for_cycle(_c_for_cycle);
		}
Exemplo n.º 7
0
 public override void visit(c_for_cycle node)
 {
     prepare_node(node.expr1, "expr1");
     prepare_node(node.expr2, "expr2");
     prepare_node(node.expr3, "expr3");
     prepare_node(node.stmt, "stmt");
 }
Exemplo n.º 8
0
 public override void visit(c_for_cycle node)
 {
 }