@@ -32,26 +32,33 @@ TODO list for Perlito5
32
32
33
33
* Parser
34
34
35
- -- attributes - see: http://perldoc.perl.org/attributes.html
35
+ -- attributes
36
+ http://perldoc.perl.org/attributes.html
36
37
37
- -- create __DATA__
38
+ -- create __DATA__
39
+ http://perldoc.perl.org/SelfLoader.html#The-__DATA__-token
38
40
39
41
-- 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
43
47
44
48
-- parse the regexes
45
- -- create an AST for regexes
49
+ create an AST for regexes
46
50
47
51
-- 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)
52
58
53
59
-- add "print", "printf", "say" special parsing - note this is related to indirect object notation
54
- -- indirect object notation
60
+
61
+ indirect object notation
55
62
http://lwn.net/Articles/451486/
56
63
http://www.modernperlbooks.com/mt/2009/08/the-problems-with-indirect-object-notation.html
57
64
http://shadow.cat/blog/matt-s-trout/indirect-but-still-fatal/
@@ -74,6 +81,7 @@ TODO list for Perlito5
74
81
my $u = new Class::; # this also works (even with sub main in the current package)
75
82
76
83
-- "namespace" parsing
84
+ tests: t5/01-perlito/26-syntax-namespace.t
77
85
78
86
$ perl -e ' { package X; sub print { CORE::print(">$_[1]<\n") } } my $x = bless {}, "X"; print $x "xxx" '
79
87
Not a GLOB reference at -e line 1.
0 commit comments