MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / das_accept_sequence

Function das_accept_sequence

src/parser/ds_lexer.cpp:5039–5048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5037}
5038
5039void das_accept_sequence ( yyscan_t yyscanner, const char * seq, size_t seqLen, int lineNo, FileInfo * info ) {
5040 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
5041 auto infoPtr = info ? info : yyextra->g_FileAccessStack.back();
5042 yyextra->g_FileAccessStack.push_back(infoPtr);
5043 yyextra->das_line_no.push_back(yylineno);
5044 yypush_buffer_state(YY_CURRENT_BUFFER, yyscanner);
5045 yy_scan_bytes(seq, int(seqLen), yyscanner);
5046 yylineno = lineNo;
5047 BEGIN(normal);
5048}
5049
5050void das_yybegin_reader ( yyscan_t yyscanner ) {
5051 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

Callers 2

yyparseFunction · 0.85
yyparseFunction · 0.85

Calls 3

yypush_buffer_stateFunction · 0.70
yy_scan_bytesFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected