Friday, March 27, 2009

Parser Bug FIXED

Finally found the problem preventing me from fully using the parser. Firstly I never accounted for the initial value in my big splitter method so I was getting an out of bounds exception so I just start to extract info from position 1 in the array of tokens rather than position 0 which had the type of command the server had sent in there. Once that was sorted I stumbled across another error as I use string.startswith("blah blah") in certain cases I would have a class where I was checking to see if a token began with blah and then with blah blah so it would never get to the blah blah part. Anyways nesting the two into one check worked great and so now my parser is fully done

0 comments: