Mercurial > ~dholland > hg > ag > index.cgi
comparison anagram/guisupport/profile.h @ 0:13d2b8934445
Import AnaGram (near-)release tree into Mercurial.
author | David A. Holland |
---|---|
date | Sat, 22 Dec 2007 17:52:45 -0500 |
parents | |
children | 5581ef01f993 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13d2b8934445 |
---|---|
1 #ifndef PROFILE_H_1198351949 | |
2 #define PROFILE_H_1198351949 | |
3 | |
4 typedef union { | |
5 long alignment; | |
6 char ag_vt_2[sizeof(int)]; | |
7 char ag_vt_4[sizeof(cint)]; | |
8 char ag_vt_5[sizeof(IPoint)]; | |
9 char ag_vt_6[sizeof(IRectangle)]; | |
10 } parseRegEntry_vs_type; | |
11 | |
12 typedef enum { | |
13 parseRegEntry_registry_data_token = 1, parseRegEntry_registry_entry_token, | |
14 parseRegEntry_eof_token = 7, parseRegEntry_qualified_registry_entry_token, | |
15 parseRegEntry_pure_registry_entry_token, | |
16 parseRegEntry_accepted_qualifier_token, | |
17 parseRegEntry_unaccepted_qualifier_token, | |
18 parseRegEntry_file_name_char_token, | |
19 parseRegEntry_ag201_registry_entry_token = 15, | |
20 parseRegEntry_name_token = 17, parseRegEntry_color_pair_token = 19, | |
21 parseRegEntry_field_id_token = 21, parseRegEntry_font_flags_token, | |
22 parseRegEntry_integer_token, parseRegEntry_point_token = 30, | |
23 parseRegEntry_rectangle_token = 32, parseRegEntry_file_name_token = 35, | |
24 parseRegEntry_qual_expr_token = 37, parseRegEntry_name_char_token = 44, | |
25 parseRegEntry_digit_token, parseRegEntry_signed_integer_token, | |
26 parseRegEntry_hex_integer_token, parseRegEntry_hex_digit_token | |
27 } parseRegEntry_token_type; | |
28 | |
29 typedef struct parseRegEntry_pcb_struct{ | |
30 parseRegEntry_token_type token_number, reduction_token, error_frame_token; | |
31 int input_code; | |
32 int input_value; | |
33 int line, column; | |
34 int ssx, sn, error_frame_ssx; | |
35 int drt, dssx, dsn; | |
36 int ss[128]; | |
37 parseRegEntry_vs_type vs[128]; | |
38 int ag_ap; | |
39 const char *error_message; | |
40 char read_flag; | |
41 char exit_flag; | |
42 int bts[128], btsx; | |
43 int lab[22], rx, fx; | |
44 const unsigned char *key_sp; | |
45 int save_index, key_state; | |
46 char ag_msg[82]; | |
47 const int *ag_dtl; | |
48 int ag_dsn; | |
49 } parseRegEntry_pcb_type; | |
50 | |
51 #ifndef PRULE_CONTEXT | |
52 #define PRULE_CONTEXT(pcb) (&((pcb).cs[(pcb).ssx])) | |
53 #define PERROR_CONTEXT(pcb) ((pcb).cs[(pcb).error_frame_ssx]) | |
54 #define PCONTEXT(pcb) ((pcb).cs[(pcb).ssx]) | |
55 #endif | |
56 | |
57 #ifndef AG_RUNNING_CODE | |
58 /* PCB.exit_flag values */ | |
59 #define AG_RUNNING_CODE 0 | |
60 #define AG_SUCCESS_CODE 1 | |
61 #define AG_SYNTAX_ERROR_CODE 2 | |
62 #define AG_REDUCTION_ERROR_CODE 3 | |
63 #define AG_STACK_ERROR_CODE 4 | |
64 #define AG_SEMANTIC_ERROR_CODE 5 | |
65 #endif | |
66 | |
67 extern parseRegEntry_pcb_type parseRegEntry_pcb; | |
68 void init_parseRegEntry(void); | |
69 void parseRegEntry(void); | |
70 #endif | |
71 |