Loading ...
Sorry, an error occurred while loading the content.

Json on parrot

Expand Messages
  • Will Coleda
    There is now a fairly complete json ``compiler in parrot, implemented using a perl6 grammar, which can be seen at: http://
    Message 1 of 1 , Sep 17, 2006
    • 0 Attachment
      There is now a fairly complete json ``compiler'' in parrot,
      implemented using a perl6 grammar, which can be seen at: http://
      svn.perl.org/parrot/trunk/compilers/json/JSON/grammar.pg

      From the docs:

      =head1 NAME

      JSON (JavaScript Object Notation) is a lightweight data-interchange
      format.

      =head1 SYNOPSIS

      Given a valid JSON string, the compiler will return a PMC containing the
      appropriate values. For example:

      .local pmc JSON
      JSON = compreg 'JSON'
      $P0 = JSON('[1,2,3]')

      Will create a pmc that C<does> array, contains the values 1, 2, and
      3, and
      store it in register C<$P0>.

      For more information about the structure of the JSON representation,
      see the
      documentation at L<http://www.json.org/>.

      =cut

      --
      Will "Coke" Coleda
      will@...
    Your message has been successfully submitted and would be delivered to recipients shortly.