1.1 diff -r dda3d673b82b -r dbf5e39b1658 semantics.h 1.2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 +++ b/semantics.h Sun Dec 30 16:29:50 2001 +0000 1.4 @@ -0,0 +1,27 @@ 1.5 +typedef enum 1.6 +{ 1.7 + INPUT_CONTEXT_ALL, 1.8 + INPUT_CONTEXT_ODD, 1.9 + INPUT_CONTEXT_EVEN 1.10 +} input_context_type_t; 1.11 + 1.12 + 1.13 +extern int line; /* line number in spec file */ 1.14 + 1.15 + 1.16 +extern int input_count; /* total input pages in spec */ 1.17 +extern int output_count; /* total output pages in spec */ 1.18 + 1.19 + 1.20 +boolean parse_spec_file (char *fn); 1.21 + 1.22 + 1.23 +/* semantic routines for input statements */ 1.24 +void input_push_context (input_context_type_t type); 1.25 +void input_pop_context (void); 1.26 +void input_set_file (char *name); 1.27 +void input_images (int first, int last); 1.28 + 1.29 +/* semantic routines for output statements */ 1.30 +void output_set_file (char *name); 1.31 +void output_pages (int first, int last);