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

Class: PHP_ParserGenerator

Source Location: /ParserGenerator.php

Class PHP_ParserGenerator

Class Overview

The basic home class for the parser generator

Located in /ParserGenerator.php [line 91]



		
				Author(s):
		
		
		API Tags:
Example:  example
Example:  Sample parser file format (PHP_LexerGenerator's parser)
Example:  Sample parser file format PHP code (PHP_LexerGenerator's parser)

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

Properties

Methods

[ Top ]
Constant Summary
DEBUG   Set this to 1 to turn on debugging of Lemon's parsing of grammar files.
MAXRHS  
OPT_DBL  
OPT_FDBL  
OPT_FFLAG  
OPT_FINT  
OPT_FLAG  
OPT_FSTR  
OPT_INT  
OPT_STR  

[ Top ]
Property Summary
mixed   $azDefine  

[ Top ]
Method Summary
static void   ErrorMsg()  
static void   findbreak()  
static void   merge()   Merge in a merge sort for a linked list Inputs:
  • a: A sorted, null-terminated linked list. (May be null).
static void   msort()  
int   handleflags()   Process a flag command line argument.
int   handleswitch()   Process a command line switch which has an argument.
void   main()   ************** From the file "main.c" ***********************************
int   OptInit()  
int   OptNArgs()  
void   OptPrint()   Print out command-line options
void   Reprint()   Duplicate the input file without comments and without actions
void   SetSize()  

[ Top ]
Properties
mixed   $azDefine = array() [line 101]
API Tags:
Access:  public


[ Top ]
Methods
static method ErrorMsg  [line 657]

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

Parameters:
   $filename: 
   $lineno: 
   $format: 


[ Top ]
static method findbreak  [line 640]

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

Parameters:
   $msg: 
   $min: 
   $max: 


[ Top ]
static method merge  [line 560]

  static void merge( $a, $b, $cmp, $offset  )

Merge in a merge sort for a linked list Inputs:

  • a: A sorted, null-terminated linked list. (May be null).

  • b: A sorted, null-terminated linked list. (May be null).
  • cmp: A pointer to the comparison function.
  • offset: Offset in the structure to the "next" field.
Return Value: A pointer to the head of a sorted list containing the elements of both a and b.

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

Parameters:
   $a: 
   $b: 
   $cmp: 
   $offset: 


[ Top ]
static method msort  [line 609]

  static void msort( $list, $next, $cmp  )

Parameters:
   $list: 
   $next: 
   $cmp: 


[ Top ]
handleflags  [line 159]

  int handleflags( int $i, array $argv  )

Process a flag command line argument.

Parameters:
int   $i: 
array   $argv: 


[ Top ]
handleswitch  [line 184]

  int handleswitch( int $i, array $argv, array 2  )

Process a command line switch which has an argument.

Parameters:
array   2: 
int   $i: 
array   $argv: 


[ Top ]
main  [line 408]

  void main( )

************** From the file "main.c" ***********************************



[ Top ]
OptInit  [line 250]

  int OptInit( array $a, array 1  )

Parameters:
array   1:  valid options
array   $a:  arguments


[ Top ]
OptNArgs  [line 317]

  int OptNArgs( $a  )

Parameters:
   $a: 

API Tags:
Return:  number of arguments


[ Top ]
OptPrint  [line 337]

  void OptPrint( )

Print out command-line options



[ Top ]
Reprint  [line 701]

  void Reprint( )

Duplicate the input file without comments and without actions

on rules



[ Top ]
SetSize  [line 539]

  void SetSize( $n  )

Parameters:
   $n: 


[ Top ]
Constants
DEBUG = 0 [line 97]

Set this to 1 to turn on debugging of Lemon's parsing of grammar files.


[ Top ]
MAXRHS = 1000 [line 98]

[ Top ]
OPT_DBL = 3 [line 99]

[ Top ]
OPT_FDBL = 7 [line 100]

[ Top ]
OPT_FFLAG = 5 [line 100]

[ Top ]
OPT_FINT = 6 [line 100]

[ Top ]
OPT_FLAG = 1 [line 99]

[ Top ]
OPT_FSTR = 8 [line 100]

[ Top ]
OPT_INT = 2 [line 99]

[ Top ]
OPT_STR = 4 [line 99]

[ Top ]

Documentation generated on Sun, 02 Jul 2006 09:11:04 -0400 by phpDocumentor 1.3.0