<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-9%3Ahals016</id>
	<title>SE250:lab-9:hals016 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=SE250%3Alab-9%3Ahals016"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-9:hals016&amp;action=history"/>
	<updated>2026-04-21T17:25:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=SE250:lab-9:hals016&amp;diff=8541&amp;oldid=prev</id>
		<title>Mark: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-9:hals016&amp;diff=8541&amp;oldid=prev"/>
		<updated>2008-11-03T05:20:34Z</updated>

		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Upon the lab finishing at 12pm I decided to write up the report in which case my choice of Option2 changed to Option 1 (with no real difference to the progress made).&lt;br /&gt;
&lt;br /&gt;
===Option 1===&lt;br /&gt;
I wrote the code for eqToken (I fixed the errors for it so hopefully its right, although all the other functions had errors :D).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bool eqToken( Token a, Token b ) {&lt;br /&gt;
  token_t aType = a.type;&lt;br /&gt;
  token_t bType = b.type;&lt;br /&gt;
  bool one =(aType == T_SYMBOL &amp;amp;&amp;amp; a.val.symval == b.val.symval);&lt;br /&gt;
  bool two = (aType == T_INTEGER &amp;amp;&amp;amp; a.val.intval == b.val.intval);&lt;br /&gt;
  bool three = (aType == T_STRING &amp;amp;&amp;amp; a.val.strval == b.val.strval);&lt;br /&gt;
  bool four = (aType == T_FLOAT &amp;amp;&amp;amp; a.val.fltval == b.val.fltval);&lt;br /&gt;
  bool five = (aType == T_END || aType == T_NOTHING);&lt;br /&gt;
  bool six = (aType == T_IDENT &amp;amp;&amp;amp; a.val.strval == b.val.strval);&lt;br /&gt;
  if (aType!=bType)&lt;br /&gt;
    return false;&lt;br /&gt;
  else if (one || two || three || four || five || six)&lt;br /&gt;
    return true;&lt;br /&gt;
  else&lt;br /&gt;
    return false;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>