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