Skip to content

Instantly share code, notes, and snippets.

View gorlak's full-sized avatar

Geoff Evans gorlak

View GitHub Profile
@pervognsen
pervognsen / expr.c
Last active February 5, 2023 17:27
void parse_expr(Value *dest);
Sym *parse_ident(void) {
if (tok != TOK_IDENT) {
error("Expected identifier");
}
Sym *ident = tok_sym;
next();
return ident;
}