Parser Function
Previous: <Interface=>Interface> * Next: <Lexical=>Lexical> * Up: <Interface=>Interface>

#Wrap on
{fH3}The Parser Function {fCode}yyparse{f}{f}

You call the function {fCode}yyparse{f} to cause parsing to occur.  This
function reads tokens, executes actions, and ultimately returns when it
encounters end-of-input or an unrecoverable syntax error.  You can also
write an action which directs {fCode}yyparse{f} to return immediately without
reading further.

The value returned by {fCode}yyparse{f} is 0 if parsing was successful (return
is due to end-of-input).

The value is 1 if parsing failed (return is due to a syntax error).

In an action, you can cause immediate return from {fCode}yyparse{f} by using
these macros:

#Indent +4
#Indent
{fCode}YYACCEPT{f}
#Indent +4
Return immediately with value 0 (to report success).

#Indent
{fCode}YYABORT{f}
#Indent +4
Return immediately with value 1 (to report failure).

#Indent

