equal
deleted
inserted
replaced
49 def bad_header(msg: String): Header = Header(Nil, Nil, Nil, List(msg)) |
49 def bad_header(msg: String): Header = Header(Nil, Nil, Nil, List(msg)) |
50 |
50 |
51 object Name |
51 object Name |
52 { |
52 { |
53 val empty = Name("", "", "") |
53 val empty = Name("", "", "") |
54 def apply(path: Path): Name = |
54 def apply(raw_path: Path): Name = |
55 { |
55 { |
|
56 val path = raw_path.expand |
56 val node = path.implode |
57 val node = path.implode |
57 val dir = path.dir.implode |
58 val dir = path.dir.implode |
58 val theory = Thy_Header.thy_name(node) getOrElse error("Bad theory file name: " + path) |
59 val theory = Thy_Header.thy_name(node) getOrElse error("Bad theory file name: " + path) |
59 Name(node, dir, theory) |
60 Name(node, dir, theory) |
60 } |
61 } |