source: trunk/third/perl/keywords.pl @ 14545

Revision 14545, 2.2 KB checked in by ghudson, 25 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r14544, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/usr/bin/perl
2
3unlink "keywords.h";
4open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
5select KW;
6
7# Read & print data.
8
9$keynum = 0;
10while (<DATA>) {
11    chop;
12    next unless $_;
13    next if /^#/;
14    ($keyword) = split;
15    print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
16}
17
18###########################################################################
19sub tab {
20    local($l, $t) = @_;
21    $t .= "\t" x ($l - (length($t) + 1) / 8);
22    $t;
23}
24###########################################################################
25__END__
26
27NULL
28__FILE__
29__LINE__
30__PACKAGE__
31__DATA__
32__END__
33AUTOLOAD
34BEGIN
35CORE
36DESTROY
37END
38EQ
39GE
40GT
41INIT
42LE
43LT
44NE
45CHECK
46abs
47accept
48alarm
49and
50atan2
51bind
52binmode
53bless
54caller
55chdir
56chmod
57chomp
58chop
59chown
60chr
61chroot
62close
63closedir
64cmp
65connect
66continue
67cos
68crypt
69dbmclose
70dbmopen
71defined
72delete
73die
74do
75dump
76each
77else
78elsif
79endgrent
80endhostent
81endnetent
82endprotoent
83endpwent
84endservent
85eof
86eq
87eval
88exec
89exists
90exit
91exp
92fcntl
93fileno
94flock
95for
96foreach
97fork
98format
99formline
100ge
101getc
102getgrent
103getgrgid
104getgrnam
105gethostbyaddr
106gethostbyname
107gethostent
108getlogin
109getnetbyaddr
110getnetbyname
111getnetent
112getpeername
113getpgrp
114getppid
115getpriority
116getprotobyname
117getprotobynumber
118getprotoent
119getpwent
120getpwnam
121getpwuid
122getservbyname
123getservbyport
124getservent
125getsockname
126getsockopt
127glob
128gmtime
129goto
130grep
131gt
132hex
133if
134index
135int
136ioctl
137join
138keys
139kill
140last
141lc
142lcfirst
143le
144length
145link
146listen
147local
148localtime
149lock
150log
151lstat
152lt
153m
154map
155mkdir
156msgctl
157msgget
158msgrcv
159msgsnd
160my
161ne
162next
163no
164not
165oct
166open
167opendir
168or
169ord
170our
171pack
172package
173pipe
174pop
175pos
176print
177printf
178prototype
179push
180q
181qq
182qr
183quotemeta
184qw
185qx
186rand
187read
188readdir
189readline
190readlink
191readpipe
192recv
193redo
194ref
195rename
196require
197reset
198return
199reverse
200rewinddir
201rindex
202rmdir
203s
204scalar
205seek
206seekdir
207select
208semctl
209semget
210semop
211send
212setgrent
213sethostent
214setnetent
215setpgrp
216setpriority
217setprotoent
218setpwent
219setservent
220setsockopt
221shift
222shmctl
223shmget
224shmread
225shmwrite
226shutdown
227sin
228sleep
229socket
230socketpair
231sort
232splice
233split
234sprintf
235sqrt
236srand
237stat
238study
239sub
240substr
241symlink
242syscall
243sysopen
244sysread
245sysseek
246system
247syswrite
248tell
249telldir
250tie
251tied
252time
253times
254tr
255truncate
256uc
257ucfirst
258umask
259undef
260unless
261unlink
262unpack
263unshift
264untie
265until
266use
267utime
268values
269vec
270wait
271waitpid
272wantarray
273warn
274while
275write
276x
277xor
278y
Note: See TracBrowser for help on using the repository browser.