/// <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); }
/// <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); }