parrotcode: Using WMLScript Translator | |
Contents | Language Implementations | WMLScript |
Using WMLScript Translator
The language WMLScript is a subset of ECMAScript (ie JavaScript).
A WMLScript Compiler is available on CPAN : http://search.cpan.org/search?query=wmls&mode=dist.
After building parrot
:
cd languages/WMLScript
make
make test
cat example.wmls
extern function main()
{
Console.println("Hello World!");
}
wmlsc example.wmls
../../parrot src/wmlsd.pbc example.wmlsc
../../parrot src/wmls2pir.pbc example.wmlsc
../../parrot src/wmls2pbc.pbc example.wmlsc
../../parrot src/wmlsi.pbc example.wmlsc main
languages/WMLScript/doc/status.pod
Francois Perrad.
|