Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Latest commit

 

History

History
78 lines (46 loc) · 1.18 KB

running.pod

File metadata and controls

78 lines (46 loc) · 1.18 KB

Using WMLScript Translator

In brief

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.

Building

Retrieve Parrot

svn checkout https://svn.parrot.org/parrot/trunk parrot

Configure & build & install Parrot

cd parrot
perl Configure.pl
make
sudo make install-dev

Retrieve WMLScript

perl tools/dev/fetch_languages.pl --lang=wmlscript

Build WMLScript

cd languages/wmlscript
parrot setup.pir build

Running the whole test suite

parrot setup.pir test

Compiling your own code

cat example.wmls
  extern function main()
  {
      Console.println("Hello World!");
  }

wmlsc example.wmls

Disassembling

parrot wmlsd.pbc example.wmlsc

Translating

parrot wmls2pir.pir example.wmlsc

parrot wmls2pbc.pir example.wmlsc

Interpreting

parrot wmlsi.pbc example.wmlsc main

Bugs & Limitations

See Also

doc/status.pod

Author

Francois Perrad.