public ForeachIn(Token Source, String VariableName, Ast.Node List, Ast.Node Body) : base(Source) { this.VariableName = VariableName; this.List = List; this.Body = Body; }
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; }
public EachXInListWhereNode( Token Source, String VariableName, Ast.Node List, Ast.Node Condition) : base(Source) { this.VariableName = VariableName; this.List = List; this.Condition = Condition; }
public While(Token Source, Ast.Node Condition, Ast.Node Body) : base(Source) { this.Condition = Condition; this.Body = Body; }
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); }
public CompileError(String message, Token at) : base(message + " " + at.ToString()) { }