The example here parses a string...

http://www.picbasic.co.uk/forum/showthread.php?t=573