Introduction to Programming in ATS: | ||
---|---|---|
<<< Previous | Preparation for Starting | Next >>> |
The following code template, which is available on-line, is designed for constructing a single-file program in ATS:
(* ** ** This is a template for a single-file ATS program ** *) (* ****** ****** *) (* ** please do not change unless you know what you do *) // staload _(*anon*) = "libc/SATS/stdio.sats" // staload _(*anon*) = "prelude/DATS/array.dats" staload _(*anon*) = "prelude/DATS/array0.dats" // staload _(*anon*) = "prelude/DATS/list.dats" staload _(*anon*) = "prelude/DATS/list0.dats" staload _(*anon*) = "prelude/DATS/list_vt.dats" // staload _(*anon*) = "prelude/DATS/matrix.dats" staload _(*anon*) = "prelude/DATS/matrix0.dats" // staload _(*anon*) = "prelude/DATS/option.dats" staload _(*anon*) = "prelude/DATS/option0.dats" // staload _(*anon*) = "prelude/DATS/pointer.dats" // staload _(*anon*) = "prelude/DATS/reference.dats" // (* ****** ****** *) // // please write you program in this section // (* ****** ****** *) implement main () = () // a dummy implementation for [main] |
<<< Previous | Home | Next >>> |
Preparation for Starting | Up | A Makefile Template |