Пример #1
0
 public Sequence(IReadOnlyList <SequenceStep> steps, InterfaceMethod interfaceMethod)
 {
     this.Steps           = steps;
     this.InterfaceMethod = interfaceMethod;
 }
Пример #2
0
 public LexemeIdentifier(String id, InterfaceMethod interfaceMethod)
 {
     this.Identifier      = id;
     this.InterfaceMethod = interfaceMethod;
 }
Пример #3
0
 public ReferencedRule(String identifier, INodeType ruleNodeType, InterfaceMethod interfaceMethod)
 {
     this.Identifier      = identifier;
     this.RuleNodeType    = ruleNodeType ?? new SingleNodeType("UNRESOLVED_RULE");
     this.InterfaceMethod = interfaceMethod;
 }
Пример #4
0
 public Series(IParseFunction repeatedToken, IParseFunction delimiterToken, InterfaceMethod interfaceMethod)
 {
     this.RepeatedToken   = repeatedToken;
     this.DelimiterToken  = delimiterToken;
     this.InterfaceMethod = interfaceMethod;
 }
Пример #5
0
 public Repetition(IParseFunction innerParseFunction, Cardinality cardinality, InterfaceMethod interfaceMethod)
 {
     this.InnerParseFunction = innerParseFunction;
     this.Cardinality        = cardinality;
     this.InterfaceMethod    = interfaceMethod;
 }
Пример #6
0
 public LiteralString(String text, InterfaceMethod interfaceMethod, StringComparison stringComparison)
 {
     this.Text             = text;
     this.InterfaceMethod  = interfaceMethod;
     this.StringComparison = stringComparison;
 }
Пример #7
0
 public SelectionStep(IParseFunction parseFunction, InterfaceMethod interfaceMethod)
 {
     this.Function        = parseFunction;
     this.InterfaceMethod = interfaceMethod;
 }
Пример #8
0
 public static ParsnipModel AddingInterfaceMethod(this ParsnipModel model, InterfaceMethod method) => new ParsnipModel(model.Rules, model.InterfaceMethods.Appending(method), model.LexemeIdentifiers);
Пример #9
0
 public Intrinsic(IntrinsicType type, InterfaceMethod interfaceMethod)
 {
     this.Type            = type;
     this.InterfaceMethod = interfaceMethod;
 }