Hello.
Say that a file contains the following text:
If I want to make this code "work as a script", how could I do that? Is there any relatively simple way to do this, or do I need to learn to write a compiler or something first?Code:struct Data { int x; };
void DoSomething(int x) { x = 42; }
int main()
{
struct Data data;
data.x = 0;
DoSomething(data.x);
}