Initial revision

This commit is contained in:
ceriel
1987-01-06 15:16:53 +00:00
parent 56c9ada9e0
commit 143b2531bb
34 changed files with 3301 additions and 0 deletions

36
util/cpp/char.tab Normal file
View File

@@ -0,0 +1,36 @@
%
% CHARACTER CLASSES
%
% some general settings:
%F %s,
%
% START OF TOKEN
%
%C
STGARB:\000-\377
STSKIP:\r \t
STNL:\n\f\013
STCOMP:!&<=>|
STSIMP:-%()+*,/:?^~
STCHAR:'
STIDF:a-zA-Z_
STNUM:0-9
STSTR:"
STEOI:\200
%T/* character classes */
%T#include "class.h"
%Tchar tkclass[] = {
%p
%T};
%
% other kinds of classes
%
%C
_D_|_H_|_I_|_O_:0-7
_D_|_H_|_I_:89
_H_|_I_:a-fA-F
_I_:g-zG-Z_
%Tchar tk2class[] = {
%F %s,
%p
%T};