extern
fun
bwputs (string): void = "mac#"
implement
bwputs (str) = let
//
val str = g1ofg0 (str)
//
implement(env)
string_foreach$fwork<env> (c, env) =
let val () = UART_wait () in output (c) end
//
in
ignoret (string_foreach<> (str))
end // end of [bwputs]
the implementation of string_foreach makes use of dependent types.It will be nice to do a short article on the completed work at osnews.com; there should be at least a few interested readers.
I renamed the link as follows:
https://github.com/githwxi/ATS-Postiats/tree/master/doc/PROJECT/MEDIUM/KernelBuilding
On Sunday, April 6, 2014 2:18:38 PM UTC-4, gmhwxi wrote:I renamed the link as follows:
https://github.com/githwxi/ATS-Postiats/tree/master/doc/PROJECT/MEDIUM/KernelBuild
On Saturday, April 5, 2014 12:02:31 PM UTC-4, gmhwxi wrote:I am currently setting up some infrastructure to support kernel programming in ATS:
https://github.com/githwxi/ATS-Postiats/tree/master/doc/PROJECT/MEDIUM/BuildOS
I have just got started.
I really want to people to see that this is not just possible; it is actually quite straightforward,
and it can be a lot of fun.
Cheers!
--Hongwei
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/3f9ac149-2771-449c-8521-b5a44e69cf36%40googlegroups.com.