コード例 #1
0
ファイル: ArgumentException.cs プロジェクト: liole/Assembler
 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
ファイル: FormatException.cs プロジェクト: liole/Assembler
 public FormatException(Lexer.CaptureInfo capture = null) :
     base(capture)
 {
 }
コード例 #5
0
 public ProcedureDoesNotReturn(string procName, Lexer.CaptureInfo capture = null) :
     base(capture)
 {
     ProcedureName = procName;
 }
コード例 #6
0
 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
ファイル: MemoryName.cs プロジェクト: liole/Assembler
 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
ファイル: LineException.cs プロジェクト: liole/Assembler
 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;
 }