src/Pure/Isar/parse.scala
changeset 66914 fb3f13a9c756
parent 64471 c40c2975fb02
child 69887 b9985133805d
equal deleted inserted replaced
66913:7cdd4d59e95c 66914:fb3f13a9c756
    70     def document_source: Parser[String] = atom("document source", _.is_text)
    70     def document_source: Parser[String] = atom("document source", _.is_text)
    71 
    71 
    72     def path: Parser[String] =
    72     def path: Parser[String] =
    73       atom("file name/path specification", tok => tok.is_embedded && Path.is_wellformed(tok.content))
    73       atom("file name/path specification", tok => tok.is_embedded && Path.is_wellformed(tok.content))
    74 
    74 
    75     def theory_name: Parser[String] =
    75     def session_name: Parser[String] = atom("session name", _.is_system_name)
    76       atom("theory name", tok => tok.is_name && Path.is_wellformed(tok.content))
    76     def theory_name: Parser[String] = atom("theory name", _.is_system_name)
    77 
    77 
    78     private def tag_name: Parser[String] =
    78     private def tag_name: Parser[String] =
    79       atom("tag name", tok =>
    79       atom("tag name", tok =>
    80           tok.kind == Token.Kind.IDENT ||
    80           tok.kind == Token.Kind.IDENT ||
    81           tok.kind == Token.Kind.STRING)
    81           tok.kind == Token.Kind.STRING)