semantics.h

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