Program Listing for File parser.h¶
↰ Return to documentation for file (src/lovejoy/parser.h
)
#pragma once
#include "lexer.h"
#include "hir.h"
struct ParserContext {
LexerContext lexer_ctx;
bool inside_parentheses;
HIR_Expr *last_expr;
};
unqualify(struct, ParserContext);
ParserContext NewParser();
HIR_Expr *parse_expr(ParserContext *, const string);