Primitive parsing and code completion