Ejemplo n.º 1
0
        /// <inheritdoc />
        public override void Parse(string line, IList <string> tokens, IList <Binding> bindings)
        {
            if (tokens.Count < 3)
            {
                throw new ExternalCompilerException("Buffer bind has too few parameters");
            }
            var newKW = new SetBuffer();

            newKW.name = tokens[1];
            if (!Int32.TryParse(tokens[2], out newKW.id))
            {
                throw new ExternalCompilerException("Buffer bind ID is not an integer");
            }
            bindings.Add(newKW);
        }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public override void Parse(string line, IList<string> tokens, IList<Binding> bindings)
 {
     if (tokens.Count < 3)
         throw new ExternalCompilerException("Buffer bind has too few parameters");
     var newKW = new SetBuffer();
     newKW.name = tokens[1];
     if (!Int32.TryParse(tokens[2], out newKW.id))
         throw new ExternalCompilerException("Buffer bind ID is not an integer");
     bindings.Add(newKW);
 }