I am currently working on a basic Ti-basic compiler, made in C#
It recognizes basic commands like ":Pause" and ":Output", but I would like it to recognize
:Output(1,1, "good ol' ti-basic"
Is it possible to recognize text, then treat it like a function e.g. (int y, int x, string text) ?
So Let's say I have the following string:
string str1 = :Output(1,1, "good ol' ti-basic"
How would I recognize the "Output" part, then divide it in the 3 parts int x, int y and string text?
Something like
// if(str1.contains"Output")
{
// divide into int x, int y and string text
// then Console.SetCursorPosition(x, y);
// Console.Write(text);
}
Is the above possible?