/// <summary> /// </summary> /// <param name="stream"></param> /// <returns></returns> /// <remarks> /// /// See http://www.dmtf.org/sites/default/files/standards/documents/DSP0221_3.0.0.pdf /// Section A.2 - MOF specification /// /// mofSpecification = *mofProduction /// mofProduction = compilerDirective / /// structureDeclaration / /// classDeclaration / /// associationDeclaration / /// enumerationDeclaration / /// instanceDeclaration / /// qualifierDeclaration /// /// </remarks> internal static MofSpecificationAst Parse(ParserStream stream) { var specification = new MofSpecificationAst(); while (!stream.Eof) { var production = MofProductionAst.Parse(stream); specification.Productions.Add(production); } return specification; }
/// <summary> /// </summary> /// <param name="stream"></param> /// <returns></returns> /// <remarks> /// See http://www.dmtf.org/sites/default/files/standards/documents/DSP0221_3.0.0.pdf /// Section A.2 - MOF specification /// /// mofSpecification = *mofProduction /// /// </remarks> internal static MofSpecificationAst Parse(ParserStream stream) { var specification = new MofSpecificationAst(); while (!stream.Eof) { var production = MofProductionAst.Parse(stream); specification.Productions.Add(production); } return(specification); }