Implemented lexing and tokenization