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

Function das2_accept_sequence

src/parser/ds2_lexer.cpp:4606–4616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4604}
4605
4606void das2_accept_sequence ( yyscan_t yyscanner, const char * seq, size_t seqLen, int lineNo, FileInfo * info ) {
4607 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
4608 auto infoPtr = info ? info : yyextra->g_FileAccessStack.back();
4609 yyextra->g_FileAccessStack.push_back(infoPtr);
4610 yyextra->das_line_no.push_back(yylineno);
4611 yyextra->das_column_no.push_back(yyextra->das_yycolumn);
4612 yypush_buffer_state(YY_CURRENT_BUFFER, yyscanner);
4613 yy_scan_bytes(seq, (int)seqLen, yyscanner);
4614 yylineno = lineNo;
4615 BEGIN(normal);
4616}
4617
4618void das2_yybegin_reader ( yyscan_t yyscanner ) {
4619 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

Callers 2

ds2_lexer.cppFile · 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