Skip to content

Commit 131944d

Browse files
committed
Perlito5 - TODO update; add more references to documentation and tests
1 parent 91e9e64 commit 131944d

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

TODO-perlito5

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,33 @@ TODO list for Perlito5
3232

3333
* Parser
3434

35-
-- attributes - see: http://perldoc.perl.org/attributes.html
35+
-- attributes
36+
http://perldoc.perl.org/attributes.html
3637

37-
-- create __DATA__
38+
-- create __DATA__
39+
http://perldoc.perl.org/SelfLoader.html#The-__DATA__-token
3840

3941
-- compile-time eval() is not bound to the "program" environment, but to the "compiler" environment instead
40-
my $v;
41-
BEGIN { $v = "123" }
42-
use Module $v; # $v is not accessible at compile-time
42+
see README-perlito5-js near "Compile-time / Run-time interleaving"
43+
44+
my $v;
45+
BEGIN { $v = "123" }
46+
use Module $v; # $v is not accessible at compile-time
4347

4448
-- parse the regexes
45-
-- create an AST for regexes
49+
create an AST for regexes
4650

4751
-- prototypes (signatures)
48-
--- check that undeclared barewords give the right error
49-
--- *foo = sub () { ... } # does prototype work here?
50-
--- check signature in sort()
51-
--- fix the prototype for 'stat(*)' (see t/test.pl in the perl test suite)
52+
http://perldoc.perl.org/perlsub.html#Prototypes
53+
54+
check that undeclared barewords give the right error
55+
*foo = sub () { ... } # does prototype work here?
56+
check signature in sort()
57+
fix the prototype for 'stat(*)' (see t/test.pl in the perl test suite)
5258

5359
-- add "print", "printf", "say" special parsing - note this is related to indirect object notation
54-
-- indirect object notation
60+
61+
indirect object notation
5562
http://lwn.net/Articles/451486/
5663
http://www.modernperlbooks.com/mt/2009/08/the-problems-with-indirect-object-notation.html
5764
http://shadow.cat/blog/matt-s-trout/indirect-but-still-fatal/
@@ -74,6 +81,7 @@ TODO list for Perlito5
7481
my $u = new Class::; # this also works (even with sub main in the current package)
7582

7683
-- "namespace" parsing
84+
tests: t5/01-perlito/26-syntax-namespace.t
7785

7886
$ perl -e ' { package X; sub print { CORE::print(">$_[1]<\n") } } my $x = bless {}, "X"; print $x "xxx" '
7987
Not a GLOB reference at -e line 1.

0 commit comments

Comments
 (0)