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

Class: Parser

Source Location: /PhpDocumentor-1.2.0beta2/phpDocumentor/Parser.inc

Class Overview

Publisher
   |
   --Parser



Author(s):

Version:

  • $Id: Parser.inc,v 1.174 2003/01/01 07:23:11 CelloG Exp $

Methods


Child classes:

ppageParser
Global package page parser
parserDescParser
Parses a DocBlock description to retrieve abstract representations of
phpDocumentorTParser
XMLPackagePageParser
PDFParser

Inherited Variables

Inherited Methods

Class: Publisher

Publisher::publishEvent()
Publisher::subscribe()
Adds a subscriber to the $subscriber array().

Class Details

[line 255]


[ Top ]


Method Detail

Parser (Constructor)   [line 387]

Parser Parser( )


[ Top ]

checkEventPop   [line 2272]

mixed checkEventPop( mixed $word, mixed $pevent)

this function checks whether parameter $word is a token for popping the current event off of the Event Stack.
  • Return: returns false, or the event number popped off of the stack

Overridden in child classes as:

phpDocumentorTParser::checkEventPop()
this function checks whether parameter $word is a token for popping the current event off of the Event Stack.

[ Top ]

checkEventPush   [line 2250]

mixed checkEventPush( mixed $word, mixed $pevent)

this function checks whether parameter $word is a token for pushing a new event onto the Event Stack.
  • Return: returns false, or the event number

Overridden in child classes as:

phpDocumentorTParser::checkEventPush()
this function checks whether parameter $word is a token for pushing a new event onto the Event Stack.

[ Top ]

configWordParser   [line 2615]

void configWordParser( $value $e)

tell the parser's WordParser $wp to set up tokens to parse words by.

tokens are word separators. In English, a space or punctuation are examples of tokens. In PHP, a token can be a ;, a parenthesis, or even the word "function"


Overridden in child classes as:

phpDocumentorTParser::configWordParser()

Parameters:

$value   $e     integer an event number

[ Top ]

getParserEventName   [line 2626]

void getParserEventName( $value $value)

Debugging function, takes an event number and attempts to return its name

Overridden in child classes as:

parserDescParser::getParserEventName()
XMLPackagePageParser::getParserEventName()
PDFParser::getParserEventName()

Parameters:

$value   $value     integer an event number

[ Top ]

parse   [line 409]

bool parse( string &$parse_data, string $path, [int $base = 0], [mixed $packages = false])

Parse a new file
  • Staticvar: integer $endrecur: used for recursion limiting if a handler for an event is not found

Overridden in child classes as:

ppageParser::parse()
Parse a new file
parserDescParser::parse()
Parse a long or short description for tags
phpDocumentorTParser::parse()
Parse a new file
XMLPackagePageParser::parse()
Parse a new file
PDFParser::parse()
Parse a new file

Parameters:

string   $parse_data     
string   $path     
int   $base     number of directories to drop off the bottom when creating names using path

[ Top ]

setupStates   [line 2288]

void setupStates( )

setup the parser tokens, and the pushEvent/popEvent arrays

Overridden in child classes as:

ppageParser::setupStates()
parserDescParser::setupStates()
setup the parser tokens, and the pushEvent/popEvent arrays
phpDocumentorTParser::setupStates()
setup the parser tokens, and the pushEvent/popEvent arrays
XMLPackagePageParser::setupStates()
setup the parser tokens, and the pushEvent/popEvent arrays
PDFParser::setupStates()
setup the parser tokens, and the pushEvent/popEvent arrays

[ Top ]


Documentation generated on Fri, 30 Apr 2004 22:10:17 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.