コード例 #1
0
ファイル: Bot.cs プロジェクト: RobinJSanders/CodeBot
 public Bot(Levels.ParentLevel form)
 {
     pbxBot         = new System.Windows.Forms.PictureBox();
     parentForm     = form;
     pbxBot.Visible = true;
     pbxBot.Name    = "pbxBot";
     pbxBot.Size    = new System.Drawing.Size(30, 30);
 }
コード例 #2
0
ファイル: Reader.cs プロジェクト: RobinJSanders/CodeBot
 public Reader(string input, Props.Bot bot, Levels.ParentLevel form)
 {
     _inputText = input + "\n\n";
     this.bot   = bot;
     this.form  = form;
     _lineNo    = 0;
     variables.Clear();
 }
コード例 #3
0
 public Interpreter(string input, Props.Bot bot, Levels.ParentLevel form) : base(input, bot, form)
 {
     reset();
     while (_postText != "")
     {
         nextLine();
         processLine(_currentLine);
     }
 }
コード例 #4
0
ファイル: ErrorChecker.cs プロジェクト: RobinJSanders/CodeBot
 public ErrorChecker(string input, Props.Bot bot, Levels.ParentLevel form) : base(input, bot, form)
 {
     HasError = false;
     reset();
     do
     {
         findError();
         nextLine();
         _preIndex += _currentLine.Length + 1;
         if (_postText != "")
         {
             _preText = _inputText.Substring(0, _preIndex);
         }
     }while (_postText != "");
 }