Exemple #1
0
        public override ParseGraphNode BuildParseGraph(RuntimeState state)
        {
            PatternExpression body = (PatternExpression)this.body;

            string reps = (string)this.reps;

            return(new RepNode(
                       Source,
                       body.BuildParseGraph(state),
                       Reps.ForName(reps)));
        }
Exemple #2
0
 public PatternMember(Source source, object body)
     : base(source)
 {
     this.body = (PatternExpression)body;
 }
 public LabelPatternExpression(Source source, object label, object body)
     : base(source)
 {
     this.label = (Name) label;
     this.body = (PatternExpression) body;
 }
 public BlockPatternExpression(Source source, object options, object body)
     : base(source)
 {
     this.options = (List <object>)options;
     this.body    = (PatternExpression)body;
 }
 public NotPatternExpression(Source source, object body)
     : base(source)
 {
     this.body = (PatternExpression)body;
 }
 public ParenPatternExpression(Source source, object body)
     : base(source)
 {
     this.body = (PatternExpression) body;
 }
Exemple #7
0
 public LabelPatternExpression(Source source, object label, object body)
     : base(source)
 {
     this.label = (Name)label;
     this.body  = (PatternExpression)body;
 }
Exemple #8
0
 public RepeatPatternExpression(Source source, object body, object reps)
     : base(source)
 {
     this.body = (PatternExpression)body;
     this.reps = (string)reps;
 }
 public BlockPatternExpression(Source source, object options, object body)
     : base(source)
 {
     this.options = (List<object>) options;
     this.body = (PatternExpression) body;
 }
 public AltPatternExpression(Source source, object a, object b)
     : base(source)
 {
     this.a = (PatternExpression) a;
     this.b = (PatternExpression) b;
 }
        public override ParseGraphNode BuildParseGraph(RuntimeState state)
        {
            PatternExpression body = (PatternExpression)this.body;

            return(body.BuildParseGraph(state));
        }
 public RepeatPatternExpression(Source source, object body, object reps)
     : base(source)
 {
     this.body = (PatternExpression) body;
     this.reps = (string) reps;
 }
 public AltPatternExpression(Source source, object a, object b)
     : base(source)
 {
     this.a = (PatternExpression)a;
     this.b = (PatternExpression)b;
 }