This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate:
[perl5.git] / keywords.pl
CommitLineData
a0d0e21e
LW
1#!/usr/bin/perl
2
d34f9d2e 3require 'regen_lib.pl';
c240c76d 4safer_unlink ("keywords.h");
a0d0e21e
LW
5open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
6select KW;
7
d6376244
JH
8print <<EOM;
9/*
10 * keywords.h
11 *
e6906430
JH
12 * Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002,
13 * by Larry Wall and others
d6376244
JH
14 *
15 * You may distribute under the terms of either the GNU General Public
16 * License or the Artistic License, as specified in the README file.
17 *
5b7ea690
JH
18 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
19 * This file is built by keywords.pl from its data. Any changes made here
20 * will be lost!
d6376244
JH
21 */
22EOM
23
a0d0e21e
LW
24# Read & print data.
25
26$keynum = 0;
27while (<DATA>) {
28 chop;
29 next unless $_;
30 next if /^#/;
31 ($keyword) = split;
32 print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
33}
34
c240c76d
JH
35close KW or die "Error closing keywords.h: $!";
36
a0d0e21e
LW
37###########################################################################
38sub tab {
39 local($l, $t) = @_;
40 $t .= "\t" x ($l - (length($t) + 1) / 8);
41 $t;
42}
43###########################################################################
44__END__
45
46NULL
a0d0e21e 47__FILE__
68dc0745 48__LINE__
49__PACKAGE__
e50aee73 50__DATA__
a0d0e21e
LW
51__END__
52AUTOLOAD
53BEGIN
54CORE
55DESTROY
56END
7d07dbc2 57INIT
7d30b5c4 58CHECK
a0d0e21e
LW
59abs
60accept
61alarm
62and
63atan2
64bind
65binmode
66bless
67caller
68chdir
69chmod
70chomp
71chop
72chown
73chr
74chroot
75close
76closedir
77cmp
78connect
79continue
80cos
81crypt
82dbmclose
83dbmopen
84defined
85delete
86die
87do
88dump
89each
90else
91elsif
92endgrent
93endhostent
94endnetent
95endprotoent
96endpwent
97endservent
98eof
99eq
100eval
101exec
102exists
103exit
104exp
105fcntl
106fileno
107flock
108for
109foreach
110fork
111format
112formline
113ge
114getc
115getgrent
116getgrgid
117getgrnam
118gethostbyaddr
119gethostbyname
120gethostent
121getlogin
122getnetbyaddr
123getnetbyname
124getnetent
125getpeername
126getpgrp
127getppid
128getpriority
129getprotobyname
130getprotobynumber
131getprotoent
132getpwent
133getpwnam
134getpwuid
135getservbyname
136getservbyport
137getservent
138getsockname
139getsockopt
140glob
141gmtime
142goto
143grep
144gt
145hex
146if
147index
148int
149ioctl
150join
151keys
152kill
153last
154lc
155lcfirst
156le
157length
158link
159listen
160local
161localtime
c0329465 162lock
a0d0e21e
LW
163log
164lstat
165lt
166m
167map
168mkdir
169msgctl
170msgget
171msgrcv
172msgsnd
173my
174ne
175next
176no
177not
178oct
179open
180opendir
181or
182ord
77ca0c92 183our
a0d0e21e
LW
184pack
185package
186pipe
187pop
188pos
189print
190printf
c07a80fd 191prototype
a0d0e21e
LW
192push
193q
194qq
8782bef2 195qr
a0d0e21e
LW
196quotemeta
197qw
198qx
199rand
200read
201readdir
202readline
203readlink
204readpipe
205recv
206redo
207ref
208rename
209require
210reset
211return
212reverse
213rewinddir
214rindex
215rmdir
216s
217scalar
218seek
219seekdir
220select
221semctl
222semget
223semop
224send
225setgrent
226sethostent
227setnetent
228setpgrp
229setpriority
230setprotoent
231setpwent
232setservent
233setsockopt
234shift
235shmctl
236shmget
237shmread
238shmwrite
239shutdown
240sin
241sleep
242socket
243socketpair
244sort
245splice
246split
247sprintf
248sqrt
249srand
250stat
251study
252sub
253substr
254symlink
255syscall
c07a80fd 256sysopen
a0d0e21e 257sysread
137443ea 258sysseek
a0d0e21e
LW
259system
260syswrite
261tell
262telldir
263tie
c07a80fd 264tied
a0d0e21e
LW
265time
266times
267tr
268truncate
269uc
270ucfirst
271umask
272undef
273unless
274unlink
275unpack
276unshift
277untie
278until
279use
280utime
281values
282vec
283wait
284waitpid
285wantarray
286warn
287while
288write
289x
290xor
291y