original_string: private function match($toks){
  
  		// The match is confirmed, add the match length to `this::pos`,
  		// and consume any extra white-space characters (' ' || '\n')
  		// which come after that. The reason for this is that LeSS's
  		// grammar is mostly white-space insensitive.
  		//
  
  		foreach($toks as $tok){
  
  			$char = $tok[0];
  
  			if( $char === '/' ){
  				$match = $this->MatchReg($tok);
  
  				if( $match ){
  					return count($match) === 1 ? $match[0] : $match;
  				}
  
  			}elseif( $char === '#' ){
  				$match = $this->MatchChar($tok[1]);
  
  			}else{
  				// Non-terminal, match using a function call
  				$match = $this->$tok();
  
  			}
  
  			if( $match ){
  				return $match;
  			}
  		}
  	}
code: private function match($toks){
  
  		// The match is confirmed, add the match length to `this::pos`,
  		// and consume any extra white-space characters (' ' || '\n')
  		// which come after that. The reason for this is that LeSS's
  		// grammar is mostly white-space insensitive.
  		//
  
  		foreach($toks as $tok){
  
  			$char = $tok[0];
  
  			if( $char === '/' ){
  				$match = $this->MatchReg($tok);
  
  				if( $match ){
  					return count($match) === 1 ? $match[0] : $match;
  				}
  
  			}elseif( $char === '#' ){
  				$match = $this->MatchChar($tok[1]);
  
  			}else{
  				// Non-terminal, match using a function call
  				$match = $this->$tok();
  
  			}
  
  			if( $match ){
  				return $match;
  			}
  		}
  	}
code_tokens: private function match ( $ toks ) { // The match is confirmed, add the match length to `this::pos`, // and consume any extra white-space characters (' ' || '\n') // which come after that. The reason for this is that LeSS's // grammar is mostly white-space insensitive. // foreach ( $ toks as $ tok ) { $ char = $ tok [ 0 ] ; if ( $ char === '/' ) { $ match = $ this -> MatchReg ( $ tok ) ; if ( $ match ) { return count ( $ match ) === 1 ? $ match [ 0 ] : $ match ; } } elseif ( $ char === '#' ) { $ match = $ this -> MatchChar ( $ tok [ 1 ] ) ; } else { // Non-terminal, match using a function call $ match = $ this -> $ tok ( ) ; } if ( $ match ) { return $ match ; } } }
docstring: Parse from a token, regexp or string, and move forward if match
  
  @param array $toks
  @return array
docstring_tokens: Parse from a token regexp or string and move forward if match