public function parse(Scope $head, Scope $set, Lexer $lexer)
    {
        switch(true) {
            case ($lexer->isNextToken(Lexer::T_DOT)) :
                $this->convertDotToRange($head,$set,$lexer);
            break;
            case ($lexer->isNextToken(Lexer::T_SHORT_D)) :
            case ($lexer->isNextToken(Lexer::T_SHORT_NOT_D)) :
                $this->convertDigitToRange($head,$set,$lexer);
            break;
            case ($lexer->isNextToken(Lexer::T_SHORT_W)) :
            case ($lexer->isNextToken(Lexer::T_SHORT_NOT_W)) :
                $this->convertWordToRange($head,$set,$lexer);
            break;
            case ($lexer->isNextToken(Lexer::T_SHORT_S)) :
            case ($lexer->isNextToken(Lexer::T_SHORT_NOT_S)) :
                $this->convertWhiteSpaceToRange($head,$set,$lexer);
            break;
            default :
                //do nothing no token matches found
        }
        
    }
public function parse(Scope $head, Scope $set, Lexer $lexer)
    {
        switch(true) {
            case ($lexer->isNextToken(Lexer::T_DOT)) :
                $this->convertDotToRange($head,$set,$lexer);
            break;
            case ($lexer->isNextToken(Lexer::T_SHORT_D)) :
            case ($lexer->isNextToken(Lexer::T_SHORT_NOT_D)) :
                $this->convertDigitToRange($head,$set,$lexer);
            break;
            case ($lexer->isNextToken(Lexer::T_SHORT_W)) :
            case ($lexer->isNextToken(Lexer::T_SHORT_NOT_W)) :
                $this->convertWordToRange($head,$set,$lexer);
            break;
            case ($lexer->isNextToken(Lexer::T_SHORT_S)) :
            case ($lexer->isNextToken(Lexer::T_SHORT_NOT_S)) :
                $this->convertWhiteSpaceToRange($head,$set,$lexer);
            break;
            default :
                //do nothing no token matches found
        }
        
    }
public function parse ( Scope $ head , Scope $ set , Lexer $ lexer ) { switch ( true ) { case ( $ lexer -> isNextToken ( Lexer :: T_DOT ) ) : $ this -> convertDotToRange ( $ head , $ set , $ lexer ) ; break ; case ( $ lexer -> isNextToken ( Lexer :: T_SHORT_D ) ) : case ( $ lexer -> isNextToken ( Lexer :: T_SHORT_NOT_D ) ) : $ this -> convertDigitToRange ( $ head , $ set , $ lexer ) ; break ; case ( $ lexer -> isNextToken ( Lexer :: T_SHORT_W ) ) : case ( $ lexer -> isNextToken ( Lexer :: T_SHORT_NOT_W ) ) : $ this -> convertWordToRange ( $ head , $ set , $ lexer ) ; break ; case ( $ lexer -> isNextToken ( Lexer :: T_SHORT_S ) ) : case ( $ lexer -> isNextToken ( Lexer :: T_SHORT_NOT_S ) ) : $ this -> convertWhiteSpaceToRange ( $ head , $ set , $ lexer ) ; break ; default : //do nothing no token matches found } }
Parse the current token for Short Codes `.` `\d`  `\w`

@access public
@return ReverseRegex\Generator\Scope a new head
@param ReverseRegex\Generator\Scope $head
@param ReverseRegex\Generator\Scope $set
@param ReverseRegex\Lexer $lexer
Parse the current token for Short Codes . \ d \ w