Initial revision
This commit is contained in:
36
util/cpp/char.tab
Normal file
36
util/cpp/char.tab
Normal 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};
|
||||
Reference in New Issue
Block a user