1. A method for compiling source code to p-code or machine-language instructions, wherein the source code contains high-level source code with embedded SQL statements, said method comprising the steps of: reading the source code one line at a time to generate a read line of source code; determining whether said read line of source code is high level source code or an SQL statement; and compiling said read line of source code to p-code or machine-language instructions, wherein if said read line of source code is an SQL statement, said compilation of said read line of source code occurs in a one-pass parsing mechanism which translates said SQL statement to an array of function pointers.