So, I have endeavored to create a program that will allow a user to combine a program and it's subroutines into one program. Right now, the general idea is to make the source the final product and reading each line, checking for the 'prgm' token, and if it exists, removing the 'prgm' tag from the string, and saving the resultant to a string - Str3 to be exact. Then, it reads the subroutine, and writes the output to the program.
While this seemed to be simple, insofar, it has proven to be very difficult. One of the problems that I have encountered is frequent crashes. Could the repeated read-write be the cause of this, or am I doing something wrong?
While this seemed to be simple, insofar, it has proven to be very difficult. One of the problems that I have encountered is frequent crashes. Could the repeated read-write be the cause of this, or am I doing something wrong?