This commit is contained in:
2026-08-02 05:42:19 -06:00
parent 3a44ec594a
commit 4e0461cb2e
4 changed files with 92 additions and 3 deletions
+58
View File
@@ -0,0 +1,58 @@
#include "AsmEBNF.hpp"
namespace spider::asm_ebnf {
bool isUTF8Alpha(u32 ch) {
return false;
}
bool isWhithespaceCharNotCrLf(u32 ch) {
return false;
}
bool isUTF8CharNotCrLf(u32 ch) {
return ch != u32('\r') && ch != u32('\n');
}
bool isUTF8CharLitCont(u32 ch) {
return ch != u32('\'');
}
bool isUTF8StringLitCont(u32 ch) {
return ch != u32('"');
}
LitToken numbers[] = {
"0",
"1","2","3",
"4","5","6",
"7","8","9",
};
LitToken hex_digits[][2] = {
{"A", "a"},
{"B", "b"},
{"C", "c"},
{"D", "d"},
{"E", "e"},
{"F", "f"},
};
LitToken new_line[] = { "\r\n", "\r", "\n" };
LitToken symbols[] = {
"\\", "\'", "\"",
"_" , ";" , "(" ,
"#",
"$" , "." , "+" , "-", ",", ")", "@", ":",
};
LitToken lit_letter[] = {
"x", "c", "b"
};
LitToken type_letter[] = {
"B", "S", "I", "L", "F", "D"
};
}
+2 -2
View File
@@ -2,8 +2,8 @@
#include <spider/compiler/text/Token.hpp>
namespace spider {
namespace spider::asm_ebnf {
extern LitToken letter;
}