aboutsummaryrefslogtreecommitdiff
path: root/src/diag.h
blob: e79b4651a641250582298625cfc2c69d9ceef127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include "lexer.h"

struct Source
{
	const char* name;
	const char* text;
};

void report_error(struct Source source, struct Token token, const char* message);
void report_error_message(const char* message);