GoLang Parle\RLexer::callout

request it (273)
GoLang replacement for PHP's Parle\RLexer::callout [edit | history]



Do you know a GoLang replacement for PHP's Parle\RLexer::callout? Write it!

PHP Parle\RLexer::callout

PHP original manual for Parle\RLexer::callout [ show | php.net ]

Parle\RLexer::callout

(PECL parle >= 0.7.2)

Parle\RLexer::calloutDefine token callback

Description

public void Parle\RLexer::callout ( int $id , callable $callback )

Define a callback to be invoked once lexer encounters a particular token.

Parameters

id

Token id.

callback

Callable to be invoked. The callable doesn't receive any arguments and its return value is ignored.

Return Values

No value is returned.