Moving function registration into a static class. Moving operation validation to the lexer.