Example 1: Split a UNIX™ directory path

MAIN
  DEFINE tok base.StringTokenizer 
  LET tok = base.StringTokenizer.create("/home/tomy","/")
  WHILE tok.hasMoreTokens()
    DISPLAY tok.nextToken()
  END WHILE
END MAIN