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

Class: PHP_ParserGenerator_Action

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

Class Overview


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


Author(s):

Version:

  • 0.1.5

Copyright:

  • 2006 Gregory Beaver

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 58]
Every shift or reduce operation is stored as one of the following objects.
  • Author: Gregory Beaver <cellog@php.net>
  • Version: 0.1.5
  • Copyright: 2006 Gregory Beaver
  • Since: Class available since Release 0.1.0
  • License: New BSD License


[ Top ]


Class Variables

$next =

[line 110]

The next action for this state.
  • Access: public



[ Top ]

$sp =

[line 84]

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



[ Top ]

$type =

[line 98]

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

  • Access: public

Type:   mixed


[ Top ]

$x =

[line 105]

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



[ Top ]



Method Detail

actioncmp   [line 117]

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 181]

void Action_add( PHP_ParserGenerator_Action|null &$app, int $type, PHP_ParserGenerator_Symbol $sp, PHP_ParserGenerator_State|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_State|PHP_ParserGenerator_Rule   $arg   — 

[ Top ]

Action_sort   [line 197]

void Action_sort( PHP_ParserGenerator_Action $ap)

Sort parser actions

Parameters:

PHP_ParserGenerator_Action   $ap   — 

[ Top ]

display   [line 155]

void display( [ $processed = false])


Parameters:

   $processed   — 

[ Top ]

PrintAction   [line 208]

void PrintAction( $fp, $indent)

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

Parameters:

   $fp   — 
   $indent   — 

[ Top ]


Documentation generated on Thu, 10 Dec 2015 05:43:58 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.