Home
last modified time | relevance | path

Searched refs:lexer (Results 1 – 25 of 58) sorted by relevance

123

/netbsd/src/external/gpl3/gcc/dist/gcc/cp/
Dparser.cc497 next_token = parser->lexer->next_token; in cp_debug_parser_tokens()
498 first_token = parser->lexer->buffer->address (); in cp_debug_parser_tokens()
502 cp_lexer_dump_tokens (file, parser->lexer->buffer, start_token, window_size, in cp_debug_parser_tokens()
522 vec_safe_length (parser->lexer->buffer)); in cp_debug_parser()
588 token = parser->lexer->next_token; in cp_debug_parser()
619 cp_lexer *lexer = ggc_cleared_alloc<cp_lexer> (); in cp_lexer_alloc() local
622 lexer->debugging_p = false; in cp_lexer_alloc()
624 lexer->saved_tokens.create (CP_SAVED_TOKEN_STACK); in cp_lexer_alloc()
627 vec_alloc (lexer->buffer, CP_LEXER_BUFFER_SIZE); in cp_lexer_alloc()
629 return lexer; in cp_lexer_alloc()
[all …]
Dparser.h233 cp_lexer *lexer; member
DChangeLog-2004985 (cp_lexer_new_main): Directly grow lexer's buffer here. Don't
1065 (cp_lexer_new_main): Adjust main lexer creation and buffer
1769 Remove unused lexer argument.
1771 and return lexer->next_token.
1987 this lexer's buffer, then turn raw strings back off again.
1990 the main lexer. Set token->in_system_header too.
2003 (cp_parser_translation_unit): Destroy the lexer when done.
DChangeLog-20211799 a struct containing parser->lexer->in_omp_attribute_pragma to
1923 parser->lexer->in_omp_attribute_pragma.
2046 upon restart from CPP_PRAGMA handling. Fix up condition when a lexer
2048 the to be destroyed lexer.
2051 parser->lexer->in_omp_attribute_pragma, allow optional comma
/netbsd/src/external/bsd/flex/dist/tests/
Ddebug_r.l45 yyscan_t lexer; in main() local
46 testlex_init( &lexer ); in main()
47 testset_out ( stdout,lexer); in main()
48 testset_in ( stdin, lexer); in main()
51 testset_debug (testget_debug(lexer), lexer); in main()
53 while( testlex(lexer) ) in main()
56 testlex_destroy( lexer ); in main()
Darray_r.l50 yyscan_t lexer; in main() local
52 yylex_init(&lexer); in main()
53 yyset_in(stdin, lexer); in main()
54 yyset_out(stdout, lexer); in main()
56 yylex( lexer ); in main()
58 yylex_destroy( lexer); in main()
Dbasic_r.l57 yyscan_t lexer;
58 testlex_init( &lexer );
59 testset_out ( stdout,lexer);
60 testset_in ( stdin, lexer);
61 while( testlex(lexer) )
64 testlex_destroy( lexer );
Dc_cxx_r.lll51 yyscan_t lexer;
52 testlex_init( &lexer );
53 testset_out ( stdout,lexer);
54 testset_in ( stdin, lexer);
55 while( testlex(lexer) )
58 testlex_destroy( lexer );
/netbsd/src/external/gpl3/gdb/dist/gdb/python/lib/gdb/
Dstyling.py37 lexer = lexers.get_lexer_for_filename(filename, stripnl=False)
39 return highlight(contents, lexer, formatter).encode(
47 def fix_comments(lexer, stream): argument
59 def filter(self, lexer, stream): argument
61 return super().filter(lexer, f(lexer, stream))
89 lexer = __get_asm_lexer(gdbarch)
91 return highlight(content, lexer, formatter).rstrip().encode()
/netbsd/src/external/bsd/elftosb/dist/elftosb2/
Delftosb_parser.y54 static int yylex(YYSTYPE * lvalp, YYLTYPE * yylloc, ElftosbLexer * lexer);
57 static void yyerror(YYLTYPE * yylloc, ElftosbLexer * lexer, CommandFileASTNode ** resultAST, const …
71 %parse-param {ElftosbLexer * lexer}
73 %lex-param {ElftosbLexer * lexer}
260lexer->addSourceName(node->getName());
441 … yyerror(&yylloc, lexer, resultAST, "HAB features not supported with the selected family");
564 … yyerror(&yylloc, lexer, resultAST, "invalid call_or_jump value");
585 … yyerror(&yylloc, lexer, resultAST, "HAB features not supported with the selected family");
599 … yyerror(&yylloc, lexer, resultAST, "invalid call_or_jump value");
966 static int yylex(YYSTYPE * lvalp, YYLTYPE * yylloc, ElftosbLexer * lexer)
[all …]
Delftosb_parser.tab.cpp183 static int yylex(YYSTYPE * lvalp, YYLTYPE * yylloc, ElftosbLexer * lexer);
186 static void yyerror(YYLTYPE * yylloc, ElftosbLexer * lexer, CommandFileASTNode ** resultAST, const …
859 yyerror (&yylloc, lexer, resultAST, YY_("syntax error: cannot back up")); \
916 # define YYLEX yylex (&yylval, &yylloc, lexer)
1239 int yyparse (ElftosbLexer * lexer, CommandFileASTNode ** resultAST);
1264 yyparse (ElftosbLexer * lexer, CommandFileASTNode ** resultAST)
1267 yyparse (lexer, resultAST)
1268 ElftosbLexer * lexer;
1646lexer->addSourceName(node->getName());
1869 … yyerror(&yylloc, lexer, resultAST, "HAB features not supported with the selected family");
[all …]
DConversionController.cpp31 extern int yyparse(ElftosbLexer * lexer, CommandFileASTNode ** resultAST);
191 ElftosbLexer lexer(commandFile); in parseCommandFile() local
195 int result = yyparse(&lexer, &ast); in parseCommandFile()
1378 void ConversionController::testLexer(ElftosbLexer & lexer) in testLexer() argument
1384 int lexresult = lexer.yylex(); in testLexer()
1387 lexer.getSymbolValue(&value); in testLexer()
DConversionController.h125 void testLexer(ElftosbLexer & lexer);
/netbsd/src/external/bsd/flex/dist/examples/
DtestxxLexer.l54 FlexLexer* lexer = new yyFlexLexer; variable
55 while(lexer->yylex() != 0)
/netbsd/src/external/gpl3/gdb/dist/gdb/
Dlinespec.c303 #define PARSER_STREAM(P) ((P)->lexer.stream)
307 } lexer {};
905 if (parser->lexer.current.type == LSTOKEN_CONSUMED) in linespec_lexer_lex_one()
914 parser->lexer.current.type = LSTOKEN_KEYWORD; in linespec_lexer_lex_one()
915 LS_TOKEN_KEYWORD (parser->lexer.current) = keyword; in linespec_lexer_lex_one()
921 return parser->lexer.current; in linespec_lexer_lex_one()
928 parser->lexer.current.type = LSTOKEN_EOI; in linespec_lexer_lex_one()
934 if (!linespec_lexer_lex_number (parser, &(parser->lexer.current))) in linespec_lexer_lex_one()
935 parser->lexer.current = linespec_lexer_lex_string (parser); in linespec_lexer_lex_one()
942 parser->lexer.current = linespec_lexer_lex_string (parser); in linespec_lexer_lex_one()
[all …]
/netbsd/src/external/bsd/ipf/bin/ippool/
DMakefile25 ippool_l.c: lexer.c
32 ippool_l.h: lexer.h
/netbsd/src/external/bsd/ipf/bin/ipmon/
DMakefile25 ipmon_l.c: lexer.c
32 ipmon_l.h: lexer.h
/netbsd/src/external/bsd/ipf/bin/ipf/
DMakefile27 ipf_l.c: lexer.c
34 ipf_l.h: lexer.h
/netbsd/src/crypto/external/bsd/heimdal/dist/cf/
Dsymbol-version.py44 t.lexer.skip(1)
/netbsd/src/external/gpl3/gcc/dist/gcc/doc/
Dcppinternals.info110 The lexer is contained in the file 'lex.cc'. It is a hand-coded lexer,
113 successful preprocessing of assembly language. The lexer does not make
121 necessary. However, the lexer does expose some functionality so that
144 The lexer places the token it lexes into storage pointed to by the
151 The lexer does not consider whitespace to be a token in its own
169 New lines are treated specially; exactly how the lexer handles them
173 'in_directive' is set, the lexer returns a 'CPP_EOF' token, which is
187 be distinguished sometimes. One such time is here: the lexer sets the
205 The lexer is written to treat each of '\r', '\n', '\r\n' and '\n\r'
250 The lexer needs to keep track of the correct column position,
[all …]
Dcppinternals.texi129 @cindex lexer
134 The lexer is contained in the file @file{lex.cc}. It is a hand-coded
135 lexer, and not implemented as a state machine. It can understand C, C++
137 successful preprocessing of assembly language. The lexer does not make
145 necessary. However, the lexer does expose some functionality so that
167 The lexer places the token it lexes into storage pointed to by the
175 The lexer does not consider whitespace to be a token in its own right.
193 New lines are treated specially; exactly how the lexer handles them is
197 @code{in_directive} is set, the lexer returns a @code{CPP_EOF} token,
211 be distinguished sometimes. One such time is here: the lexer sets the
[all …]
/netbsd/src/external/bsd/byacc/dist/
DREADME.BTYACC99 The lexer must assign text position of
390 * No more lexer feedback hack. In yacc grammars for C, a
391 standard hack, know as the "lexer feedback hack" is used
392 to find typedef names. The lexer uses semantic
395 btyacc, you no longer need to do this; the lexer should
Dbtyaccpar.skel69 YYLTYPE yylloc; /* position from the lexer */
195 YYLTYPE yylloc; /* position from the lexer */
/netbsd/src/usr.bin/xlint/lint1/
DREADME.md8 * The lexer in `scan.l` and `lex.c` splits the input into tokens.
/netbsd/src/external/bsd/flex/dist/doc/
Dflex.texi3942 FlexLexer* lexer = new yyFlexLexer;
3943 while(lexer->yylex() != 0)
3951 If you want to create multiple (different) lexer classes, you use the
3954 include @file{<FlexLexer.h>} in your other sources once per lexer class,
6181 the lexer regarding what's done with the iostream's is that they're
6605 > In my lexer code, i have the line :
6806 lexer will recognize the beginning of the literal before it runs across the
6814 will match all the text between the ''s (inclusive). So the lexer
7134 > in the lexer.
7156 > It seems useful for the parser to be able to tell the lexer about such
[all …]

123