[impl] test for string contents; reduce all string lexing; notes about delimiter error tokens

This commit is contained in:
Allen Webster
2021-06-05 22:40:43 -07:00
parent 19cdec56cd
commit 6450cd703c
3 changed files with 180 additions and 103 deletions
+34
View File
@@ -977,6 +977,40 @@ main:
return: MD_b32,
};
@send(Parsing)
@func MD_PushNodeError: {
ctx: *MD_ParseCtx,
node: *MD_Node,
kind: MD_MessageKind,
str: MD_String8,
};
@send(Parsing)
@func MD_PushNodeErrorF: {
ctx: *MD_ParseCtx,
node: *MD_Node,
kind: MD_MessageKind,
fmt: *char,
"..."
};
@send(Parsing)
@func MD_PushTokenError: {
ctx: *MD_ParseCtx,
token: MD_Token,
kind: MD_MessageKind,
str: MD_String8,
};
@send(Parsing)
@func MD_PushTokenErrorF: {
ctx: *MD_ParseCtx,
token: MD_Token,
kind: MD_MessageKind,
fmt: *char,
"..."
};
@send(Parsing)
@func MD_Parse_InitializeCtx: {
filename: MD_String8,