git.haldean.org wallbot / 4f12d5a
parse into token stream haldean 1 year, 8 months ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
167167 int
168168 meka_load(meka_source *src)
169169 {
170 meka_token tok;
171 meka_value v;
170 meka_token tok = {0};
172171 meka_parse_result rc;
173172
174173 pn = 0;
185184 goto fail;
186185 }
187186
188 rc = meka_parse_register(&tok, &v);
187 rc = meka_parse_register(&tok, &p[pn++].v);
189188 if (rc == PARSE_OK)
190189 continue;
191190 if (rc == PARSE_INVALID_VALUE)
195194 printf(" doesn't exist\n");
196195 goto fail;
197196 }
197
198 p[pn++].t = tok;
198199 }
199200
200201 return pn;