Beispiel #1
0
        /// <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();
        }
Beispiel #2
0
 /// <summary>
 /// Load specification from file or resource.
 /// </summary>
 public void Load(StreamReader textReader)
 {
     SpecParser.Parse(this, textReader);
 }