Friday, February 22, 2008

2 Guys 1 Cup

Thankfully not what you think.


The other day I came out of a bit of a marathon coding day on my compilers assignment with my teammates. This assignment will essentially finish our parser, build the AST (Abstract Syntax Tree) and do semantic analysis on the code.

So, with my one partner starting semantic analysis, my other partner and I began to link up the parser code with our AST structure.

It took awhile. We use Java CUP to generate the parser and I've spent way too long staring at the code in our .cup file.

We finished, after about 6 hours, and I'm pretty happy about that. I have to say, I haven't coded with teammates much for a while, and forgot how quickly it can go with someone looking over your shoulder giving advice, remembering variable names, and just making sure you don't screw up. It probably would have taken me another couple of hours to do it all myself.

Now we have to work with the rest of the team to finish semantic analysis, but at least we don't have to look at that damn .cup file anymore!!!

No comments:

Post a Comment