Added end methods referenced at top of lex file