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