Improved API and compiler/parser coupling