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()); }
public static int GetPrecedence( this NeuAssignOperator assignOp) { switch (assignOp.OperatorType) { case NeuAssignOperatorType.Assign: return(0); /// default: throw new Exception(); } }