| apidoc |
| [ class tree: apidoc ] [ index: apidoc ] [ all elements ] |
|
Packages: PHP_LexerGenerator Classes: |
[ Top ] $yyFallback = array(
|
| Type: | mixed |
[line 570]
| Type: | int |
[line 1180]
The following table contains a mapping of reduce action to method name that handles the reduction.If a rule is not set, it has no handler.
| Type: | mixed |
[line 1068]
The following table contains information about every rule that is used during the reduce.array( array( int $lhs; Symbol on the left-hand side of the rule int $nrhs; Number of right-hand side symbols in the rule ),... );
| Type: | mixed |
[line 603]
For tracing reduce actions, the names of all rules are required.| Type: | array |
[line 578]
| Type: | array |
[line 585]
For tracing shifts, the names of all terminals and nonterminalsare required. The following table supplies these names
| Type: | array |
[line 561]
| Type: | resource|0 |
[line 566]
String to prepend to debug output| Type: | string|0 |
[line 223]
| Type: | mixed |
[line 468]
| Type: | mixed |
[line 262]
| Type: | mixed |
[line 315]
| Type: | mixed |
[line 303]
| Type: | mixed |
|
The first argument is the major token number. The second is the token value string as scanned from the input.
| mixed | 2 | — | any extra arguments that should be passed to handlers |
| int | $yymajor | — | the token number |
| mixed | $yytokenvalue | — | the token value |
|
|
| $patternIndex | — | ||
| $updatePattern | — |
|
| int | $tokenType | — |
|
Inputs:
| resource | $TraceFILE | — | |
| string | $zTracePrompt | — |
|
%parse_accept code is inserted here
|
| int | $yymajor | — | the symbol code |
| mixed | $yypminor | — | the symbol's value |
|
If the look-ahead token is self::YYNOCODE, then check to see if the action is independent of the look-ahead. If it is, return the action, otherwise return self::YY_NO_ACTION.
| int | $stateno | — | Current state number |
| int | $iLookAhead | — | The look-ahead token |
|
If the look-ahead token is YYNOCODE, then check to see if the action is independent of the look-ahead. If it is, return the action, otherwise return YY_NO_ACTION.
| int | $iLookAhead | — | The look-ahead token |
|
possible lookahead tokens
| int | $token | — |
|
The parser will convert the token value to an error token if not. This catches some unusual edge cases where the parser would fail.
| int | $token | — |
|
Code from %parse_fail is inserted here
|
If there is a destructor routine associated with the token which is popped from the stack, then call it.
Return the major token number for the symbol popped.
| PHP_LexerGenerator_Regex_yyParser | 0 | — |
|
For a rule such as:
A ::= B blah C. { dosomething(); }This function will first call the action, if any, ("dosomething();" in our example), and then it will pop three states from the stack, one for each entry on the right-hand side of the expression (B, blah, and C in our example rule), and then push the result of the action back on to the stack with the resulting state reduced to (as described in the .out file)
| int | $yyruleno | — | Number of the rule by which to reduce |
|
| int | $yyNewState | — | The new state to shift in |
| int | $yyMajor | — | The major token to shift in |
| mixed | $yypMinor | — | the minor token to shift in |
|
%syntax_error code is inserted here
| int | $yymajor | — | The major type of the error token |
| mixed | $TOKEN | — | The minor type of the error token |