Exemplo n.º 1
0
 public ForeachIn(Token Source, String VariableName, Ast.Node List, Ast.Node Body)
     : base(Source)
 {
     this.VariableName = VariableName;
     this.List = List;
     this.Body = Body;
 }
Exemplo n.º 2
0
 public ForeachFrom(Token Source, String VariableName, Ast.Node Min, Ast.Node Max, Ast.Node Body)
     : base(Source)
 {
     this.VariableName = VariableName;
     this.Min = Min;
     this.Max = Max;
     this.Body = Body;
 }
Exemplo n.º 3
0
            public EachXInListWhereNode(
				Token Source, 
				String VariableName, 
				Ast.Node List, 
				Ast.Node Condition)
                : base(Source)
            {
                this.VariableName = VariableName;
                this.List = List;
                this.Condition = Condition;
            }
Exemplo n.º 4
0
 public While(Token Source, Ast.Node Condition, Ast.Node Body)
     : base(Source)
 {
     this.Condition = Condition;
     this.Body = Body;
 }
Exemplo n.º 5
0
 internal static void ThrowConversionError(Type SourceType, Type DestinationType, Token Source)
 {
     if (SourceType == null) throw new InvalidOperationException("Conversion Error : SourceType is null");
     if (DestinationType == null) throw new InvalidOperationException("Conversion Error : DestinationType is null");
     throw new CompileError("Incompatible types: Unable to convert from " + SourceType.Name + " to " +
         DestinationType.Name + ".", Source);
 }
Exemplo n.º 6
0
 public CompileError(String message, Token at)
     : base(message + " " + at.ToString())
 {
 }