1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]	Internal Mud Languages -->
<!--X-From-R13: ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO (Quevf Uenl) -->
<!--X-Date: from babe.globecomm.net [207.51.48.8] by in11.ibm.net id 864712573.32984&#45;1 Tue May 27 05:56:13 1997 CUT -->
<!--X-Message-Id: 9705270307.82bc@ami&#45;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]	Internal Mud Languages</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>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00827.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00831.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00967.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00809.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00830">Author</A>
&nbsp;|&nbsp;<A HREF="#00830">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00830">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]	Internal Mud Languages</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]	Internal Mud Languages</LI>
<LI><em>From</em>: <A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A> (Chris Gray)</LI>
<LI><em>Date</em>: Mon, 26 May 97 20:07:22 MST</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
[Jon L:]

:I have been attempting to decipher the LCC compiler which
:produces native 486 code.  An implementation of C with all it's
:semantic/syntax complexities is quite a bit more than I had in 
:mind.
:
:Can anyone point me to some very basic examples/documentation
:of these functions carried out completely?

"Amiga Transactor", V4 #'s 4-6, and V5 #1 contain a series of
articles on writing a small compiler. Now, that was in 1989 and I don't
imagine that copies are now easy to come by. However, since I wuz the
author (cough!), I happen to have the full sources and articles here
on my hard-drive. The compiler compiled a subset of my Draco language
into M68000 machine code. The whole thing is just 3260 lines of code,
with a fair amount of comments, plus the articles themselves. It does
not use any lexer generator or parser generator tools, etc. - it is
complete in itself. It is *not* a very big language, but I did manage
to write a small character-graphics target-shoot game in it. Here is
the classic in "Toy":

/*
 * hanoi.t - standard "Towers of Hanoi" in toy.
 */

proc printPeg(int peg)void:

    if peg = 1 then
	write("left");
    elif peg = 2 then
	write("center");
    else
	write("right");
    fi;
corp;

proc hanoi(int n, fromPeg, usingPeg, toPeg)void:

    if n ~= 0 then
	hanoi(n - 1, fromPeg, toPeg, usingPeg);
	write("Move disk from ");
	printPeg(fromPeg);
	write(" peg to ");
	printPeg(toPeg);
	write(" peg.\n");
	hanoi(n - 1, usingPeg, fromPeg, toPeg);
    fi;
corp;

proc main()void:
    int n;

    write("How many pegs? ");
    readln(n);
    hanoi(n, 1, 2, 3);
corp;


--
Chris Gray   cg#ami-cg,GraySage.Edmonton.AB.CA

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00827.html">Re: [MUD-Dev] Re: re: RP thesis...</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00831.html">Re: [MUD-Dev] Re: Administrative notes</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00967.html">Re: [MUD-Dev]  Resets, repops and quests</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00809.html">Re: [MUD-Dev]	Rooms, 3D arrays, etc.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00830"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00830"><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]  Resets, repops and quests</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00960" HREF="msg00960.html">Re: [MUD-Dev]  Resets, repops and quests</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Sat 31 May 1997, 00:49 GMT
<UL>
<LI><strong><A NAME="01056" HREF="msg01056.html">Re: [MUD-Dev]  Resets, repops and quests</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Mon 02 Jun 1997, 23:51 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00852" HREF="msg00852.html">Re: [MUD-Dev]  Resets, repops and quests</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lut.ac.uk">K.L.Lo-94#student,lut.ac.uk</a>, Wed 28 May 1997, 00:33 GMT
</LI>
<LI><strong><A NAME="00967" HREF="msg00967.html">Re: [MUD-Dev]  Resets, repops and quests</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Sat 31 May 1997, 05:56 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00830" HREF="msg00830.html">Re: [MUD-Dev]	Internal Mud Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 27 May 1997, 12:56 GMT
<LI><strong><A NAME="00809" HREF="msg00809.html">Re: [MUD-Dev]	Rooms, 3D arrays, etc.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 26 May 1997, 21:47 GMT
<UL>
<LI><strong><A NAME="00854" HREF="msg00854.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 28 May 1997, 00:56 GMT
<UL>
<LI><strong><A NAME="00906" HREF="msg00906.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Thu 29 May 1997, 02:33 GMT
</LI>
</UL>
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00881" HREF="msg00881.html">Re: [MUD-Dev]	Rooms, 3D arrays, etc.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 28 May 1997, 12:58 GMT
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>