32 $this->inputLength = strlen(
$input );
42 if ( $this->pos >= $this->inputLength ) {
43 $this->
error(
"Expected \"$s\" but got end of string" );
45 if ( substr_compare( $this->input,
$s, $this->pos, strlen(
$s ) ) === 0 ) {
46 $this->pos += strlen(
$s );
48 $this->
error(
"Expected \"$s\"" );
56 $this->pos += strspn( $this->input,
" \t", $this->pos );
66 protected function error( $message ) {
78 $digits = substr( $this->input, $this->pos, $numDigits );
79 if ( strlen( $digits ) !== $numDigits || !preg_match(
'/^[0-9]*$/', $digits ) ) {
80 $this->
error(
"expected $numDigits digits" );
82 $this->pos += $numDigits;
93 if ( $this->pos !== $this->inputLength ) {
94 $this->
error(
"trailing characters" );
foreach( $mmfl['setupFiles'] as $fileName) if( $queue) if(empty( $mmfl['quiet'])) $s