add copying token value and add Boehm GC ready for runtime implimentation

This commit is contained in:
2025-05-29 00:40:11 +01:00
parent b82e351daf
commit 626445a906
7 changed files with 67 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ int yywrap(void *) {
%%
(\"(\\[a-z\"'`]|[^\\"])*\") {
\"((\\([\"\\\/bfnrt]|u[0-9a-fA-F]{4}))|[^\\\"\n])*\" {
GET_STATE
Token * token = create_token(
TOKEN_STRING,
@@ -28,7 +28,7 @@ int yywrap(void *) {
ADD_TO_COLUMN
}
('((\\([a-z'\"`]))|[^'])*') {
\'((\\([\'\\\/bfnrt]|u[0-9a-fA-F]{4}))|[^\\\'\n])*\' {
GET_STATE
append(TOKENS, create_token(
TOKEN_STRING,