xref: /onnv-gate/usr/src/cmd/man/src/util/nsgmls.src/lib/token.h (revision 0:68f95e015346)
1 // Copyright (c) 1994 James Clark
2 // See the file COPYING for copying permission.
3 #pragma ident	"%Z%%M%	%I%	%E% SMI"
4 
5 #ifndef token_INCLUDED
6 #define token_INCLUDED 1
7 
8 #ifdef SP_NAMESPACE
9 namespace SP_NAMESPACE {
10 #endif
11 
12 enum EnumToken {
13   // tokenUnrecognized must be 0
14   tokenUnrecognized,		// no token could be recognized
15   tokenEe,			// end of entity
16   tokenS,			// RS RE SPACE SEPCHAR
17   tokenRe,			// RE
18   tokenRs,			// RS
19   tokenSpace,			// SPACE
20   tokenSepchar,			// SEPCHAR
21   tokenNameStart,		// X
22   tokenDigit,			// 1
23   tokenLcUcNmchar,		// LCNMCHAR or UCNMCHAR
24   tokenChar,			// a legal data character
25   tokenCharDelim,	        // a data character which starts a delimiter
26   tokenIgnoredChar,		// character in ignored marked section
27   // delimiters and delimiters in context
28   tokenAnd,
29   tokenCom,
30   tokenCroDigit,
31   tokenCroNameStart,
32   tokenDsc,
33   tokenDso,
34   tokenDtgc,
35   tokenDtgo,
36   tokenEroNameStart,
37   tokenEroGrpo,
38   tokenEtago,
39   tokenEtagoNameStart,
40   tokenEtagoTagc,
41   tokenEtagoGrpo,
42   tokenGrpc,
43   tokenGrpo,
44   tokenHcroHexDigit,
45   tokenLit,
46   tokenLita,
47   tokenMdc,
48   tokenMdoNameStart,
49   tokenMdoMdc,
50   tokenMdoCom,
51   tokenMdoDso,
52   tokenMinus,
53   tokenMinusGrpo,
54   tokenMscMdc,
55   tokenNet,
56   tokenNestc,
57   tokenOpt,
58   tokenOr,
59   tokenPero,
60   tokenPeroNameStart,
61   tokenPeroGrpo,
62   tokenPic,
63   tokenPio,
64   tokenPlus,
65   tokenPlusGrpo,
66   tokenRefc,
67   tokenRep,
68   tokenRni,
69   tokenSeq,
70   tokenStago,
71   tokenStagoNameStart,
72   tokenStagoTagc,
73   tokenStagoGrpo,
74   tokenTagc,
75   tokenVi,
76   // short references start here
77   tokenFirstShortref
78 };
79 
80 #ifdef SP_NAMESPACE
81 }
82 #endif
83 
84 #endif /* not token_INCLUDED */
85