| 12 |
<include file=(s & String)>[] -> load_include s;; |
<include file=(s & String)>[] -> load_include s;; |
| 13 |
|
|
| 14 |
|
|
| 15 |
let fun hilight (String -> [ (Char | Xvar)* ] ) |
let fun highlight (String -> [ (Char | Xvar)* ] ) |
| 16 |
| [ '{{' h ::(Char *?) '}}' ; rest ] -> [ <var class="hilight">h; hilight rest ] |
| [ '{{' h ::(Char *?) '}}' ; rest ] -> |
| 17 |
| [ c; rest ] -> [ c; hilight rest ] |
[ <var class="highlight">h; highlight rest ] |
| 18 |
|
| [ c; rest ] -> [ c; highlight rest ] |
| 19 |
| [] -> [];; |
| [] -> [];; |
| 20 |
|
|
| 21 |
|
|
| 75 |
|
|
| 76 |
let fun text (t : [InlineText*]) : Inlines = |
let fun text (t : [InlineText*]) : Inlines = |
| 77 |
map t with |
map t with |
| 78 |
| <duce>x -> <b>[ <tt>(hilight x) ] |
| <duce>x -> <b>[ <tt>(highlight x) ] |
| 79 |
| <(tag & (`b|`i|`tt|`em))>x -> <(tag)>(text x) |
| <(tag & (`b|`i|`tt|`em))>x -> <(tag)>(text x) |
| 80 |
| z -> z;; |
| z -> z;; |
| 81 |
|
|
| 94 |
| <include-verbatim file=f>[] -> |
| <include-verbatim file=f>[] -> |
| 95 |
[ <div class="code">[ <pre>(load_file f) ] ] |
[ <div class="code">[ <pre>(load_file f) ] ] |
| 96 |
| <sample>s -> |
| <sample>s -> |
| 97 |
[ <div class="code">[ <pre>(hilight s) ] ] |
[ <div class="code">[ <pre>(highlight s) ] ] |
| 98 |
| <link url=url; title=title>com -> |
| <link url=url; title=title>com -> |
| 99 |
[ <a href=url>title '. ' !(text com) ] |
[ <a href=url>title '. ' !(text com) ] |
| 100 |
| <ul>lis -> |
| <ul>lis -> |