public ExpressionParser(Source expression, Action<Source> sourceConsumer, ParseErrorConsumer parseErrorConsumer, BaseParser nextParser) : this(expression, null, 0, sourceConsumer, parseErrorConsumer, nextParser) { }
public ReferenceOrDefinitionParser(string identifier, Region region, Action<Source> sourceConsumer, ParseErrorConsumer parseErrorConsumer, BaseParser nextParser) : base(Reference(identifier, region), sourceConsumer, parseErrorConsumer, nextParser) { reference = Reference(identifier, region); }
public BaseParser(Action<Source> sourceConsumer, ParseErrorConsumer parseErrorConsumer, BaseParser nextParser) { if(sourceConsumer == null) { throw new ArgumentNullException("sourceConsumer"); } if(parseErrorConsumer == null) { throw new ArgumentNullException("parseErrorConsumer"); } Consumer = sourceConsumer; ErrorConsumer = parseErrorConsumer; NextParser = nextParser; }
public ExpressionParser(Source expression, Func<Source, Source> @operator, int operatorPriority, Action<Source> sourceConsumer, ParseErrorConsumer parseErrorConsumer, BaseParser nextParser) : base(sourceConsumer, parseErrorConsumer, nextParser) { if(expression == null) { throw new ArgumentNullException("expression"); } this.expression = expression; this.@operator = @operator; this.operatorPriority = operatorPriority; }