/
test01.html
94 lines (82 loc) · 2.36 KB
/
test01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<title>PATS2XHTML-test01</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<style type="text/css">
.patsyntax {width:100%;margin:auto;}
.patsyntax {color:#808080;background-color:#E0E0E0;}
.patsyntax span.keyword {color:#000000;font-weight:bold;}
.patsyntax span.comment {color:#787878;font-style:italic;}
.patsyntax span.extcode {color:#A52A2A;}
.patsyntax span.neuexp {color:#800080;}
.patsyntax span.staexp {color:#0000F0;}
.patsyntax span.prfexp {color:#603030;}
.patsyntax span.dynexp {color:#F00000;}
.patsyntax span.stalab {color:#0000F0;font-style:italic}
.patsyntax span.dynlab {color:#F00000;font-style:italic}
.patsyntax span.dynstr {color:#008000;font-style:normal}
.patsyntax span.stacstdec {text-decoration:none;}
.patsyntax span.stacstuse {color:#0000CF;text-decoration:underline;}
.patsyntax span.dyncstdec {text-decoration:none;}
.patsyntax span.dyncstuse {color:#B80000;text-decoration:underline;}
.patsyntax span.dyncst_implement {color:#B80000;text-decoration:underline;}
</style>
<script
src="./../../LIBRARY/ats2langweb/pats2xhtmlize_dats.js">
</script><script
src="./../../LIBRARY/libatscc2js/ATS2-0.3.2/libatscc2js_all.js">
</script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js">
</script>
</head>
<body>
<h1>
Pats2xhtmlization
</h1>
<p>
Pats2xhtmlization
is an on-line service for syntax-hiliting ATS code.
</p>
<hr>
<p>
The tag <u>sats2xhtml</u> is for
syntax-hiliting static ATS code, that is, code contained in a SATS file.
Here is a simple example:</p>
<sats2xhtml>//
// static interface
//
fun factorial (n: int): int
//
</sats2xhtml>
<hr>
<p>
The tag <u>dats2xhtml</u> is for
syntax-hiliting dynamic ATS code, that is, code contained in a DATS file.
Here is a simple example:</p>
<dats2xhtml>//
// dynamic implementation
//
implement factorial(n) = if n > 0 then n*factorial(n-1) else 1
//
</dats2xhtml>
<hr>
<table>
<tr>
<td style="width: 100%;">
This page is created with
<a href="http://www.ats-lang.org">ATS</a>
by
<a href="http://www.cs.bu.edu/~hwxi/">Hongwei Xi</a>
and also maintained by
<a href="http://www.cs.bu.edu/~hwxi/">Hongwei Xi</a>.
</td>
<td style="width: 0%;"></td><!--pushed to the right-->
</tr>
</table>
<script>
$(document).ready(function(){pats2xhtmlize_process_all();return;});
</script>
</body>
</html>