equal
deleted
inserted
replaced
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 */ |