37 lines
417 B
SQL
37 lines
417 B
SQL
%
|
|
% CHARACTER CLASSES
|
|
%
|
|
% some general settings:
|
|
%F %s,
|
|
%
|
|
% START OF TOKEN
|
|
%
|
|
%C
|
|
STGARB:\000-\377
|
|
STSKIP:\r \t\f\013
|
|
STNL:\n
|
|
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};
|