Top-down parser of simple regular expressions