/// <summary> /// Parse a specification file/resource and populate the Specification /// with its contents. /// </summary> public static void Parse(Specification spec, StreamReader file) { var lexer = new SpecLexer(file); var parser = new SpecParser(spec, lexer); parser.Parse(); }
/// <summary> /// Load specification from file or resource. /// </summary> public void Load(StreamReader textReader) { SpecParser.Parse(this, textReader); }