Re: Multitype support in bison

2007-10-13 Thread Ilyes Gouta
Hi, > Hm, and maybe he is actually doing such a homework? :-) > Well, I'm doing it fun mainly. I'd like to experiment with JIT compiled code. Is it possible to get an answer on my previous comment? :) Thanks in advance! BR, Ilyes Gouta. ___ help-bis

Re: Multitype support in bison

2007-10-13 Thread Claudio Saavedra
El sáb, 13-10-2007 a las 11:06 +0200, [EMAIL PROTECTED] escribió: > It's a typical homework assignment for people > studying computer science. Hm, and maybe he is actually doing such a homework? :-) Claudio -- Claudio Saavedra <[EMAIL PROTECTED]> ___

Re: Multitype support in bison

2007-10-13 Thread Ilyes Gouta
Hi Laurence, > It's up to you. I don't think it's a good idea to use different types for > the semantic value of a single symbol; `expr', in your example. Does this > work? It wouldn't have occurred to me to try it. It barely works. So are you suggesting that I keep a unified set of rules and

Re: Multitype support in bison

2007-10-13 Thread lfinsto1
> I'm new to Bison. I'm writing an interpreter for a lightweight C-like > language using flex and bison. My language has to support the *two* > types *int* and *float* used by the identifiers. > > My question is, do I have to write separate rules for both types in my > .y file, where each set of ru