Re: intermediary representation and bison?

2007-12-24 Thread Ilyes Gouta
Thank you, Laurence and Evan, for your extensive explanations! I had a look on ANTLR and it seems to be a great tool and probably it will be my second option. I think I'm going to try to get the scanner to construct an AST (instead of emitting code) so I'll stick with bison for a while. As yo

Re: intermediary representation and bison?

2007-12-24 Thread Evan Lavelle
I had the same problem on my first language; here's what I did. I started off thinking that I needed a simple interpreter, so I wrote the Bison code, and basically did all the required work in the Bison actions. This worked well; It looks like you're at this stage. A little later, I realised