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

Class: PHP_ParserGenerator_Action

Source Location: /PHP_ParserGenerator-0.1.7/ParserGenerator/Action.php

Class Overview


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


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2006 Gregory Beaver

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 62]
Every shift or reduce operation is stored as one of the following objects.


[ Top ]


Class Variables

$next =

[line 115]

The next action for this state.
  • Access: public



[ Top ]

$sp =

[line 89]

The look-ahead symbol that triggers this action
  • Access: public



[ Top ]

$type =

[line 103]

This defines the kind of action, and must be one of the class constants.

  • Access: public

Type:   mixed


[ Top ]

$x =

[line 110]

The new state, if this is a shift, the parser rule index, if this is a reduce.
  • Access: public



[ Top ]



Method Detail

actioncmp   [line 122]

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 ]

Action_add   [line 187]

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

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_State|PHP_ParserGenerator_Rule   $arg     
   &$app     

[ Top ]

Action_sort   [line 208]

PHP_ParserGenerator_Action Action_sort( PHP_ParserGenerator_Action $ap)

Sort parser actions

Parameters:

PHP_ParserGenerator_Action   $ap     a parser action

[ Top ]

display   [line 161]

void display( [ $processed = false])


Parameters:

   $processed     

[ Top ]

PrintAction   [line 225]

int|false PrintAction( resource $fp, integer $indent)

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

Parameters:

resource   $fp     File descriptor to print on
integer   $indent     Number of indents

[ Top ]


Documentation generated on Mon, 25 Oct 2010 14:00:39 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.