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 wmlsd.pir example.wmlsc
../../parrot wmls2pir.pir example.wmlsc ../../parrot wmls2pbc.pir example.wmlsc
../../parrot wmlsi.pir example.wmlsc main
languages/WMLScript/doc/status.pod
Francois Perrad.
|