<?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%3Aapra102</id>
	<title>SE250:lab-9:apra102 - 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%3Aapra102"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-9:apra102&amp;action=history"/>
	<updated>2026-04-24T12:10:02Z</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:apra102&amp;diff=8500&amp;oldid=prev</id>
		<title>Mark: 2 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=SE250:lab-9:apra102&amp;diff=8500&amp;oldid=prev"/>
		<updated>2008-11-03T05:20:34Z</updated>

		<summary type="html">&lt;p&gt;2 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Lab9==&lt;br /&gt;
It took me a while to understand what is going on here. I really have no idea on any of the options.&lt;br /&gt;
I read the whole hand out for some time and decided to do Option2, in that atleast i know whats it is on about. I downloaded the .c and .h files from the website and started doing it. &lt;br /&gt;
I asked the tutor what am i suppose to do here? She gave me some hints and I get started to create the &amp;#039;&amp;#039;&amp;#039;tree&amp;#039;&amp;#039;&amp;#039; with the &amp;#039;&amp;#039;&amp;#039;if&amp;#039;&amp;#039;&amp;#039; expecting &amp;#039;&amp;#039;&amp;#039;then&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;else&amp;#039;&amp;#039;&amp;#039; following that. I tried coding for the tree. Initially i declared the current token as &amp;#039;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;#039; and started continuing with that, but it dint work it keep saying that undclared identifiers, i cannot figure them out in this time,  my code is as following:&lt;br /&gt;
&lt;br /&gt;
 Tree* Stmt( TokenStream* tokens ) {&lt;br /&gt;
 	Token n = current(tokens);&lt;br /&gt;
 	advance (tokens); &lt;br /&gt;
 &lt;br /&gt;
 	if(eqToken(n, TOK_IF)){&lt;br /&gt;
 		Tree* t = Exp(tokens,0);&lt;br /&gt;
 		Tree* thenS;&lt;br /&gt;
 		Tree* elseS;&lt;br /&gt;
 &lt;br /&gt;
 		expect(tokens, TOK_THEN);&lt;br /&gt;
 		Tree* t1 = Stmt(thenS);&lt;br /&gt;
 &lt;br /&gt;
 		expect (tokens, TOK_ELSE);&lt;br /&gt;
 		Tree* t2 = Stmt(elseS);&lt;br /&gt;
 	}&lt;br /&gt;
 	return mkNode3(TOK_IF, t, t1, t2);&lt;br /&gt;
 	 &lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>