add lexical analyzer and allocator