Mercurial > urweb
comparison lib/ur/top.urs @ 1173:983d9b38abc7
Fix parsing of space-free .urp directives; use 'class' for 'c*' tags
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 28 Feb 2010 15:46:41 -0500 |
parents | ad15700272f6 |
children | 26fed2c4f5be |
comparison
equal
deleted
inserted
replaced
1172:ad15700272f6 | 1173:983d9b38abc7 |
---|---|
68 -> (nm :: Name -> rest :: {Unit} | 68 -> (nm :: Name -> rest :: {Unit} |
69 -> [[nm] ~ rest] => | 69 -> [[nm] ~ rest] => |
70 tf1 -> tf2 -> tr rest -> tr ([nm] ++ rest)) | 70 tf1 -> tf2 -> tr rest -> tr ([nm] ++ rest)) |
71 -> tr [] -> r ::: {Unit} -> folder r -> $(mapU tf1 r) -> $(mapU tf2 r) -> tr r | 71 -> tr [] -> r ::: {Unit} -> folder r -> $(mapU tf1 r) -> $(mapU tf2 r) -> tr r |
72 | 72 |
73 val foldURX2: tf1 :: Type -> tf2 :: Type -> ctx :: {Unit} | |
74 -> (nm :: Name -> rest :: {Unit} | |
75 -> [[nm] ~ rest] => | |
76 tf1 -> tf2 -> xml ctx [] []) | |
77 -> r ::: {Unit} -> folder r -> $(mapU tf1 r) -> $(mapU tf2 r) -> xml ctx [] [] | |
78 | |
79 val foldR : K --> tf :: (K -> Type) -> tr :: ({K} -> Type) | 73 val foldR : K --> tf :: (K -> Type) -> tr :: ({K} -> Type) |
80 -> (nm :: Name -> t :: K -> rest :: {K} | 74 -> (nm :: Name -> t :: K -> rest :: {K} |
81 -> [[nm] ~ rest] => | 75 -> [[nm] ~ rest] => |
82 tf t -> tr rest -> tr ([nm = t] ++ rest)) | 76 tf t -> tr rest -> tr ([nm = t] ++ rest)) |
83 -> tr [] -> r ::: {K} -> folder r -> $(map tf r) -> tr r | 77 -> tr [] -> r ::: {K} -> folder r -> $(map tf r) -> tr r |
106 val mapX : K --> tf :: (K -> Type) -> ctx :: {Unit} | 100 val mapX : K --> tf :: (K -> Type) -> ctx :: {Unit} |
107 -> (nm :: Name -> t :: K -> rest :: {K} | 101 -> (nm :: Name -> t :: K -> rest :: {K} |
108 -> [[nm] ~ rest] => | 102 -> [[nm] ~ rest] => |
109 tf t -> xml ctx [] []) | 103 tf t -> xml ctx [] []) |
110 -> r ::: {K} -> folder r -> $(map tf r) -> xml ctx [] [] | 104 -> r ::: {K} -> folder r -> $(map tf r) -> xml ctx [] [] |
105 | |
106 val mapUX2 : tf1 :: Type -> tf2 :: Type -> ctx :: {Unit} | |
107 -> (nm :: Name -> rest :: {Unit} | |
108 -> [[nm] ~ rest] => | |
109 tf1 -> tf2 -> xml ctx [] []) | |
110 -> r ::: {Unit} -> folder r | |
111 -> $(mapU tf1 r) -> $(mapU tf2 r) -> xml ctx [] [] | |
111 | 112 |
112 val mapX2 : K --> tf1 :: (K -> Type) -> tf2 :: (K -> Type) -> ctx :: {Unit} | 113 val mapX2 : K --> tf1 :: (K -> Type) -> tf2 :: (K -> Type) -> ctx :: {Unit} |
113 -> (nm :: Name -> t :: K -> rest :: {K} | 114 -> (nm :: Name -> t :: K -> rest :: {K} |
114 -> [[nm] ~ rest] => | 115 -> [[nm] ~ rest] => |
115 tf1 t -> tf2 t -> xml ctx [] []) | 116 tf1 t -> tf2 t -> xml ctx [] []) |