Home
last modified time | relevance | path

Searched refs:yylloc (Results 1 – 25 of 32) sorted by relevance

12

/external/mesa3d/src/glsl/
Dglsl_parser.yy374 $$->set_location(yylloc);
381 $$->set_location(yylloc);
388 $$->set_location(yylloc);
395 $$->set_location(yylloc);
402 $$->set_location(yylloc);
417 $$->set_location(yylloc);
427 $$->set_location(yylloc);
434 $$->set_location(yylloc);
440 $$->set_location(yylloc);
458 $$->set_location(yylloc);
[all …]
Dglsl_lexer.ll39 yylloc->source = 0; \
40 yylloc->first_column = yycolumn + 1; \
41 yylloc->first_line = yylineno + 1; \
65 _mesa_glsl_error(yylloc, yyextra, \
126 literal_integer(yytext, yyleng, yyextra, yylval, yylloc, base)
166 yylloc->source = strtol(ptr, NULL, 0);
Dglsl_parser_extras.h265 extern int _mesa_glsl_lex(union YYSTYPE *yylval, YYLTYPE *yylloc,
/external/bison/examples/calc++/
Dcalc++-scanner.ll30 # define YY_USER_ACTION yylloc->columns (yyleng);
35 yylloc->step ();
37 {blank}+ yylloc->step ();
38 [\n]+ yylloc->lines (yyleng); yylloc->step ();
53 driver.error (*yylloc, "integer is out of range");
66 . driver.error (*yylloc, "invalid character");
Dcalc++-parser.cc352 location_type yylloc; in parse() local
375 yylloc.begin.filename = yylloc.end.filename = &driver.file; in parse()
388 yylocation_stack_.push (yylloc); in parse()
413 yychar = yylex (&yylval, &yylloc, driver); in parse()
425 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); in parse()
445 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); in parse()
451 yylocation_stack_.push (yylloc); in parse()
607 error (yylloc, yysyntax_error_ (yystate, yytoken)); in parse()
610 yyerror_range[1] = yylloc; in parse()
623 yydestruct_ ("Error: discarding", yytoken, &yylval, &yylloc); in parse()
[all …]
Dcalc++-scanner.cc567 # define YY_USER_ACTION yylloc->columns (yyleng);
811 yylloc->step ();
926 yylloc->step ();
932 yylloc->lines (yyleng); yylloc->step ();
955 driver.error (*yylloc, "integer is out of range");
971 driver.error (*yylloc, "invalid character");
Dcalc++-driver.hh12 yy::calcxx_parser::location_type* yylloc, \
/external/mesa3d/src/mesa/program/
Dprogram_lexer.l132 yylloc->first_column = yylloc->last_column; \
133 yylloc->last_column += yyleng; \
134 if ((yylloc->first_line == 1) \
135 && (yylloc->first_column == 1)) { \
136 yylloc->position = 1; \
138 yylloc->position += yylloc->last_column - yylloc->first_column; \
485 yylloc->first_line++;
486 yylloc->first_column = 1;
487 yylloc->last_line++;
488 yylloc->last_column = 1;
[all …]
/external/bison/data/
Dlalr1.java101 private ]b4_location_type[ yylloc (YYStack rhs, int n)
333 ]b4_locations_if([b4_location_type[ yyloc = yylloc (yystack, yylen);]])[
448 ]b4_location_type[ yylloc = new ]b4_location_type[ (null, null);
460 b4_dollar_pushdef([yylval], [], [yylloc])dnl
466 yystack.push (yystate, yylval]b4_locations_if([, yylloc])[);
497 yylloc = new ]b4_location_type[(yylexer.getStartPos (),
512 yylval]b4_locations_if([, yylloc])[);
537 yylval]b4_locations_if([, yylloc])[);
548 yystack.push (yystate, yylval]b4_locations_if([, yylloc])[);
583 yyerror (]b4_locations_if([yylloc, ])[yysyntax_error (yystate, yytoken));
[all …]
Dlalr1.cc528 location_type yylloc;
546 b4_dollar_pushdef([yylval], [], [yylloc])dnl
559 yylocation_stack_.push (yylloc);
586 b4_locations_if([, [[location*], [&yylloc]]])dnl
599 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
619 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
625 yylocation_stack_.push (yylloc);
719 error (yylloc, yysyntax_error_ (yystate, yytoken));
722 yyerror_range[1] = yylloc;
735 yydestruct_ ("Error: discarding", yytoken, &yylval, &yylloc);
[all …]
Dglr.c64 b4_locations_if([, [[YYLTYPE *], [&yylloc]]])])dnl
70 # Optional effective arguments passed to yyerror: user args plus yylloc, and
79 # Same as above, but on the lookahead, hence &yylloc instead of yylocp.
81 [b4_pure_if([b4_locations_if([&yylloc, ])])dnl
94 # Same as above, but on the lookahead, hence &yylloc instead of yylocp.
96 [b4_pure_if([b4_locations_if([, &yylloc])])[]b4_user_args])
204 #define yylloc ]b4_prefix[lloc]])])[ macro
484 #undef yylloc
485 #define yylloc (yystackp->yyloc)
490 #define b4_prefix[]lloc yylloc])],
[all …]
Dyacc.c95 # Arguments passed to yyerror: user args plus yylloc.
97 [b4_yyerror_arg_loc_if([&yylloc, ])dnl
107 b4_locations_if([, [[YYLTYPE *], [&yylloc]]])m4_ifdef([b4_lex_param], [, ])])dnl
213 YYLTYPE yylloc]b4_pure_if([ = yyloc_default], [b4_yyloc_default])[;
368 #define yylloc ]b4_prefix[lloc]])])[
793 # define YYLEX yylex (]b4_pure_if([&yylval[]b4_locations_if([, &yylloc]), ])[YYLEX_PARAM)
1428 YYLTYPE yylloc = yyloc_default;]])])[
1445 …yypush_parse (yyps_local]b4_pure_if([[, yychar, &yylval]b4_locations_if([[, &yylloc]])])m4_ifset([…
1526 YYLTYPE yypushed_loc = yylloc;]])
1577 [b4_push_if([b4_pure_if([*])yypushed_loc], [yylloc])])dnl
[all …]
Dglr.cc95 [yylloc.initialize ();]m4_ifdef([b4_initial_action], [
Dc.m4555 # in the parser body. Declare YYSTYPE/YYLTYPE, and yylval/yylloc.
704 # Expand to a possible default value for yylloc.
/external/mesa3d/src/glsl/glcpp/
Dglcpp-lex.l48 yylloc->source = parser->new_source_number; \
49 yylloc->first_column = yycolumn + 1; \
50 yylloc->first_line = yylineno; \
60 yylloc->source = 0; \
184 glcpp_error(yylloc, yyextra, "#error%s", p);
Dglcpp-parse.y137 glcpp_parser_lex (YYSTYPE *yylval, YYLTYPE *yylloc, glcpp_parser_t *parser);
536 $$->location = yylloc;
540 $$->location = yylloc;
544 $$->location = yylloc;
548 $$->location = yylloc;
552 $$->location = yylloc;
1806 glcpp_parser_lex (YYSTYPE *yylval, YYLTYPE *yylloc, glcpp_parser_t *parser) in glcpp_parser_lex() argument
1812 ret = glcpp_lex (yylval, yylloc, parser->scanner); in glcpp_parser_lex()
/external/bison/tests/
Dglr-regression.at712 yylloc.first_column = 1;
713 yylloc.last_column = 9;
716 yylloc.first_column = 13;
717 yylloc.last_column = 17;
1148 printf ("', yylloc=(%d,%d),(%d,%d)",
1149 yylloc.first_line, yylloc.first_column,
1150 yylloc.last_line, yylloc.last_column);
1172 yychar='a', yylval='A', yylloc=(1,1),(1,1)
1174 yychar='a', yylval='A', yylloc=(1,1),(1,1)
1335 yylloc.first_line = yylloc.last_line = 1;
[all …]
Dcxx-type.at147 # undef yylloc
148 # define yylloc (*llocp)
174 yylloc.first_line = yylloc.last_line = lineNum;
175 yylloc.first_column = colNum;]])[
200 yylloc.last_column = colNum-1;]])[
Dactions.at1048 yylloc.first_line = yylloc.last_line = 1;
1049 yylloc.first_column = yylloc.last_column = 1;
/external/bison/src/
Dparse-gram.c72 #define yylloc gram_lloc macro
126 gram_error (&yylloc, Msg)
1023 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
1025 # define YYLEX yylex (&yylval, &yylloc)
1911 YYLTYPE yylloc local
2003 boundary_set (&yylloc.start, current_file, 1, 1);
2004 boundary_set (&yylloc.end, current_file, 1, 1);
2008 yylsp[0] = yylloc;
2125 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
2152 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
[all …]
Dparse-gram.y50 gram_error (&yylloc, Msg)
/external/e2fsprogs/intl/
Dplural.c504 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
506 # define YYLEX yylex (&yylval, &yylloc)
661 YYLTYPE yylloc;
940 *++yylsp = yylloc; in yyparse()
1277 *++yylsp = yylloc; in yyparse()
/external/bison/
DChangeLog394 yacc.c: always initialize yylloc
402 yacc.c: always initialize yylloc
411 to initialize yylloc, even when its structure is unknown.
623 glr.cc, yacc.c: initialize yylloc properly
673 glr.cc, yacc.c: initialize yylloc properly
674 There are several issues to address here. One is that yylloc should
683 variable. To simplify, the local yylloc is not initialized during its
689 * data/glr.cc: Initialize yylloc.
691 Initialize yylloc during its definition.
735 glr.c does initialize yylloc.
[all …]
/external/bison/doc/
Dbison.texi1160 @vindex yylloc
1161 @cindex GLR parsers and @code{yylloc}
1165 you can then examine @code{yylval} and @code{yylloc} to determine the
1174 In this case, @code{yychar}, @code{yylval}, and @code{yylloc} are set to
2180 ++yylloc.last_column;
2185 yylloc.first_line = yylloc.last_line;
2186 yylloc.first_column = yylloc.last_column;
2194 ++yylloc.last_column;
2197 ++yylloc.last_column;
2213 ++yylloc.last_line;
[all …]
Dbison.info1748 `YYEOF', you can then examine `yylval' and `yylloc' to determine the
1754 analysis. In this case, `yychar', `yylval', and `yylloc' are set to
2670 ++yylloc.last_column;
2673 yylloc.first_line = yylloc.last_line;
2674 yylloc.first_column = yylloc.last_column;
2680 ++yylloc.last_column;
2683 ++yylloc.last_column;
2697 ++yylloc.last_line;
2698 yylloc.last_column = 0;
2701 ++yylloc.last_column;
[all …]

12