finish scanner and compile parser