add compile workflow

add fuzzing instrumentation
This commit is contained in:
mhoffm
2021-07-01 00:22:20 +02:00
parent 0e7d8ddb4b
commit 808b2de94f
626 changed files with 5686 additions and 6 deletions

View File

@@ -95,7 +95,8 @@ public:
}
// manage quoted context
if (valid_symbols[QUOTED_TEMPLATE_START] && !in_quoted_context() && lexer->lookahead == '"') {
context_stack.push_back({ QUOTED_TEMPLATE });
Context ctx = { QUOTED_TEMPLATE };
context_stack.push_back(ctx);
return accept_and_advance(lexer, QUOTED_TEMPLATE_START);
}
if (valid_symbols[QUOTED_TEMPLATE_END] && in_quoted_context() && lexer->lookahead == '"') {
@@ -112,7 +113,8 @@ public:
) {
advance(lexer);
if (lexer->lookahead == '{') {
context_stack.push_back({ TEMPLATE_INTERPOLATION });
Context ctx = { TEMPLATE_INTERPOLATION };
context_stack.push_back(ctx);
return accept_and_advance(lexer, TEMPLATE_INTERPOLATION_START);
}
// try to scan escape sequence
@@ -138,7 +140,8 @@ public:
identifier.push_back(lexer->lookahead);
advance(lexer);
}
context_stack.push_back({ HEREDOC_TEMPLATE, identifier });
Context ctx = { HEREDOC_TEMPLATE, identifier };
context_stack.push_back(ctx);
return accept_inplace(lexer, HEREDOC_IDENTIFIER);
}
if (valid_symbols[HEREDOC_IDENTIFIER] && in_heredoc_context() && has_leading_whitespace_with_newline) {