<commit_before># Copyright (C) 2006-2009, Parrot Foundation.
# $Id$

=head1 Using WMLScript Translator

=head2 In brief

The language WMLScript is a subset of ECMAScript (ie JavaScript).

A WMLScript Compiler is available on CPAN :
L<http://search.cpan.org/search?query=wmls&mode=dist>.

=head2 Building

After building C<parrot> :

  cd languages/WMLScript
  make

=head2 Running the whole test suite

  make test

=head2 Compiling your own code

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

  wmlsc example.wmls

=head2 Disassembling

  ../../parrot wmlsd.pir example.wmlsc

=head2 Translating

  ../../parrot wmls2pir.pir example.wmlsc

  ../../parrot wmls2pbc.pir example.wmlsc
<commit_msg>update building item<commit_after># Copyright (C) 2006-2009, Parrot Foundation.
# $Id$

=head1 Using WMLScript Translator

=head2 In brief

The language WMLScript is a subset of ECMAScript (ie JavaScript).

A WMLScript Compiler is available on CPAN :
L<http://search.cpan.org/search?query=wmls&mode=dist>.

=head2 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

Configure & build WMLScript

  cd languages/wmlscript
  perl Configure.pl
  make

=head2 Running the whole test suite

  make test

=head2 Compiling your own code

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

  wmlsc example.wmls

=head2 Disassembling

  ../../parrot wmlsd.pir example.wmlsc

=head2 Translating

  ../../parrot wmls2pir.pir example.wmlsc

  ../../parrot wmls2pbc.pir example.wmlsc

{'fraction_non_alphanumeric': 0.09572072072072071, 'fraction_numerical': 0.019144144144144143, 'mean_word_length': 3.3985148514851486, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5474059', 'n_tokens_mistral': 655, 'n_tokens_neox': 606, 'n_words': 177}