develooper Front page | perl.perl6.internals | Postings from December 2008

[perl #61696] [PATCH] implement array() and '=>' within pipp

From:
Daniel Keane
Date:
December 26, 2008 07:46
Subject:
[perl #61696] [PATCH] implement array() and '=>' within pipp
Message ID:
rt-3.6.HEAD-29609-1230227019-296.61696-72-0@perl.org
# New Ticket Created by  "Daniel Keane" 
# Please include the string:  [perl #61696]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61696 >


First stab at implementing array() function and '=>' within pipp.

Changes made:

* src/pct/actions.pm: added following methods: instantiate_array(),
array_arguments(), key_value_pair()

* src/pct/grammer.pg: added following rules: instantiate_array,
array_arguments, key_value_pair.  Amend term rule by adding
instantiate_array rule.

* src/common/builtins:  added sub 'infix:=>'

* src/common/php_array.pir: added sub 'array'

* t/in_php/array.t: added 3 tests for array()

TODO:  Add type checking of key values

Thanks




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About