src/HOL/Tools/Mirabelle/mirabelle.scala
changeset 75906 2167b9e3157a
parent 75394 42267c650205
child 76206 769a7cd5a16a
equal deleted inserted replaced
75905:2ee3ea69e8f1 75906:2167b9e3157a
    15   def action_names(): List[String] = {
    15   def action_names(): List[String] = {
    16     val Pattern = """Mirabelle action: "(\w+)".*""".r
    16     val Pattern = """Mirabelle action: "(\w+)".*""".r
    17     (for {
    17     (for {
    18       file <-
    18       file <-
    19         File.find_files(Path.explode("~~/src/HOL/Tools/Mirabelle").file,
    19         File.find_files(Path.explode("~~/src/HOL/Tools/Mirabelle").file,
    20           pred = _.getName.endsWith(".ML"))
    20           pred = file => File.is_ML(file.getName))
    21       line <- split_lines(File.read(file))
    21       line <- split_lines(File.read(file))
    22       name <- line match { case Pattern(a) => Some(a) case _ => None }
    22       name <- line match { case Pattern(a) => Some(a) case _ => None }
    23     } yield name).sorted
    23     } yield name).sorted
    24   }
    24   }
    25 
    25