/**
* Returned by a Bison action in order to request a new token.
*/
- public static final int YYMORE = 4;])[
+ public static final int YYPUSH_MORE = 4;])[
/**
* Returned by a Bison action in order to start error recovery without
* @@param yylexval current lval
]b4_locations_if([ * @@param yylexloc current position])[
*
- * @@return <tt>YYACCEPT, YYABORT, YYMORE</tt>
+ * @@return <tt>YYACCEPT, YYABORT, YYPUSH_MORE</tt>
*/
public int push_parse (int yylextoken, b4_yystype yylexval[]b4_locations_if([, b4_location_type yylexloc]))
b4_maybe_throws([b4_list2([b4_lex_throws], [b4_throws])])])[
{
]b4_push_if([[
if (!push_token_consumed)
- return YYMORE;
+ return YYPUSH_MORE;
yycdebug ("Reading a token: ");
yychar = yylextoken;
yylval = yylexval;]b4_locations_if([
* @@param yylexval current lval
* @@param yyylexpos current position
*
- * @@return <tt>YYACCEPT, YYABORT, YYMORE</tt>
+ * @@return <tt>YYACCEPT, YYABORT, YYPUSH_MORE</tt>
*/
public int push_parse (int yylextoken, b4_yystype yylexval, b4_position_type yylexpos)
b4_maybe_throws([b4_list2([b4_lex_throws], [b4_throws])])
yylexer.getEndPos ());])[
]b4_locations_if([status = push_parse(token,lval,yyloc);],[
status = push_parse(token,lval);])[
- } while (status == YYMORE);
+ } while (status == YYPUSH_MORE);
return (status == YYACCEPT);
}
]])[
The value returned by the @code{push_parse} method is one of the following
four constants: @code{YYABORT}, @code{YYACCEPT}, @code{YYERROR}, or
-@code{YYMORE}. This new value, @code{YYMORE}, may be returned if more input
-is required to finish parsing the grammar.
+@code{YYPUSH_MORE}. This new value, @code{YYPUSH_MORE}, may be returned if
+more input is required to finish parsing the grammar.
If api.push-pull is declared as @code{both}, then the generated parser class
will also implement the @code{parse} method. This method's body is a loop
}
static String[[]] teststatename
- = new String[[]]{"YYACCEPT","YYABORT","YYERROR","UNKNOWN","YYMORE"};
+ = new String[[]]{"YYACCEPT","YYABORT","YYERROR","UNKNOWN","YYPUSH_MORE"};
static void check(int teststate, int expected, String msg)
{
setup();
teststate = parser.push_parse('a', null);
- check(teststate,YYParser.YYMORE,"push_parse('a', null)");
+ check(teststate,YYParser.YYPUSH_MORE,"push_parse('a', null)");
setup();
teststate = parser.push_parse('a', null);
- check(teststate,YYParser.YYMORE,"push_parse('a', null)");
+ check(teststate,YYParser.YYPUSH_MORE,"push_parse('a', null)");
teststate = parser.push_parse('b', null);
- check(teststate,YYParser.YYMORE,"push_parse('b', null)");
+ check(teststate,YYParser.YYPUSH_MORE,"push_parse('b', null)");
teststate = parser.push_parse('c', null);
- check(teststate,YYParser.YYMORE,"push_parse('c', null)");
+ check(teststate,YYParser.YYPUSH_MORE,"push_parse('c', null)");
teststate = parser.push_parse('\0', null);
check(teststate,YYParser.YYACCEPT,"push_parse('\\0', null)");
setup();
teststate = parser.push_parse('a', null);
- check(teststate,YYParser.YYMORE,"push_parse('a', null)");
+ check(teststate,YYParser.YYPUSH_MORE,"push_parse('a', null)");
teststate = parser.push_parse('b', null);
- check(teststate,YYParser.YYMORE,"push_parse('b', null)");
+ check(teststate,YYParser.YYPUSH_MORE,"push_parse('b', null)");
teststate = parser.push_parse('c', null);
- check(teststate,YYParser.YYMORE,"push_parse('c', null)");
+ check(teststate,YYParser.YYPUSH_MORE,"push_parse('c', null)");
teststate = parser.push_parse('\0', null);
check(teststate,YYParser.YYACCEPT,"push_parse('\\0', null)");