| 1 | /* read.h - of read.c |
| 2 | Copyright (C) 1986 Free Software Foundation, Inc. |
| 3 | |
| 4 | This file is part of GAS, the GNU Assembler. |
| 5 | |
| 6 | GAS is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 1, or (at your option) |
| 9 | any later version. |
| 10 | |
| 11 | GAS is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | GNU General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU General Public License |
| 17 | along with GAS; see the file COPYING. If not, write to |
| 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 19 | |
| 20 | extern char * input_line_pointer; /* -> char we are parsing now. */ |
| 21 | |
| 22 | #define PERMIT_WHITESPACE /* Define to make whitespace be allowed in */ |
| 23 | /* many syntactically unnecessary places. */ |
| 24 | /* Normally undefined. For compatibility */ |
| 25 | /* with ancient GNU cc. */ |
| 26 | #undef PERMIT_WHITESPACE |
| 27 | |
| 28 | #ifdef PERMIT_WHITESPACE |
| 29 | #define SKIP_WHITESPACE() {if (* input_line_pointer == ' ') ++ input_line_pointer;} |
| 30 | #else |
| 31 | #define SKIP_WHITESPACE() ASSERT( * input_line_pointer != ' ' ) |
| 32 | #endif |
| 33 | |
| 34 | |
| 35 | #define LEX_NAME (1) /* may continue a name */ |
| 36 | #define LEX_BEGIN_NAME (2) /* may begin a name */ |
| 37 | |
| 38 | #define is_name_beginner(c) ( lex_type[c] & LEX_BEGIN_NAME ) |
| 39 | #define is_part_of_name(c) ( lex_type[c] & LEX_NAME ) |
| 40 | |
| 41 | extern const char lex_type[]; |
| 42 | |
| 43 | void read_begin(); |
| 44 | void read_end(); |
| 45 | void read_a_source_file(); |
| 46 | |
| 47 | /* end: read.h */ |