|
From: Ivan Le L. <iva...@fr...> - 2010-09-03 08:37:57
|
----- "Ralph Thomas" <ra...@gm...> a écrit :
> Nice! It would be pretty cool to use ASL to cook up HTML forms, and
> also to use ASL for forms Clutter & Mx.
Thank you. :)
> An (unrelated but) fun project might be to port Adam to Javascript...
> Maybe it would be possible to write the adam rule definitions in JS
> and use custom getters for all of the other sheet properties to track
> dependencies?
Below is a verbatim extract from my ASL TODO list.
I'm not sure how close to your idea this is.
Any comment or idea is welcome.
Ivan.
ADAM
- embed a scripting language interpreter to easily enrich virtual machine.
- when scripting, find out a way to preserve automatical disabling (see "flatness" example below)
Typical adm file:
include "my_favorite_function.lua"
// contains something like : adam_symbols = { function my_favorite_function (p, f) return (p == nil and 0.0) or f end }
sheet clipping_path
{
output:
result <== { path: path, flatness: flatness };
interface:
//unlink flatness : 0.0 <== (path == empty) ? 0.0 : flatness;
// would become :
unlink flatness : 0.0 <== my_favorite_function (path, flatness);
path : 1;
}
|