Re: Some overloaded operators of my own
Stefano Corsi <[email protected]> Sat, 3 May 2003 20:33:04 +0000
| Newsgroups | gmane.comp.lang.moto.devel |
|---|---|
| Organization | Moto Project |
| Message-ID | <[email protected]> |
> Anyhow, I added support for the * and *=3D operators in your structure > just so I could get a hang of how the whole process worked. Very nice > overall! I had to alter mxc.l a little bit because the times operator > was matching the C dereference operator so I added an extra lexical > state for tokens that should only be matched in C prototypes vs moto > prototypes.=20 I had the same problem with "<" that was clashing with TAG_LITERAL. > We should probably add the rest of the operators in now > though just to make sure we aren't going to run into any other lexing / > parsing bugs. Yes, probably also >=3D and <=3D. Someone more?=20 I'm ready with the [] arrindex operator in the rval fashion (print=20 symbtab["foo"]). I'm having a bad time with the lval part (symtab["foo"] = =3D=20 "bar"). Stefano