1986-03-10 13:07:55 +00:00
|
|
|
%
|
|
|
|
% CHARACTER CLASSES
|
|
|
|
%
|
|
|
|
% some general settings:
|
|
|
|
%S129
|
|
|
|
%F %s,
|
|
|
|
%
|
|
|
|
% START OF TOKEN
|
|
|
|
%
|
1988-11-16 11:23:58 +00:00
|
|
|
%iSTGARB
|
1988-05-03 11:30:25 +00:00
|
|
|
STSKIP:\r \t\013\f
|
|
|
|
STNL:\n
|
1988-07-08 10:29:48 +00:00
|
|
|
STCOMP:-!&+<=>|
|
1986-03-10 13:07:55 +00:00
|
|
|
STSIMP:%()*,/:;?[]^{}~
|
|
|
|
STCHAR:'
|
|
|
|
STIDF:a-zA-Z_
|
|
|
|
STNUM:.0-9
|
|
|
|
STSTR:"
|
|
|
|
STEOI:\200
|
|
|
|
%T/* character classes */
|
|
|
|
%T#include "class.h"
|
|
|
|
%Tchar tkclass[] = {
|
|
|
|
%p
|
|
|
|
%T};
|
|
|
|
%
|
|
|
|
% INIDF
|
|
|
|
%
|
|
|
|
%C
|
|
|
|
1:a-zA-Z_0-9
|
|
|
|
%Tchar inidf[] = {
|
|
|
|
%F %s,
|
|
|
|
%p
|
|
|
|
%T};
|
|
|
|
%
|
|
|
|
% ISDIG
|
|
|
|
%
|
|
|
|
%C
|
|
|
|
1:0-9
|
|
|
|
%Tchar isdig[] = {
|
|
|
|
%p
|
|
|
|
%T};
|
|
|
|
%
|
|
|
|
% ISHEX
|
|
|
|
%
|
|
|
|
%C
|
|
|
|
1:a-fA-F
|
|
|
|
%Tchar ishex[] = {
|
|
|
|
%p
|
|
|
|
%T};
|
|
|
|
%
|
|
|
|
% ISOCT
|
|
|
|
%
|
|
|
|
%C
|
|
|
|
1:0-7
|
|
|
|
%Tchar isoct[] = {
|
|
|
|
%p
|
|
|
|
%T};
|