Languages provide means to define how programs should behave using a lists of statements. Such statements must be composed with a given syntax.
If you want to process a program in a given language, you need to have a parser that extracts the statements that define the program and validate the statements syntax.
This class provides a generic solution to implement language parsers in PHP. It can be used to process programs with an user-defined syntax.