Added a get method for ArrayList<Terminals> in Parser, and added a
distinct class method to RegExpFunc which will search the Terminals.