Modified lexer to act as external parser library; added new Main class to exercise this