예제 #1
0
    //Return true if the inputted code is correct and false otherwise
    public bool Correct()
    {
        inputtedText = input.text;
        string noSpaces = "";

        //Remove all spaces
        noSpaces = Regex.Replace(inputtedText, @"\s+", string.Empty);
        //Only run if there is something to run
        if (noSpaces.Equals(""))
        {
            evaluation.AddAnswer("\n" + "EMPTY" + dashedLine);
            return(false);
        }
        return(Run());
    }