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

Class: PHP_ParserGenerator

Source Location: /PHP_ParserGenerator-0.1.7/ParserGenerator.php

Class Overview


The basic home class for the parser generator


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2006 Gregory Beaver

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 94]
The basic home class for the parser generator


[ Top ]


Class Variables

$azDefine = array()

[line 104]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

ErrorMsg   [line 701]

void ErrorMsg( $filename, $lineno, $format)


Parameters:

   $filename   — 
   $lineno   — 
   $format   — 

[ Top ]

findbreak   [line 684]

void findbreak( $msg, $min, $max)


Parameters:

   $msg   — 
   $min   — 
   $max   — 

[ Top ]

handleflags   [line 171]

int handleflags( int $i, array $argv)

Process a flag command line argument.

Parameters:

int   $i   — 
array   $argv   — 

[ Top ]

handleswitch   [line 197]

int handleswitch( int $i, array $argv)

Process a command line switch which has an argument.

Parameters:

int   $i   — 
array   $argv   — 

[ Top ]

main   [line 440]

int main( )

The main program. Parse the command line and do it...
  • Return: Number of error and conflicts

[ Top ]

merge   [line 606]

mixed merge( mixed $a, mixed $b, function $cmp, integer $offset)

Merge in a merge sort for a linked list

Side effects: The "next" pointers for elements in the lists a and b are changed.

  • Return: A pointer to the head of a sorted list containing the elements of both a and b.

Parameters:

mixed   $a   —  A sorted, null-terminated linked list. (May be null).
mixed   $b   —  A sorted, null-terminated linked list. (May be null).
function   $cmp   —  A pointer to the comparison function.
integer   $offset   —  Offset in the structure to the "next" field.

[ Top ]

msort   [line 653]

mixed msort( mixed $list, mixed $next, function $cmp)

Side effects: The "next" pointers for elements in list are changed.
  • Return: A pointer to the head of a sorted list containing the elements orginally in list.

Parameters:

mixed   $list   —  Pointer to a singly-linked list of structures.
mixed   $next   —  Pointer to pointer to the second element of the list.
function   $cmp   —  A comparison function.

[ Top ]

OptInit   [line 265]

int OptInit( array $a)

OptInit

Parameters:

array   $a   —  Arguments

[ Top ]

OptNArgs   [line 337]

int OptNArgs( array $a)

  • Return: number of arguments

Parameters:

array   $a   — 

[ Top ]

OptPrint   [line 360]

void OptPrint( )

Print out command-line options

[ Top ]

Reprint   [line 753]

void Reprint( )

Duplicate the input file without comments and without actions on rules

[ Top ]

SetSize   [line 586]

void SetSize( int $n)

SetSize
  • Access: public

Parameters:

int   $n   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:41:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.