You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
state: MAX_STATE COLON VALUE {(*graph)->max_state_changes = $3;}
105
+
state: MAX_STATE COLON VALUE {max_state_changes = $3;}
60
106
;
61
-
verb: LVL_VERBOSE COLON VALUE {(*graph)->lvl_verbose = $3;}
107
+
verb: LVL_VERBOSE COLON VALUE {lvl_verbose = $3;}
62
108
;
63
-
context: LEX_CONTEXT COLON VALUE {(*graph)->context = $3;}
109
+
context: LEX_CONTEXT COLON VALUE {context = (enum CONTEXT) $3;}
64
110
;
65
-
mem_opt: MEM_OPT COLON VALUE {(*graph)->mem_option = $3;}
111
+
mem_opt: MEM_OPT COLON VALUE {mem_option = (enum MEM_OPTION) $3;}
66
112
;
67
-
max_loop: MAX_LOOP COLON VALUE {(*graph)->max_loop = $3;}
113
+
max_loop: MAX_LOOP COLON VALUE {max_loop = $3;}
68
114
;
115
+
req_flag: REQ_FLAG COLON VALUE {request_flag = (enum REQUEST_FLAG) $3;}
116
+
;
69
117
g: vs COMMA es COMMA bes
70
118
| vs COMMA bes COMMA es
71
119
| vs COMMA es
72
120
| vs COMMA bes
73
121
| vs
122
+
|
74
123
;
75
124
vs: VERTICES_ COLON L_SQUARE v R_SQUARE
76
125
;
77
126
v: /* empty */
78
-
| VALUE COMMA {if (create_vertex(*graph, f, $1, NULL) < 0) fprintf(stderr, "Failed To Create Vertex %d\n", $1);}
127
+
| VALUE COMMA {parse_create_vertex(*graph, $1);}
79
128
v
80
-
| VALUE {if (create_vertex(*graph, f, $1, NULL) < 0) fprintf(stderr, "Failed To Create Vertex %d\n", $1);}
129
+
| VALUE {parse_create_vertex(*graph, $1);}
81
130
;
82
131
es: EDGE_ COLON L_BRACKET e R_BRACKET
83
132
;
84
133
e: /* empty */
85
-
| VALUE COLON VALUE COMMA {structvertex *a = find((*graph)->vertices, $1); structvertex *b = find((*graph)->vertices, $3); if (a && b) {if (create_edge(a, b, edge_f, NULL) == NULL) fprintf(stderr, "Failed to create Edge Between %d and %d\n", a->id, b->id);} elsefprintf(stderr, "Invalid Vertices a:%p b:%p\n", a, b);}
134
+
| VALUE COLON VALUE COMMA {parse_create_edge(*graph, $1, $3);}
86
135
e
87
-
| VALUE COLON VALUE {structvertex *a = find((*graph)->vertices, $1); structvertex *b = find((*graph)->vertices, $3); if (a && b) {if (create_edge(a, b, edge_f, NULL) == NULL) fprintf(stderr, "Failed to create Edge Between %d and %d\n", a->id, b->id);} elsefprintf(stderr, "Invalid Vertices a:%p b:%p\n", a, b);}
136
+
| VALUE COLON VALUE {parse_create_edge(*graph, $1, $3);}
88
137
;
89
138
bes:BI_EDGE_ COLON L_BRACKET be R_BRACKET
90
139
;
91
140
be: /* empty */
92
-
| VALUE COLON VALUE COMMA {int val = 0; structvertex *a = find((*graph)->vertices, $1); structvertex *b = find((*graph)->vertices, $3); if (a && b) { if((val = create_bi_edge(a, b, edge_f, NULL, NULL, NULL) < 0)) fprintf(stderr, "%d: Failed to bi create Edge Between %d and %d\n", val, a->id, b->id);} elsefprintf(stderr, "Invalid Vertices a:%p(%d) b:%p(%d)\n", a, $1, b, $3);}
141
+
| VALUE COLON VALUE COMMA {parse_create_bi_edge(*graph, $1, $3);}
93
142
be
94
-
| VALUE COLON VALUE {int val = 0; structvertex *a = find((*graph)->vertices, $1); structvertex *b = find((*graph)->vertices, $3); if (a && b) { if((val = create_bi_edge(a, b, edge_f, NULL, NULL, NULL) < 0)) fprintf(stderr, "%d: Failed to bi create Edge Between %d and %d\n", val, a->id, b->id);} elsefprintf(stderr, "Invalid Vertices a:%p(%d) b:%p(%d)\n", a, $1, b, $3);}
143
+
| VALUE COLON VALUE {parse_create_bi_edge(*graph, $1, $3);}
0 commit comments