<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] Storing tokens with flex & bison --> <!--X-From-R13: ptNnzv-pt.UenlEntr.Sqzbagba.OP.QO --> <!--X-Date: Sun, 02 Jan 2000 10:08:29 -0800 --> <!--X-Message-Id: 200001021758.KAA01435@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Content-Type: text/plain --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: [MUD-Dev] Storing tokens with flex & bison</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00022.html">Previous</a> | <a href="msg00024.html">Next</a> ] Thread: [ <a href="msg00022.html">Previous</a> | <a href="msg00024.html">Next</a> ] Index: [ <A HREF="author.html#00023">Author</A> | <A HREF="#00023">Date</A> | <A HREF="thread.html#00023">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: [MUD-Dev] Storing tokens with flex & bison</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> <LI><em>Subject</em>: Re: [MUD-Dev] Storing tokens with flex & bison</LI> <LI><em>From</em>: <A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A></LI> <LI><em>Date</em>: Sun, 2 Jan 2000 10:58:02 -0700</LI> <LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> <LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> [J C Lawrence:] > I've used recursive decent parsing for all my micro-languages for > the simple reason that I was never willing to confront lex/yacc or > their derivatives and I'd done all my interesting language work > before I ran across PCCTS et al. Recursive decent parsers are easy > to do, easy to get reasonably right as long as your language is > regular, and of course horrible to optimise or put a proper VM > under. That all said, I agree, given current CPU speeds, for > hobbyest games and typical activity rates on your server (say a few > hundred users etc) there is little reason to not use a recursive > decent parser. I'm in a similar situation - I did my first language before I'd heard of lex/yacc, let alone ANTLR/PCCTS. So, I've never learned any of those tools. This includes doing an ANSI C compiler at work several years ago. JCL: why do you say recursive descent makes it hard to put a VM under a language? Lexing/parsing is pretty independent of execution. My AmigaMUD system uses recursive descent for its programming language, and that had no effect on being able to put a byte-code machine into the system. It had never occurred to me to even think about any effect. Hmm. Perhaps I'm misparsing the conjunction in your sentence? Byte-code execution really only makes sense, I believe, for a strongly typed language. If run-time checks and conversions are needed, they will likely cost far more time than the basic interpretation of the code, and so going to byte-code instead of staying with something more direct, could be a waste of time, in that byte-code won't speed execution up much. -- Don't design inefficiency in - it'll happen in the implementation. Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA <A HREF="http://www.GraySage.Edmonton.AB.CA/cg/">http://www.GraySage.Edmonton.AB.CA/cg/</A> _______________________________________________ MUD-Dev maillist - MUD-Dev#kanga,nu <A HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A> </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <ul compact><li><strong>Follow-Ups</strong>: <ul> <li><strong><A NAME="00122" HREF="msg00122.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong> <ul compact><li><em>From:</em> J C Lawrence <claw#kanga,nu></li></ul> <li><strong><A NAME="00024" HREF="msg00024.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong> <ul compact><li><em>From:</em> Kevin Littlejohn <darius#connect,com.au></li></ul> </UL></LI></UL> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00022.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00024.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00022.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00024.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00023"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00023"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>Re: [MUD-Dev] Storing tokens with flex & bison</STRONG>, <EM>(continued)</EM> <ul compact> <LI><strong><A NAME="00008" HREF="msg00008.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong>, cg <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 01 Jan 2000, 19:53 GMT </LI> <LI><strong><A NAME="00015" HREF="msg00015.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sun 02 Jan 2000, 01:05 GMT <UL> <LI><strong><A NAME="00018" HREF="msg00018.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong>, Christer Enfors <a href="mailto:enfors#swipnet,se">enfors#swipnet,se</a>, Sun 02 Jan 2000, 04:15 GMT </LI> <LI><strong><A NAME="00022" HREF="msg00022.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong>, Greg Miller <a href="mailto:gmiller#classic-games,com">gmiller#classic-games,com</a>, Sun 02 Jan 2000, 17:26 GMT </LI> </UL> </LI> <LI><strong><A NAME="00023" HREF="msg00023.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong>, cg <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 02 Jan 2000, 18:08 GMT <UL> <LI><strong><A NAME="00024" HREF="msg00024.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong>, Kevin Littlejohn <a href="mailto:darius#connect,com.au">darius#connect,com.au</a>, Sun 02 Jan 2000, 18:42 GMT </LI> <LI><strong><A NAME="00122" HREF="msg00122.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong>, J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Tue 18 Jan 2000, 09:02 GMT </LI> </UL> </LI> <LI><strong><A NAME="00028" HREF="msg00028.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 03 Jan 2000, 03:25 GMT <UL> <LI><strong><A NAME="00121" HREF="msg00121.html">Re: [MUD-Dev] Storing tokens with flex & bison</A></strong>, J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Tue 18 Jan 2000, 08:55 GMT </LI> </UL> </LI> </ul> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>