I've been searching for this for a while though I never get a great answer.
I'm looking for a tutorial or code which parses a defined syntax like a new language. Preferably using strtok or tokenizer.
I need to write a simple language which I will parse later.
Thanks for any help.
edit The language is quite simple. Basically variable assignment and loops as well as conditional checks. Nothing fancy.
edit I guess from the answer I got, the title should not be so. Something along the lines of "how to create a language in php" would be better. Thanks.