[lib].sats in the SATS directory, where [lib] is our library of interest. The [lib].sats file will reference a .cats file in the CATS directory, which is essentially a C wrapper for the C library functions.[lib].cats file accomplishes two things: it annotates
existing functions and definitions in the C library that are intended to
be included in the ATS interface, and more importantly, it often
defines C wrappers that more directly reflect the function signature in
ATS. The [lib].cats file is a C file, and should include the relevant C library wrappers. Often this is just one C include file:[lib].dats file in the DATS directory, if
it exists, should implement functions that are implemented in ATS but
not in the C library (or functions that are implemented in ATS and are
preferred over the implementation in C, or dynamic wrappers around the C
library functions).HATS directory containing various .hats files, which is similar to DATS but does not have the one-to-one correspondence that a .dats file would have with a .sats
file; this is used for alternative implementations of functions, or in
the case of C libraries, possibly alternative implementations of a
similar C library (and in this case, each .hats file would likely depend on a particular .cats file as well).--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/65418da4-47d5-4ce1-a883-06b018723f27%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/56156B21-C609-4749-8A8E-40D836759018%40shealevy.com.
SATS and DATS are recognized by patscc/patsopt, but CATS and HATS are not.