QuackCompiler\Parser\Parser::__construct PHP Method

__construct() public method

public __construct ( Tokenizer $input )
$input QuackCompiler\Lexer\Tokenizer
    public function __construct(Tokenizer $input)
    {
        $this->registerParselets();
        $this->input = $input;
        $this->consume();
    }

Usage Example

Example #1
0
 public function __construct(Tokenizer $input)
 {
     parent::__construct($input);
     $this->grammar = new Grammar($this);
 }