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.
15 #ifndef _AO_LISP_READ_H_
16 #define _AO_LISP_READ_H_
31 # define PRINTABLE 0x00000001 /* \t \n ' ' - '~' */
32 # define QUOTED 0x00000002 /* \ anything */
33 # define BRA 0x00000004 /* ( [ { */
34 # define KET 0x00000008 /* ) ] } */
35 # define WHITE 0x00000010 /* ' ' \t \n */
36 # define DIGIT 0x00000020 /* [0-9] */
37 # define SIGN 0x00000040 /* +- */
38 # define ENDOFFILE 0x00000080 /* end of file */
39 # define COMMENT 0x00000100 /* ; # */
40 # define IGNORE 0x00000200 /* \0 - ' ' */
41 # define QUOTEC 0x00000400 /* ' */
42 # define BACKSLASH 0x00000800 /* \ */
43 # define VBAR 0x00001000 /* | */
44 # define TWIDDLE 0x00002000 /* ~ */
45 # define STRINGC 0x00004000 /* " */
46 # define DOTC 0x00008000 /* . */
48 # define NOTNAME (STRINGC|TWIDDLE|VBAR|QUOTEC|COMMENT|ENDOFFILE|WHITE|KET|BRA|DOTC)
49 # define NUMBER (DIGIT|SIGN)
51 #endif /* _AO_LISP_READ_H_ */