Handle subroutine calls using look-ahead