Grammar-based systems: definition and examples