Skip to content

Instantly share code, notes, and snippets.

View prathyvsh's full-sized avatar

Prathyush prathyvsh

View GitHub Profile
@prathyvsh
prathyvsh / expr.c
Created April 18, 2020 14:19 — forked from pervognsen/expr.c
void parse_expr(Value *dest);
Sym *parse_ident(void) {
if (tok != TOK_IDENT) {
error("Expected identifier");
}
Sym *ident = tok_sym;
next();
return ident;
}