new function only for getting ast (without type analyses)