[plt-scheme] MzScheme: extending vs. embedding to build a text editor
At Sun, 13 Jul 2008 16:57:12 -0700, "Peter Michaux" wrote:
> First, I could write MzScheme extensions [1] for ncurses. The editor
> could then be written in Scheme from start to end whatever that means.
> It would certainly be a Scheme-centric implementation. I could then
> edit a file with the command
>
> mzscheme myeditor.ss some-file-to-edit.txt
I would do it this way, but probably using `scheme/foreign' instead of
creating an extension:
http://docs.plt-scheme.org/foreign/index.html
> (The whole program with could be compiled to a native binary somehow?)
Yes:
http://docs.plt-scheme.org/guide/intro.html#(part._.Creating_.Executables)
http://docs.plt-scheme.org/mzc/exe.html