PHP Class QuackCompiler\Parser\Parser

Mostra file Open project: quack/quack Class Usage Examples

Public Properties

Property Type Description
$infix_parselets
$input
$lookahead
$prefix_parselets
$scope_level

Public Methods

Method Description
__construct ( Tokenizer $input )
closeScope ( )
consume ( )
consumeAndFetch ( )
consumeIf ( $symbol )
dedent ( )
indent ( )
infixParseletForToken ( Token $token )
is ( $tag )
match ( $tag )
openScope ( )
opt ( $tag )
position ( )
prefixParseletForToken ( Token $token )
resolveScope ( $pointer )

Private Methods

Method Description
infixLeft ( $tag, $precedence )
infixRight ( $tag, $precedence )
postfix ( $tag, $precedence )
prefix ( $tag, $precedence )
register ( $tag, $parselet )
registerParselets ( )

Method Details

__construct() public method

public __construct ( Tokenizer $input )
$input QuackCompiler\Lexer\Tokenizer

closeScope() public method

public closeScope ( )

consume() public method

public consume ( )

consumeAndFetch() public method

public consumeAndFetch ( )

consumeIf() public method

public consumeIf ( $symbol )

dedent() public method

public dedent ( )

indent() public method

public indent ( )

infixParseletForToken() public method

public infixParseletForToken ( Token $token )
$token QuackCompiler\Lexer\Token

is() public method

public is ( $tag )

match() public method

public match ( $tag )

openScope() public method

public openScope ( )

opt() public method

public opt ( $tag )

position() public method

public position ( )

prefixParseletForToken() public method

public prefixParseletForToken ( Token $token )
$token QuackCompiler\Lexer\Token

resolveScope() public method

public resolveScope ( $pointer )

Property Details

$infix_parselets public_oe property

public $infix_parselets

$input public_oe property

public $input

$lookahead public_oe property

public $lookahead

$prefix_parselets public_oe property

public $prefix_parselets

$scope_level public_oe property

public $scope_level