(refactor) updated parser, compiler and lib