phpDocumentor PHP_ParserGenerator
[ class tree: PHP_ParserGenerator ] [ index: PHP_ParserGenerator ] [ all elements ]

Class: PHP_ParserGenerator_Action

Source Location: /ParserGenerator/Action.php

Class PHP_ParserGenerator_Action

Class Overview

Every shift or reduce operation is stored as one of the following objects.

Located in /ParserGenerator/Action.php [line 58]



		
				Author(s):
		
		
		
Information Tags:
Since:  Class available since Release 0.1.0
Version:  @package_version@
License:  New BSD License
Copyright:  2006 Gregory Beaver

Properties

Methods

[ Top ]
Property Summary
PHP_ParserGenerator_Action   $next   The next action for this state.
PHP_ParserGenerator_Symbol   $sp   The look-ahead symbol that triggers this action
mixed   $type   This defines the kind of action, and must be one of the class constants.
PHP_ParserGenerator_State|PHP_ParserGenerator_Rule   $x   The new state, if this is a shift, the parser rule index, if this is a reduce.

[ Top ]
Method Summary
static void   actioncmp()   Compare two actions
static void   Action_add()   create linked list of PHP_ParserGenerator_Actions
static void   Action_sort()   Sort parser actions
void   PrintAction()   Print an action to the given file descriptor. Return FALSE if nothing was actually printed.

[ Top ]
Properties
PHP_ParserGenerator_Action   $next [line 110]

The next action for this state.

API Tags:
Access:  public


[ Top ]

The look-ahead symbol that triggers this action

API Tags:
Access:  public


[ Top ]

The new state, if this is a shift, the parser rule index, if this is a reduce.

API Tags:
Access:  public


[ Top ]
Methods
static method actioncmp  [line 117]

  static void actioncmp( PHP_ParserGenerator_Action $ap1, PHP_ParserGenerator_Action $ap2  )

Compare two actions

This is used by Action_sort() to compare actions

Parameters:
PHP_ParserGenerator_Action   $ap1: 
PHP_ParserGenerator_Action   $ap2: 


[ Top ]
static method Action_add  [line 150]

  static void Action_add( PHP_ParserGenerator_Action|null &$app, int $type, PHP_ParserGenerator_Symbol $sp, PHP_ParserGenerator_Symbol|PHP_ParserGenerator_Rule $arg  )

create linked list of PHP_ParserGenerator_Actions

Parameters:
PHP_ParserGenerator_Action|null   &$app: 
int   $type:  one of the class constants from PHP_ParserGenerator_Action
PHP_ParserGenerator_Symbol   $sp: 
PHP_ParserGenerator_Symbol|PHP_ParserGenerator_Rule   $arg: 


[ Top ]
static method Action_sort  [line 164]

  static void Action_sort( PHP_ParserGenerator_Action $ap  )

Sort parser actions

Parameters:
PHP_ParserGenerator_Action   $ap: 

API Tags:
See:  PHP_ParserGenerator_Data::FindActions()


[ Top ]
PrintAction  [line 175]

  void PrintAction( $fp, $indent  )

Print an action to the given file descriptor. Return FALSE if nothing was actually printed.

Parameters:
   $fp: 
   $indent: 

API Tags:
See:  PHP_ParserGenerator_Data::ReportOutput()


[ Top ]
Constants
ACCEPT = 2 [line 60]

[ Top ]
CONFLICT = 5 [line 63]

[ Top ]
ERROR = 4 [line 62]

[ Top ]
NOT_USED = 8 [line 75]

[ Top ]
RD_RESOLVED = 7 [line 71]

[ Top ]
REDUCE = 3 [line 61]

[ Top ]
SHIFT = 1 [line 59]

[ Top ]
SH_RESOLVED = 6 [line 67]

[ Top ]

Documentation generated on Sun, 02 Jul 2006 09:10:56 -0400 by phpDocumentor 1.3.0