src/Pure/Thy/thy_header.scala
changeset 51627 589daaf48dba
parent 51294 0850d43cb355
child 55492 28d4db6c6e79
equal deleted inserted replaced
51626:e09446d3caca 51627:589daaf48dba
    71       (opt(keyword(KEYWORDS) ~! keyword_decls) ^^ { case None => Nil case Some(_ ~ xs) => xs }) ~
    71       (opt(keyword(KEYWORDS) ~! keyword_decls) ^^ { case None => Nil case Some(_ ~ xs) => xs }) ~
    72       keyword(BEGIN) ^^
    72       keyword(BEGIN) ^^
    73       { case x ~ ys ~ zs ~ _ => Thy_Header(x, ys, zs) }
    73       { case x ~ ys ~ zs ~ _ => Thy_Header(x, ys, zs) }
    74 
    74 
    75     (keyword(HEADER) ~ tags) ~!
    75     (keyword(HEADER) ~ tags) ~!
    76       ((doc_source ~ rep(keyword(";")) ~ keyword(THEORY) ~ tags) ~> args) ^^ { case _ ~ x => x } |
    76       ((document_source ~ rep(keyword(";")) ~ keyword(THEORY) ~ tags) ~> args) ^^ { case _ ~ x => x } |
    77     (keyword(THEORY) ~ tags) ~! args ^^ { case _ ~ x => x }
    77     (keyword(THEORY) ~ tags) ~! args ^^ { case _ ~ x => x }
    78   }
    78   }
    79 
    79 
    80 
    80 
    81   /* read -- lazy scanning */
    81   /* read -- lazy scanning */