enableTokenRegistration example


    abstract public function parse();
    
    /** * Returns parsed tokens from the source code * * @return Token[] */
    public function tokenize()
    {
        $this->scanner->enableTokenRegistration();
        $this->parse();
        return $this->scanner->getTokens();
    }
    
    /** * Returns the scanner associated with the parser * * @return Scanner */
    public function getScanner()
    {
        
Home | Imprint | This part of the site doesn't use cookies.