add terminals and intermediary to lexer in design-milestone