编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Parle\RParser::trace
  • Parle\Stack »
  • PHP Manual
  • Parle\RParser
  • Validate input

Parle\RParser::validate

(PECL parle >= 0.7.0)

Parle\RParser::validate — Validate input

说明

public Parle\RParser::validate ( string $data , Parle\RLexer $lexer ) : bool

Validate an input string. The string is parsed internally, thus this method is useful for the quick input validation.

参数

data

String to be validated.

lexer

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

返回值

Returns boolean whitnessing whether the input chimes or not with the defined rules.

相关文章
php parle the parle parserexception classphp parle the parle rparser classphp locale gets the primary language for the input localephp parle parser validate inputphp parle rparser process next parser rulephp parle rparser finalize the grammar rulesphp parle rparser consume the data for processingphp parle rparser dump the grammarphp parle rparser retrieve the error informationphp parle rparser declare a token with left associativityphp parle rparser declare a token with no associativityphp parle rparser declare a precedence rulephp parle rparser add a grammar rulephp parle rparser reset parser statephp parle rparser declare a token with right associativityphp parle rparser retrieve a matching part of a rulephp parle rparser declare a tokenphp parle rparser get token idphp parle rparser trace the parser operationphp parle rparser validate input
关注编程学问公众号
编程学问网 湘ICP备20001732号