Exemplo n.º 1
0
 public static Parser Read(object root, IO.ICharacterInDevice device)
 {
     Parser result = null;
     if (device.NotNull())
     {
         result = new Parser(root, false, Cli.Terminal.Open(device, null));
         result.Read();
     }
     return result;
 }
Exemplo n.º 2
0
		public static Terminal Open(IO.ICharacterInDevice inDevice, IO.ICharacterOutDevice outDevice)
		{
			return inDevice.NotNull() || outDevice.NotNull() ? new Terminal(inDevice, outDevice) : null;
		}
Exemplo n.º 3
0
		public bool Save(IO.ICharacterWriter writer)
		{
			return writer.NotNull() && writer.Write(this.ToString());
		}