/// <summary> /// Return wich Destination is the parameter /// </summary> /// <param name="s">To parse</param> /// <returns>The actual destination</returns> public SelfLanguageDestination IsCommand(string s) { if (Ram.Match(s).Success) { return(SelfLanguageDestination.Ram); } else if (Stack.Match(s).Success) { return(SelfLanguageDestination.Stack); } else if (StackMultiChar.Match(s).Success) { return(SelfLanguageDestination.StackMultiChar); } else if (Number.Match(s).Success) { return(SelfLanguageDestination.Number); } else if (Here.Match(s).Success) { return(SelfLanguageDestination.Here); } else if (Compare.Match(s).Success) { return(SelfLanguageDestination.Compare); } else { return(SelfLanguageDestination.None); } }