Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (82 sloc) 2.36 KB
<!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>