[MUD-Dev] Storing tokens with flex & bison
J C Lawrence
claw at kanga.nu
Tue Jan 18 00:55:30 New Zealand Daylight Time 2000
On Sun, 2 Jan 2000 20:13:24 -0500
Jon A Lambert <jlsysinc at ix.netcom.com> wrote:
> Also, you might want to take a look at the Interlude server. I
> think Chris has a copy on ftp.kanga.nu. Interlude uses lex as a
> scanner but implements an RD parser by hand.
Yup. Interluds does a bunch of rather intersting bits design-wise.
> Yes. :-) BTW, writing scanners and recusive descent parsers is
> easy. Definitely read the Crenshaw tutorial. The CoolMUD VM is a
> simple and well-written example of a VM.
Its worth noting the massive differences between COOLMUD and
LambdaMOO and before that MOO (Stephen White wrote all of them
(Pavel Curtis taking over LambdaMOO fairly eary on when Stephen
moved on to COOL)) that clearly show the lessons he learned en route
(oughta catalog them for posterity some time). I'm actually rather
intersted in digging thru his recent Java based server just to see
what basic design changes he's made now...
> At some po Like JC Lawrence and Chris Gray I've written my own
> scanners and recursive descent parsers. Personally, I'm a bit
> anal about not using globals, having readable and debugable code.
Join the club. I'm digging thru some inherited C++ at work that is
extremely well written, beatufiully executed, reasonably well
commented, very cleanly designed, and almost utterly obtuse.
I've spent days trying to figure out what a couple classes do.
> Yacc and Bison generate extremely ugly code.
<kof> Really? <kof>
J C Lawrence Home: claw at kanga.nu
----------(*) Other: coder at kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--
MUD-Dev maillist - MUD-Dev at kanga.nu
More information about the MUD-Dev