Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /doc/html/pyke_syntax/index.html [cb9528] .. [381f18] Maximize Restore

  Switch to side-by-side view

--- a/doc/html/pyke_syntax/index.html
+++ b/doc/html/pyke_syntax/index.html
@@ -78,26 +78,26 @@
 <li><em>Knowledge Rule Base</em> (KRB) files for <a class="reference external" href="../knowledge_bases/rule_bases.html">rule bases</a>.</li>
 <li><em>Knowledge Question Base</em> (KQB) files for <a class="reference external" href="../knowledge_bases/question_bases.html">question bases</a>.</li>
 </ol>
-<p>Each type of source file ends in a different file suffix: <tt class="docutils literal"><span class="pre">.kfb</span></tt>,
-<tt class="docutils literal"><span class="pre">.krb</span></tt> or <tt class="docutils literal"><span class="pre">.kqb</span></tt>.</p>
+<p>Each type of source file ends in a different file suffix: <tt class="docutils literal">.kfb</tt>,
+<tt class="docutils literal">.krb</tt> or <tt class="docutils literal">.kqb</tt>.</p>
 <p>Place all of these source files into a directory structure.  Then include this
 directory as an argument to the <a class="reference external" href="../using_pyke/creating_engine.html">knowledge_engine.engine</a> constructor.
 This will recursively search your directory for these three types of source
 files, compile them, and load them into the engine.  How you organize these
 files into subdirectories is up to you -- the directory structure does not
 matter to Pyke.</p>
-<p>The <tt class="docutils literal"><span class="pre">.kfb</span></tt> and <tt class="docutils literal"><span class="pre">.kqb</span></tt> files are compiled into Python <a class="reference external" href="http://docs.python.org/library/pickle.html">pickles</a> with
-<tt class="docutils literal"><span class="pre">.fbc</span></tt> and <tt class="docutils literal"><span class="pre">.qbc</span></tt> suffixes.</p>
-<p>The <tt class="docutils literal"><span class="pre">.krb</span></tt> files are compiled into up to three <tt class="docutils literal"><span class="pre">.py</span></tt> source files.
-The names of these <tt class="docutils literal"><span class="pre">.py</span></tt> files are the same as the <tt class="docutils literal"><span class="pre">.krb</span></tt> file, but with
+<p>The <tt class="docutils literal">.kfb</tt> and <tt class="docutils literal">.kqb</tt> files are compiled into Python <a class="reference external" href="http://docs.python.org/library/pickle.html">pickles</a> with
+<tt class="docutils literal">.fbc</tt> and <tt class="docutils literal">.qbc</tt> suffixes.</p>
+<p>The <tt class="docutils literal">.krb</tt> files are compiled into up to three <tt class="docutils literal">.py</tt> source files.
+The names of these <tt class="docutils literal">.py</tt> files are the same as the <tt class="docutils literal">.krb</tt> file, but with
 different endings:</p>
 <ul class="simple">
-<li><tt class="docutils literal"><span class="pre">_fc</span></tt> (if there are any <a class="reference external" href="../logic_programming/rules/forward_chaining.html">forward-chaining</a> rules)</li>
-<li><tt class="docutils literal"><span class="pre">_bc</span></tt> (if there are any <a class="reference external" href="../logic_programming/rules/backward_chaining.html">backward-chaining</a> rules) and</li>
-<li><tt class="docutils literal"><span class="pre">_plans</span></tt> (if any of the backward-chaining rules have a <a class="reference external" href="../logic_programming/plans.html">plan</a>)</li>
+<li><tt class="docutils literal">_fc</tt> (if there are any <a class="reference external" href="../logic_programming/rules/forward_chaining.html">forward-chaining</a> rules)</li>
+<li><tt class="docutils literal">_bc</tt> (if there are any <a class="reference external" href="../logic_programming/rules/backward_chaining.html">backward-chaining</a> rules) and</li>
+<li><tt class="docutils literal">_plans</tt> (if any of the backward-chaining rules have a <a class="reference external" href="../logic_programming/plans.html">plan</a>)</li>
 </ul>
-<p>These <tt class="docutils literal"><span class="pre">.py</span></tt> files are then automatically imported to define the rule base.
-This causes Python to compile them into <tt class="docutils literal"><span class="pre">.pyc</span></tt> or <tt class="docutils literal"><span class="pre">.pyo</span></tt> files.</p>
+<p>These <tt class="docutils literal">.py</tt> files are then automatically imported to define the rule base.
+This causes Python to compile them into <tt class="docutils literal">.pyc</tt> or <tt class="docutils literal">.pyo</tt> files.</p>
 <p>Subsequent runs of the <a class="reference external" href="../using_pyke/creating_engine.html">knowledge_engine.engine</a> constructor only recompile
 the Pyke source files that have changed since the last time they were compiled.</p>
 <p>The name of each knowledge base is the filename of the Pyke source file with
@@ -127,18 +127,18 @@
 <em>ur&quot;&quot;&quot;leave \'s alone!&quot;&quot;&quot;</em>.</dd>
 <dt>TEXT</dt>
 <dd>Only used in KQB files.  This signifies any text (any characters) other
-than the delimiter characters containing the <tt class="docutils literal"><span class="pre">TEXT</span></tt>.</dd>
+than the delimiter characters containing the <tt class="docutils literal">TEXT</tt>.</dd>
 <dt>PARAMETRIZED_TEXT</dt>
 <dd>Only used in KQB files.  This signifies any text (any characters) through
 the end of the line and all text on subsequent lines that are indented at
-least as much as the first <tt class="docutils literal"><span class="pre">PARAMETRIZED_TEXT</span></tt> character on the first
-line.  All <tt class="docutils literal"><span class="pre">PARAMETRIZED_TEXT</span></tt> is treated as a <a class="reference external" href="http://docs.python.org/library/string.html#template-strings">string.Template</a> and
-may include <tt class="docutils literal"><span class="pre">$IDENTIFIER</span></tt> or <tt class="docutils literal"><span class="pre">${IDENTIFIER}</span></tt> parameters.  All other
-<tt class="docutils literal"><span class="pre">$</span></tt> characters must be doubled (<tt class="docutils literal"><span class="pre">$$</span></tt>).</dd>
+least as much as the first <tt class="docutils literal">PARAMETRIZED_TEXT</tt> character on the first
+line.  All <tt class="docutils literal">PARAMETRIZED_TEXT</tt> is treated as a <a class="reference external" href="http://docs.python.org/library/string.html#template-strings">string.Template</a> and
+may include <tt class="docutils literal">$IDENTIFIER</tt> or <tt class="docutils literal">${IDENTIFIER}</tt> parameters.  All other
+<tt class="docutils literal">$</tt> characters must be doubled (<tt class="docutils literal">$$</tt>).</dd>
 <dt>REGEXP_TEXT</dt>
 <dd>Only used in KQB files.  This signifies any text (any characters) excluding
-an unescaped backslash (<tt class="docutils literal"><span class="pre">\</span></tt>) at the end.  These are given to the Python's
-<tt class="docutils literal"><span class="pre">re</span></tt> module as regular expressions and must follow Python's
+an unescaped backslash (<tt class="docutils literal">\</tt>) at the end.  These are given to the Python's
+<tt class="docutils literal">re</tt> module as regular expressions and must follow Python's
 <a class="reference external" href="http://docs.python.org/library/re.html#regular-expression-syntax">regular expression syntax</a>.</dd>
 <dt>NL</dt>
 <dd>One or more newlines.</dd>
@@ -158,11 +158,11 @@
 <p>The two notable exceptions to Python conventions are:</p>
 <ol class="arabic simple">
 <li>Identifiers may be used as strings, without requiring quotes.<ul>
-<li>So <tt class="docutils literal"><span class="pre">foobar</span></tt> is the same as <tt class="docutils literal"><span class="pre">'foobar'</span></tt>.</li>
+<li>So <tt class="docutils literal">foobar</tt> is the same as <tt class="docutils literal">'foobar'</tt>.</li>
 </ul>
 </li>
 <li>Singleton tuples do not require a trailing comma.<ul>
-<li>So <tt class="docutils literal"><span class="pre">(1)</span></tt> is the same as <tt class="docutils literal"><span class="pre">(1,)</span></tt>.</li>
+<li>So <tt class="docutils literal">(1)</tt> is the same as <tt class="docutils literal">(1,)</tt>.</li>
 </ul>
 </li>
 </ol>