[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/pkg/vtiger/extensions/Webservices/third-party/ -> ParserGenerator.php (summary)

PHP_ParserGenerator, a php 5 parser generator. This is a direct port of the Lemon parser generator, found at {@link http://www.hwaci.com/sw/lemon/}

Author: Gregory Beaver <[email protected]>
Copyright: 2006 Gregory Beaver
License: http://www.php.net/license/3_01.txt PHP License 3.01
Version: CVS: $Id$
File Size: 734 lines (25 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHP_ParserGenerator:: (15 methods):
  handleflags()
  handleswitch()
  OptInit()
  argindex()
  OptArg()
  OptNArgs()
  OptPrint()
  handle_D_option()
  main()
  SetSize()
  merge()
  msort()
  findbreak()
  ErrorMsg()
  Reprint()


Class: PHP_ParserGenerator  - X-Ref

The basic home class for the parser generator

handleflags($i, $argv)   X-Ref
Process a flag command line argument.

param: int
param: array
return: int

handleswitch($i, $argv)   X-Ref
Process a command line switch which has an argument.

param: int
param: array
param: array
return: int

OptInit($a)   X-Ref

param: array arguments
param: array valid options
return: int

argindex($n, $a)   X-Ref
Return the index of the N-th non-switch argument.  Return -1
if N is out of range.

param: int
return: int

OptArg($i, $a)   X-Ref
Return the value of the non-option argument as indexed by $i

param: int
param: array the value of $argv
return: 0|string

OptNArgs($a)   X-Ref

return: int number of arguments

OptPrint()   X-Ref
Print out command-line options


handle_D_option($z)   X-Ref
This routine is called with the argument to each -D command-line option.
Add the macro defined to the azDefine array.

param: string

main()   X-Ref
No description

SetSize($n)   X-Ref
No description

merge($a, $b, $cmp, $offset)   X-Ref
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.

msort($list, $next, $cmp)   X-Ref
No description

findbreak($msg, $min, $max)   X-Ref
No description

ErrorMsg($filename, $lineno, $format)   X-Ref
No description

Reprint()   X-Ref
Duplicate the input file without comments and without actions
on rules




Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1