2 * Copyright © 2016 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
17 const uint32_t classTable[256] = {
50 PRINTABLE|WHITE, /* */
52 PRINTABLE|STRINGC, /* " */
53 PRINTABLE|COMMENT, /* # */
57 PRINTABLE|QUOTEC, /* ' */
58 PRINTABLE|BRA, /* ( */
59 PRINTABLE|KET, /* ) */
61 PRINTABLE|SIGN, /* + */
63 PRINTABLE|SIGN, /* - */
64 PRINTABLE|DOT, /* . */
66 PRINTABLE|DIGIT, /* 0 */
67 PRINTABLE|DIGIT, /* 1 */
68 PRINTABLE|DIGIT, /* 2 */
69 PRINTABLE|DIGIT, /* 3 */
70 PRINTABLE|DIGIT, /* 4 */
71 PRINTABLE|DIGIT, /* 5 */
72 PRINTABLE|DIGIT, /* 6 */
73 PRINTABLE|DIGIT, /* 7 */
74 PRINTABLE|DIGIT, /* 8 */
75 PRINTABLE|DIGIT, /* 9 */
77 PRINTABLE|COMMENT, /* ; */
87 PRINTABLE|EXP, /* E */
109 PRINTABLE|BRA, /* [ */
110 PRINTABLE|BACKSLASH, /* \ */
111 PRINTABLE|KET, /* ] */
119 PRINTABLE|EXP, /* e */
141 PRINTABLE|BRA, /* { */
142 PRINTABLE|VBAR, /* | */
143 PRINTABLE|KET, /* } */
144 PRINTABLE|TWIDDLE, /* ~ */