/**
  * Compiles the parsed PDL into the specified MetadataRoot.
  *
  * @param root The MetadataRoot to emit to.
  */
 public void emit(MetadataRoot root) {
   m_pdl.emit(root.getRoot());
   m_pdl.emitVersioned();
   if (root.equals(MetadataRoot.getMetadataRoot())) {
     MetadataRoot.loadPrimitives();
   }
 }
 /**
  * Parses the text in <i>contents</i> and reports any errors using the <i>location</i> tag.
  *
  * @param contents A reader of the text to be parsed.
  * @param location The location to use when reporting errors.
  */
 public void parse(Reader contents, String location) {
   m_pdl.load(contents, location);
 }