Made recursive descent parser for regular expressions and tested it