/// <summary>
        /// Prepares the string to compile and sends it to the scanner.
        /// </summary>
        public void SendToCompile()
        {
            textOnConsole.Text = "";
            string errorMessage = CompilingHelper.SendToCompilePlainCode(programText.Text);

            textOnConsole.Text = errorMessage;
        }
Beispiel #2
0
        /// <summary>
        /// Prepares the string to compile and sends it to the scanner.
        /// </summary>
        public void SendToCompile()
        {
            textOnConsole.Text = "";
            string errorMessage = CompilingHelper.SendToCompile(stringToCompile, blocksOnView);

            textOnConsole.Text = errorMessage;
        }
Beispiel #3
0
 /// <summary>
 /// Removes the text from compiling string.
 /// </summary>
 /// <param name="index">Index from where we're going to remove the text.</param>
 public void RemoveTextFromCompilingString(int index)
 {
     stringToCompile = CompilingHelper.RemoveTextFromCompilingString(
         stringToCompile,
         blocksOnView,
         index
         );
 }
Beispiel #4
0
 /// <summary>
 /// Adds the text to compiling string.
 /// </summary>
 /// <param name="textToAdd">Text to add.</param>
 public void AddTextToCompilingString(string textToAdd)
 {
     stringToCompile = CompilingHelper.AddTextToCompilingString(
         stringToCompile,
         textToAdd,
         blocksOnView,
         lastSelected
         );
 }