class Parser extends Object

Latte parser.

Constants

internal RE_STRING

internal N_PREFIX

internal CONTEXT_HTML_TEXT

internal CONTEXT_CDATA

internal CONTEXT_HTML_TAG

internal CONTEXT_HTML_ATTRIBUTE

internal CONTEXT_RAW

internal CONTEXT_HTML_COMMENT

internal CONTEXT_MACRO

Properties

string $defaultSyntax
bool $shortNoEscape
array $syntaxes

Methods

Token[]
parse($input)

Process all {macros} and .

setContentType($type)

No description

setContext($context, $quote = NULL)

No description

setSyntax($type)

Changes macro tag delimiters.

setDelimiters($left, $right)

Changes macro tag delimiters.

array
parseMacroTag($tag)

Parses macro tag to name, arguments a modifiers parts.

getLine()

No description

filter(Token $token)

Process low-level macros.

Details

at line 79
Token[] parse($input)

Process all {macros} and .

Parameters

$input

Return Value

Token[]

at line 326
Parser setContentType($type)

No description

Parameters

$type

Return Value

Parser

at line 344
Parser setContext($context, $quote = NULL)

No description

Parameters

$context
$quote

Return Value

Parser

at line 356
Parser setSyntax($type)

Changes macro tag delimiters.

Parameters

$type

Return Value

Parser

at line 374
Parser setDelimiters($left, $right)

Changes macro tag delimiters.

Parameters

$left
$right

Return Value

Parser

at line 387
array parseMacroTag($tag)

internal  
 

Parses macro tag to name, arguments a modifiers parts.

Parameters

$tag

Return Value

array

at line 425
getLine()

No description

at line 436
protected filter(Token $token)

Process low-level macros.

Parameters

Token $token