lexing up and running

This commit is contained in:
Ellen Arvidsson 2025-04-15 20:02:25 +02:00
parent 10e16147ba
commit b9266cdf96
6 changed files with 434 additions and 102 deletions

20
include/msph/err.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef _MSPH_ERR_H
#define _MSPH_ERR_H
#ifdef SPHO_DEBUG
// #define SPHO_ENABLE_DEBUG_PRINT
#endif
#include "spho/err.h"
#define MSPH_ERR_SYS 0x0001
#define MSPH_ERR_INVAL 0x1001
#define MSPH_ERR_TOOLONG 0x2001
#define MSPH_ERR(ctx, e) SPHO_ERR(ctx, e)
#define MSPH_TOKS_ERR(toks, e) MSPH_ERR((toks)->ctx, e)
#endif