[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/pkg/vtiger/extensions/Webservices/third-party/ -> Lempar.php (summary)

(no description)

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

Defines 2 classes

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

ParseyyStackEntry:: (16 methods):
  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_reduce()
  yy_parse_failed()
  yy_syntax_error()
  yy_accept()
  doParse()


Class: ParseyyToken  - 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: ParseyyStackEntry  - X-Ref

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: ParseyyParser
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_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