QuackCompiler\Parser\Parser::registerParselets PHP Method

registerParselets() private method

private registerParselets ( )
    private function registerParselets()
    {
        $this->register('&(', new PartialFuncParselet());
        $this->register(Tag::T_INTEGER, new LiteralParselet());
        $this->register(Tag::T_DOUBLE, new LiteralParselet());
        $this->register(Tag::T_STRING, new LiteralParselet());
        $this->register(Tag::T_REGEX, new LiteralParselet());
        $this->register(Tag::T_IDENT, new NameParselet());
        $this->register(Tag::T_THEN, new TernaryParselet());
        $this->register('..', new RangeParselet());
        $this->register('(', new GroupParselet());
        $this->register('(', new CallParselet());
        $this->register('!', new CallParselet());
        $this->register('{', new ArrayParselet());
        $this->register('{', new AccessParselet());
        $this->register('@{', new ObjectParselet());
        $this->register('${', new MapParselet());
        $this->register('&{', new BlockParselet());
        $this->register('&', new LambdaParselet());
        $this->register('@', new NewParselet());
        $this->register('.', new MemberAccessParselet());
        $this->register('?.', new MemberAccessParselet());
        $this->register(Tag::T_TRUE, new LiteralParselet());
        $this->register(Tag::T_FALSE, new LiteralParselet());
        $this->register(Tag::T_NIL, new LiteralParselet());
        $this->register(Tag::T_ATOM, new LiteralParselet());
        $this->register(Tag::T_WHEN, new WhenParselet());
        $this->register(Tag::T_WHERE, new WhereParselet());
        $this->prefix('+', Precedence::PREFIX);
        $this->prefix('-', Precedence::PREFIX);
        $this->prefix('^^', Precedence::PREFIX);
        $this->prefix('*', Precedence::PREFIX);
        $this->prefix('~', Precedence::PREFIX);
        $this->prefix(Tag::T_NOT, Precedence::PREFIX);
        $this->infixLeft('+', Precedence::ADDITIVE);
        $this->infixLeft('-', Precedence::ADDITIVE);
        $this->infixLeft('*', Precedence::MULTIPLICATIVE);
        $this->infixLeft('/', Precedence::MULTIPLICATIVE);
        $this->infixLeft(Tag::T_MOD, Precedence::MULTIPLICATIVE);
        $this->infixLeft(Tag::T_AND, Precedence::LOGICAL_AND);
        $this->infixLeft(Tag::T_OR, Precedence::LOGICAL_OR);
        $this->infixLeft(Tag::T_XOR, Precedence::LOGICAL_XOR);
        $this->infixLeft('|', Precedence::BITWISE_OR);
        $this->infixLeft('&', Precedence::BITWISE_AND_OR_REF);
        $this->infixLeft('^', Precedence::BITWISE_XOR);
        $this->infixLeft('<<', Precedence::BITWISE_SHIFT);
        $this->infixLeft('>>', Precedence::BITWISE_SHIFT);
        $this->infixLeft('=', Precedence::VALUE_COMPARATOR);
        $this->infixLeft('=~', Precedence::VALUE_COMPARATOR);
        $this->infixLeft('<>', Precedence::VALUE_COMPARATOR);
        $this->infixLeft('<=', Precedence::SIZE_COMPARATOR);
        $this->infixLeft('<', Precedence::SIZE_COMPARATOR);
        $this->infixLeft('>=', Precedence::SIZE_COMPARATOR);
        $this->infixLeft('>', Precedence::SIZE_COMPARATOR);
        $this->infixLeft('|>', Precedence::PIPELINE);
        $this->infixLeft('??', Precedence::COALESCENCE);
        $this->infixRight('**', Precedence::EXPONENT);
        $this->infixRight(':-', Precedence::ASSIGNMENT);
    }