php8.5
Home/ Manual/ parle / parser/ Parle\Parser::consume

Parle\Parser::consume

PHP function Edit on GitHub ✎

(PECL parle >= 0.5.1)

Consume the data for processing

Description

Parle\Parser::consume(string $data, Parle\Lexer $lexer): void

Consume the data for parsing.

Parameters

data

Data to be parsed.

lexer

A lexer object containing the lexing rules prepared for the particular grammar.

Return Values

Void

Source: reference/parle/parle/parser/consume.xml · from the official PHP manual (php/doc-en)