Walks SQL text, recognising the constructs whose contents mean nothing to whoever is reading it.
Cuts a script into the statements it is made of.
One statement out of a script, and where it stood in the text it was cut from.