compiler

Unnamed Compiled Systems Language Project
git clone http://frotz.net/git/compiler.git
Log | Files | Refs

commit 78cbd653c5adbbcd43dcaa4cb75f29742fbef9de
parent 4ac5ddbae965704acaca50aa7315d4fa1678006a
Author: Brian Swetland <swetland@frotz.net>
Date:   Mon, 24 May 2021 15:25:21 -0700

compiler: fix printing of error line

- rewritten lexer was not tracking byte offset into file

Diffstat:
Msrc/compiler.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/compiler.c b/src/compiler.c @@ -658,6 +658,7 @@ u32 scan() { } ctx.cc = ctx.iobuffer[ctx.ionext]; ctx.ionext++; + ctx.byteoffset++; return ctx.cc; }