Lexer

lexer

Kind: global class Properties

Name

Type

Description

EOF

Integer

all_tokens

Boolean

defines if all tokens must be retrieved (used by token_get_all only)

comment_tokens

Boolean

extracts comments tokens

mode_eval

Boolean

enables the evald mode (ignore opening tags)

asp_tags

Boolean

disables by default asp tags mode

short_tags

Boolean

enables by default short tags mode

keywords

Object

List of php keyword

castKeywords

Object

List of php keywords for type casting

lexer.setInput()

Initialize the lexer with the specified input

Kind: instance method of lexer

lexer.input()

consumes and returns one char from the input

Kind: instance method of lexer

lexer.unput()

revert eating specified size

Kind: instance method of lexer

lexer.getState()

Gets the current state

Kind: instance method of lexer

lexer.setState()

Sets the current lexer state

Kind: instance method of lexer

Last updated