コード例 #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)));
        }
コード例 #2
0
 public PatternMember(Source source, object body)
     : base(source)
 {
     this.body = (PatternExpression)body;
 }
コード例 #3
0
 public LabelPatternExpression(Source source, object label, object body)
     : base(source)
 {
     this.label = (Name) label;
     this.body = (PatternExpression) body;
 }
コード例 #4
0
 public BlockPatternExpression(Source source, object options, object body)
     : base(source)
 {
     this.options = (List <object>)options;
     this.body    = (PatternExpression)body;
 }
コード例 #5
0
 public NotPatternExpression(Source source, object body)
     : base(source)
 {
     this.body = (PatternExpression)body;
 }
コード例 #6
0
 public ParenPatternExpression(Source source, object body)
     : base(source)
 {
     this.body = (PatternExpression) body;
 }
コード例 #7
0
 public LabelPatternExpression(Source source, object label, object body)
     : base(source)
 {
     this.label = (Name)label;
     this.body  = (PatternExpression)body;
 }
コード例 #8
0
 public RepeatPatternExpression(Source source, object body, object reps)
     : base(source)
 {
     this.body = (PatternExpression)body;
     this.reps = (string)reps;
 }
コード例 #9
0
 public BlockPatternExpression(Source source, object options, object body)
     : base(source)
 {
     this.options = (List<object>) options;
     this.body = (PatternExpression) body;
 }
コード例 #10
0
 public AltPatternExpression(Source source, object a, object b)
     : base(source)
 {
     this.a = (PatternExpression) a;
     this.b = (PatternExpression) b;
 }
コード例 #11
0
        public override ParseGraphNode BuildParseGraph(RuntimeState state)
        {
            PatternExpression body = (PatternExpression)this.body;

            return(body.BuildParseGraph(state));
        }
コード例 #12
0
 public RepeatPatternExpression(Source source, object body, object reps)
     : base(source)
 {
     this.body = (PatternExpression) body;
     this.reps = (string) reps;
 }
コード例 #13
0
 public AltPatternExpression(Source source, object a, object b)
     : base(source)
 {
     this.a = (PatternExpression)a;
     this.b = (PatternExpression)b;
 }