Пример #1
0
 public ArgumentException(string commandName,
                          Lexer.ArgumentType arg1Type, Lexer.ArgumentType arg2Type = Lexer.ArgumentType.None,
                          Lexer.CaptureInfo capture = null) :
     base(commandName, capture)
 {
     Argument1Type = arg1Type;
     Argument2Type = arg2Type;
 }
Пример #2
0
 public TooManyRegistersException(int numberOfRegisters, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     NumberOfRegisters = numberOfRegisters;
 }
Пример #3
0
 public ProcedureAlreadyEndedException(string procName, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     ProcedureName = procName;
 }
Пример #4
0
 public FormatException(Lexer.CaptureInfo capture = null) :
     base(capture)
 {
 }
Пример #5
0
 public ProcedureDoesNotReturn(string procName, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     ProcedureName = procName;
 }
 public RegisterCombinationNotSupportedException(string regCombination, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     RegisterCombination = regCombination;
 }
Пример #7
0
 public ProcedureRedeclaredException(string procName, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     ProcedureName = procName;
 }
Пример #8
0
        }                                                      // if not declared need to point to it

        public Memory(Lexer.CaptureInfo capture = null, string name = null)
        {
            Capture = capture;
            Name    = name != null?name.ToLower() : null;
        }
Пример #9
0
 public NotACommandException(string commandName, Lexer.CaptureInfo capture = null) :
     base(commandName, capture)
 {
 }
Пример #10
0
 public MemoryIndirect(string name, IEnumerable <string> registers, IEnumerable <Int16?> numbers, Lexer.CaptureInfo capture = null) :
     base(capture, name)
 {
     Registers = registers.Select(r => r.ToUpper()).OrderBy(r => r).ToArray();
     Numbers   = numbers.ToArray();
     CheckRegisters();
 }
Пример #11
0
 public VariableRedeclaredException(string varName, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     VariableName = varName;
 }
Пример #12
0
 public ProcedureNotDeclaredException(string procName, string commandName, Lexer.CaptureInfo capture = null) :
     base(commandName, capture)
 {
     ProcedureName = procName;
 }
Пример #13
0
 public MemoryName(string name, Lexer.CaptureInfo capture = null) :
     base(capture, name)
 {
 }
Пример #14
0
 public VariableNotDeclaredException(string varName, string commandName, Lexer.CaptureInfo capture = null) :
     base(commandName, capture)
 {
     VariableName = varName;
 }
Пример #15
0
 public LineException(Lexer.CaptureInfo capture = null)
 {
     CaptureInfo = capture;
 }
Пример #16
0
 public ArgumentNumberException(string commandName, int numberOfArguments, Lexer.CaptureInfo capture = null) :
     base(commandName, capture)
 {
     NumberOfArguments = numberOfArguments;
 }
Пример #17
0
 public LoopTooFarException(string labelName, Lexer.CaptureInfo capture = null) :
     base("LOOP", capture)
 {
     LabelName = labelName;
 }
Пример #18
0
 public CommandException(string commandName, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     CommandName = commandName;
 }
Пример #19
0
 public ArgumentSizeException(string commandName, Lexer.CaptureInfo capture = null) :
     base(commandName, capture)
 {
 }
Пример #20
0
 public LabelNotDeclaredException(string labelName, string commandName, Lexer.CaptureInfo capture = null) :
     base(commandName, capture)
 {
     LabelName = labelName;
 }
Пример #21
0
 public OverflowException(string value, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     Value = value;
 }
Пример #22
0
 public LabelRedeclaredException(string labelName, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     LabelName = labelName;
 }