Some bits of implementation.

Added a first draft of the lexer and parser.