ack/util/cpp/char.tab

37 lines
417 B
Plaintext
Raw Normal View History

1987-01-06 15:16:53 +00:00
%
% 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};