public static NeuAssignmentExpression ParseAssignExpression(
        this NeuParser parser,
        ISourceLocation start,
        Node lhs,
        NeuAssignOperator op,
        Node rhs) {

        return new NeuAssignmentExpression(
            children: new Node[] { lhs, op, rhs },
            start: start,
            end: parser.Tokenizer.GetLocation());         
    }
예제 #2
0
    public static int GetPrecedence(
        this NeuAssignOperator assignOp)
    {
        switch (assignOp.OperatorType)
        {
        case NeuAssignOperatorType.Assign:

            return(0);

        ///

        default:

            throw new Exception();
        }
    }