[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/pkg/vtiger/extensions/Webservices/third-party/LexerGenerator/Regex/ -> Parser.php (summary)

(no description)

File Size: 1942 lines (88 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

PHP_LexerGenerator_Regex_yyToken:: (6 methods):
  __construct()
  __toString()
  offsetExists()
  offsetGet()
  offsetSet()
  offsetUnset()

PHP_LexerGenerator_Regex_yyStackEntry:: (81 methods):
  __construct()
  reset()
  Trace()
  PrintTrace()
  tokenName()
  yy_destructor()
  yy_pop_parser_stack()
  __destruct()
  yy_get_expected_tokens()
  yy_is_expected_token()
  yy_find_shift_action()
  yy_find_reduce_action()
  yy_shift()
  yy_r0()
  yy_r1()
  yy_r2()
  yy_r3()
  yy_r4()
  yy_r5()
  yy_r17()
  yy_r18()
  yy_r19()
  yy_r30()
  yy_r31()
  yy_r32()
  yy_r33()
  yy_r34()
  yy_r35()
  yy_r36()
  yy_r37()
  yy_r38()
  yy_r39()
  yy_r40()
  yy_r41()
  yy_r42()
  yy_r43()
  yy_r44()
  yy_r45()
  yy_r46()
  yy_r47()
  yy_r48()
  yy_r49()
  yy_r50()
  yy_r51()
  yy_r52()
  yy_r53()
  yy_r54()
  yy_r55()
  yy_r56()
  yy_r57()
  yy_r59()
  yy_r63()
  yy_r65()
  yy_r67()
  yy_r71()
  yy_r73()
  yy_r74()
  yy_r75()
  yy_r76()
  yy_r77()
  yy_r78()
  yy_r79()
  yy_r80()
  yy_r81()
  yy_r82()
  yy_r83()
  yy_r84()
  yy_r85()
  yy_r87()
  yy_r88()
  yy_r89()
  yy_r90()
  yy_r91()
  yy_r92()
  yy_r93()
  yy_r94()
  yy_reduce()
  yy_parse_failed()
  yy_syntax_error()
  yy_accept()
  doParse()


Class: PHP_LexerGenerator_Regex_yyToken  - X-Ref

This can be used to store both the string representation of
a token, and any useful meta-data associated with the token.

meta-data should be stored as an array
__construct($s, $m = array()   X-Ref
No description

__toString()   X-Ref
No description

offsetExists($offset)   X-Ref
No description

offsetGet($offset)   X-Ref
No description

offsetSet($offset, $value)   X-Ref
No description

offsetUnset($offset)   X-Ref
No description

Class: PHP_LexerGenerator_Regex_yyStackEntry  - X-Ref

__construct($lex)   X-Ref
No description

reset()   X-Ref
No description

Trace($TraceFILE, $zTracePrompt)   X-Ref
Turn parser tracing on by giving a stream to which to write the trace
and a prompt to preface each trace message.  Tracing is turned off
by making either argument NULL

Inputs:

- A stream resource to which trace output should be written.
If NULL, then tracing is turned off.
- A prefix string written at the beginning of every
line of trace output.  If NULL, then tracing is
turned off.

Outputs:

- None.
param: resource
param: string

PrintTrace()   X-Ref
Output debug information to output (php://output stream)


tokenName($tokenType)   X-Ref
This function returns the symbolic name associated with a token
value.

param: int
return: string

yy_destructor($yymajor, $yypminor)   X-Ref
The following function deletes the value associated with a
symbol.  The symbol can be either a terminal or nonterminal.

param: int the symbol code
param: mixed the symbol's value

yy_pop_parser_stack()   X-Ref
Pop the parser's stack once.

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.
param: PHP_LexerGenerator_Regex_yyParser
return: int

__destruct()   X-Ref
Deallocate and destroy a parser.  Destructors are all called for
all stack elements before shutting the parser down.


yy_get_expected_tokens($token)   X-Ref
Based on the current state and parser stack, get a list of all
possible lookahead tokens

param: int
return: array

yy_is_expected_token($token)   X-Ref
Based on the parser state and current parser stack, determine whether
the lookahead token is possible.

The parser will convert the token value to an error token if not.  This
catches some unusual edge cases where the parser would fail.
param: int
return: bool

yy_find_shift_action($iLookAhead)   X-Ref
Find the appropriate action for a parser given the terminal
look-ahead token iLookAhead.

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.
param: int The look-ahead token

yy_find_reduce_action($stateno, $iLookAhead)   X-Ref
Find the appropriate action for a parser given the non-terminal
look-ahead token $iLookAhead.

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.
param: int Current state number
param: int The look-ahead token

yy_shift($yyNewState, $yyMajor, $yypMinor)   X-Ref
Perform a shift action.

param: int The new state to shift in
param: int The major token to shift in
param: mixed the minor token to shift in

yy_r0()   X-Ref
No description

yy_r1()   X-Ref
No description

yy_r2()   X-Ref
No description

yy_r3()   X-Ref
No description

yy_r4()   X-Ref
No description

yy_r5()   X-Ref
No description

yy_r17()   X-Ref
No description

yy_r18()   X-Ref
No description

yy_r19()   X-Ref
No description

yy_r30()   X-Ref
No description

yy_r31()   X-Ref
No description

yy_r32()   X-Ref
No description

yy_r33()   X-Ref
No description

yy_r34()   X-Ref
No description

yy_r35()   X-Ref
No description

yy_r36()   X-Ref
No description

yy_r37()   X-Ref
No description

yy_r38()   X-Ref
No description

yy_r39()   X-Ref
No description

yy_r40()   X-Ref
No description

yy_r41()   X-Ref
No description

yy_r42()   X-Ref
No description

yy_r43()   X-Ref
No description

yy_r44()   X-Ref
No description

yy_r45()   X-Ref
No description

yy_r46()   X-Ref
No description

yy_r47()   X-Ref
No description

yy_r48()   X-Ref
No description

yy_r49()   X-Ref
No description

yy_r50()   X-Ref
No description

yy_r51()   X-Ref
No description

yy_r52()   X-Ref
No description

yy_r53()   X-Ref
No description

yy_r54()   X-Ref
No description

yy_r55()   X-Ref
No description

yy_r56()   X-Ref
No description

yy_r57()   X-Ref
No description

yy_r59()   X-Ref
No description

yy_r63()   X-Ref
No description

yy_r65()   X-Ref
No description

yy_r67()   X-Ref
No description

yy_r71()   X-Ref
No description

yy_r73()   X-Ref
No description

yy_r74()   X-Ref
No description

yy_r75()   X-Ref
No description

yy_r76()   X-Ref
No description

yy_r77()   X-Ref
No description

yy_r78()   X-Ref
No description

yy_r79()   X-Ref
No description

yy_r80()   X-Ref
No description

yy_r81()   X-Ref
No description

yy_r82()   X-Ref
No description

yy_r83()   X-Ref
No description

yy_r84()   X-Ref
No description

yy_r85()   X-Ref
No description

yy_r87()   X-Ref
No description

yy_r88()   X-Ref
No description

yy_r89()   X-Ref
No description

yy_r90()   X-Ref
No description

yy_r91()   X-Ref
No description

yy_r92()   X-Ref
No description

yy_r93()   X-Ref
No description

yy_r94()   X-Ref
No description

yy_reduce($yyruleno)   X-Ref
Perform a reduce action and the shift that must immediately
follow the reduce.

For a rule such as:

<pre>
A ::= B blah C. { dosomething(); }
</pre>

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)
param: int Number of the rule by which to reduce

yy_parse_failed()   X-Ref
The following code executes when the parse fails

Code from %parse_fail is inserted here

yy_syntax_error($yymajor, $TOKEN)   X-Ref
The following code executes when a syntax error first occurs.

%syntax_error code is inserted here
param: int The major type of the error token
param: mixed The minor type of the error token

yy_accept()   X-Ref
The following is executed when the parser accepts

%parse_accept code is inserted here

doParse($yymajor, $yytokenvalue)   X-Ref
The main parser program.

The first argument is the major token number.  The second is
the token value string as scanned from the input.

param: int the token number
param: mixed the token value
param: mixed any extra arguments that should be passed to handlers



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1