source: trunk/essentials/dev-lang/perl/perl_keyword.pl@ 3951

Last change on this file since 3951 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 2.7 KB
Line 
1
2# How to generate the logic of the lookup table Perl_keyword() in toke.c
3
4use Devel::Tokenizer::C 0.05;
5use strict;
6use warnings;
7
8my @pos = qw(__DATA__ __END__ AUTOLOAD BEGIN CHECK DESTROY do delete defined
9 END else eval elsif exists for format foreach grep goto glob INIT
10 if last local m my map next no our pos print printf package
11 prototype q qr qq qw qx redo return require s scalar sort split
12 study sub tr tie tied use undef until untie unless while y);
13
14# In 5.8.x there is no err
15my @neg = qw(__FILE__ __LINE__ __PACKAGE__ and abs alarm atan2 accept bless
16 bind binmode CORE cmp chr cos chop close chdir chomp chmod chown
17 crypt chroot caller connect closedir continue die dump dbmopen
18 dbmclose eq eof exp exit exec each endgrent endpwent