1. A method for statement boundary detection comprising: obtaining an input stream; parsing said input stream to determine a natural end of a first statement using a programming language syntax; and dividing said input stream into a series of statements wherein said natural end is used to divide said first statement from a second statement.