|
|
1.1 ! root 1: ! 2: /* ! 3: * ! 4: * A few definitions needed by routines that handle the editing expressions. ! 5: * Stuff's primarily used by the scanner. ! 6: * ! 7: */ ! 8: ! 9: ! 10: #define START 0 /* just starting next statment */ ! 11: #define ASSIGNOP 1 ! 12: #define LPAREN 2 ! 13: #define RPAREN 3 ! 14: #define PLUS 4 ! 15: #define MINUS 5 ! 16: #define TIMES 6 ! 17: #define DIVIDE 7 ! 18: #define UMINUS 8 ! 19: #define CONSTANT 9 ! 20: #define XREF 10 ! 21: #define YREF 11 ! 22: #define HEIGHT 12 ! 23: #define WIDTH 13 ! 24: #define CHWIDTH 14 ! 25: #define ENDEDIT 15 /* found "end" string - done editing */ ! 26: #define BUILD 16 /* found a "build" command - ends edit */ ! 27: ! 28: ! 29: typedef struct { ! 30: ! 31: char *str; /* when we find this string */ ! 32: int code; /* scanner returns this value */ ! 33: ! 34: } Tokens; ! 35:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.