1987-01-06 15:16:53 +00:00
|
|
|
%
|
|
|
|
% CHARACTER CLASSES
|
|
|
|
%
|
|
|
|
% some general settings:
|
|
|
|
%F %s,
|
1988-11-16 10:43:15 +00:00
|
|
|
%S257
|
1987-01-06 15:16:53 +00:00
|
|
|
%
|
|
|
|
% START OF TOKEN
|
|
|
|
%
|
1988-11-16 10:43:15 +00:00
|
|
|
%iSTGARB
|
1988-05-03 11:30:25 +00:00
|
|
|
STSKIP:\r \t\f\013
|
|
|
|
STNL:\n
|
1987-01-06 15:16:53 +00:00
|
|
|
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};
|