Implemented first version of parser using regular expressions