Documentation

FormalGrammar
in package

Main class for interacting with formal grammar

Tags
author

Dodonov A.A.

Table of Contents

$rootRule  : RuleInterface
Root rule
__construct()  : mixed
Method sets rule
validate()  : bool
Method validates string - was it formed according to the defined grammar?

Properties

Methods

validate()

Method validates string - was it formed according to the defined grammar?

public validate(string $stringToValidate) : bool
Parameters
$stringToValidate : string

string to be validated

Return values
bool

result of the validation

Search results