<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=SCI_Parser_Programmer%27s_Reference%2FUser_Parse_Trees</id>
	<title>SCI Parser Programmer&#039;s Reference/User Parse Trees - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=SCI_Parser_Programmer%27s_Reference%2FUser_Parse_Trees"/>
	<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=SCI_Parser_Programmer%27s_Reference/User_Parse_Trees&amp;action=history"/>
	<updated>2026-12-03T16:32:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=SCI_Parser_Programmer%27s_Reference/User_Parse_Trees&amp;diff=71180&amp;oldid=prev</id>
		<title>Andrew Branscom: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=SCI_Parser_Programmer%27s_Reference/User_Parse_Trees&amp;diff=71180&amp;oldid=prev"/>
		<updated>2025-02-16T21:00:47Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:00, 16 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=SCI_Parser_Programmer%27s_Reference/User_Parse_Trees&amp;diff=71179&amp;oldid=prev</id>
		<title>Andrew Branscom: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=SCI_Parser_Programmer%27s_Reference/User_Parse_Trees&amp;diff=71179&amp;oldid=prev"/>
		<updated>2024-06-03T05:14:21Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:14, 3 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=SCI_Parser_Programmer%27s_Reference/User_Parse_Trees&amp;diff=71178&amp;oldid=prev</id>
		<title>Andrew Branscom: /*  Also See */</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=SCI_Parser_Programmer%27s_Reference/User_Parse_Trees&amp;diff=71178&amp;oldid=prev"/>
		<updated>2022-06-24T12:17:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Also See&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:SCI Pages]]&lt;br /&gt;
[[Official SCI Documentation]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
Chapter: &lt;br /&gt;
[[SCI Parser Programmer&amp;#039;s Reference/Introduction|1]] | &lt;br /&gt;
[[SCI Parser Programmer&amp;#039;s Reference/User Parse Trees|2]] | &lt;br /&gt;
[[SCI Parser Programmer&amp;#039;s Reference/Said Specs|3]] | &lt;br /&gt;
[[SCI Parser Programmer&amp;#039;s Reference/Said Syntax|4]] | &lt;br /&gt;
[[SCI Parser Programmer&amp;#039;s Reference/Said Spec Trees|5]] | &lt;br /&gt;
[[SCI Parser Programmer&amp;#039;s Reference/Tree Matching|6]] | &lt;br /&gt;
[[SCI Parser Programmer&amp;#039;s Reference/Examples|7]] | &lt;br /&gt;
[[SCI Parser Programmer&amp;#039;s Reference/Index|Index]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: 22pt&amp;quot;&amp;gt;User Parse Trees&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Author: [[Pablo Ghenis]]&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Date: 21 July 1988 9:56:56 am&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;br /&amp;gt; User Parse Trees ==&lt;br /&gt;
&lt;br /&gt;
When a user types in a sentence, the sequence of words is used to create  a parse tree that represents the syntactic structure of the sentence. This is done according to traditional grammar rules. &lt;br /&gt;
&lt;br /&gt;
The parser uses two external resources: the dictionary and the grammar. The dictionary defines which words will be recognized and the grammar defines the rules used to analyze the sentence. Since both of these resources are external, they can be changed and recompiled. The dictionary is recompiled by typing VC (vocabulary compiler) and the grammar requires GC (grammar compiler). For information on how to modify these files, see your local friendly and infinitely patient SCI system programmer. :-)&lt;br /&gt;
&lt;br /&gt;
All sentences typed during a game are imperative, that is, they constitute commands. An imperative sentence starts with a verb and is followed by optional direct and indirect objects.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;quot;take the gold from the dwarf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;root=vp &lt;br /&gt;
|&lt;br /&gt;
+=============+==================+&lt;br /&gt;
|             |                  |&lt;br /&gt;
root=verb     dobj=np            iobj=ap&lt;br /&gt;
|             |                  |&lt;br /&gt;
&amp;quot;take&amp;quot;        |                  |&lt;br /&gt;
              +=======+          +=========+&lt;br /&gt;
              |       |          |         |&lt;br /&gt;
              ignore  root       mod       root&lt;br /&gt;
              art     noun       prep      np&lt;br /&gt;
              &amp;quot;the&amp;quot;   &amp;quot;gold&amp;quot;     &amp;quot;from&amp;quot;    |&lt;br /&gt;
                                           +=======+&lt;br /&gt;
                                           ignore  root&lt;br /&gt;
                                            art     noun&lt;br /&gt;
                                           &amp;quot;the&amp;quot;   &amp;quot;dwarf&amp;quot;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above tree can also be written using parenthesized notation as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot;&amp;gt;&lt;br /&gt;
(root vp&lt;br /&gt;
   (root verb . &amp;#039;take&amp;#039;)&lt;br /&gt;
   (dobj np&lt;br /&gt;
      (ignore art . &amp;#039;the&amp;#039;)&lt;br /&gt;
      (root noun . &amp;#039;gold&amp;#039;)&lt;br /&gt;
   )&lt;br /&gt;
   (iobj ap&lt;br /&gt;
      (mod prep . &amp;#039;from&amp;#039;)&lt;br /&gt;
      (root np&lt;br /&gt;
         (ignore art . &amp;#039;the&amp;#039;)&lt;br /&gt;
         (root noun . &amp;#039;dwarf&amp;#039;)&lt;br /&gt;
      )&lt;br /&gt;
   )&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
take some time to look at this example and understand the new notation. For the sake of convenience it will be used throughout this document.&lt;br /&gt;
&lt;br /&gt;
The grammar rules used to produce the above tree are:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;Mono&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|width=&amp;quot;40&amp;quot;|s||= vp&lt;br /&gt;
|-&lt;br /&gt;
|vp||= (root verb) (dobj np) (iobj ap)&lt;br /&gt;
|-&lt;br /&gt;
|np||= (ignore art) (root noun)&lt;br /&gt;
|-&lt;br /&gt;
|ap||= (mod prep) (root np)&lt;br /&gt;
|-&lt;br /&gt;
|verb||= from dictionary&lt;br /&gt;
|-&lt;br /&gt;
|art||= from dictionary&lt;br /&gt;
|-&lt;br /&gt;
|noun||= from dictionary&lt;br /&gt;
|-&lt;br /&gt;
|prep||= from dictionary&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;br /&amp;gt; References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;br /&amp;gt; Also See ==&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[[SCI Parser Programmer&amp;#039;s Reference | Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;float: left&amp;quot;&amp;gt;[[SCI Parser Programmer&amp;#039;s Reference/Introduction|&amp;amp;lt; Previous: Introduction]]&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;float: right&amp;quot;&amp;gt;[[SCI Parser Programmer&amp;#039;s Reference/Said Specs|Next: Said Specs &amp;amp;gt;]]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical Info]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:References]]&lt;br /&gt;
[[Category:SCI References]]&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:SCI Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:SCI Development]]&lt;br /&gt;
[[Category:Guides &amp;amp; Other Help]]&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
[[Category:SCI Tutorials]]&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:SCI How To]]&lt;br /&gt;
[[Category:Scripting]]&lt;br /&gt;
[[Category:SCI Scripting]]&lt;br /&gt;
[[Category:The SCI Parser]]&lt;/div&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
</feed>