Skip to content

Instantly share code, notes, and snippets.

@silasb
Created November 17, 2009 03:19
Show Gist options
  • Save silasb/236608 to your computer and use it in GitHub Desktop.
Save silasb/236608 to your computer and use it in GitHub Desktop.
class Tokenizer {
public:
Tokenizer();
};
// inside Program.h
class Program {
public:
Program();
ParseProg() { // need to access tokenizer object in here. };
};
void main() {
Tokenizer tokenizer;
Program program;
program.ParseProg();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment