lib/Aegis/Parser.php
public function prepare(TokenStream $stream) :void
    {
        $this->root = $this->scope = new RootNode();
        $this->stream = $stream;
        $this->lastTokenIndex = max(0, count($this->stream->getTokens()) - 1);
        $this->cursor = 0;
    }
public function prepare(TokenStream $stream) :void
    {
        $this->root = $this->scope = new RootNode();
        $this->stream = $stream;
        $this->lastTokenIndex = max(0, count($this->stream->getTokens()) - 1);
        $this->cursor = 0;
    }
public function prepare ( TokenStream $ stream ) : void { $ this -> root = $ this -> scope = new RootNode ( ) ; $ this -> stream = $ stream ; $ this -> lastTokenIndex = max ( 0 , count ( $ this -> stream -> getTokens ( ) ) - 1 ) ; $ this -> cursor = 0 ; }
Prepares the parser for parsing

@param TokenStream $stream
@return void
Prepares the parser for parsing