<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://bloomwiki.org/index.php?action=history&amp;feed=atom&amp;title=Formal_Languages</id>
	<title>Formal Languages - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://bloomwiki.org/index.php?action=history&amp;feed=atom&amp;title=Formal_Languages"/>
	<link rel="alternate" type="text/html" href="http://bloomwiki.org/index.php?title=Formal_Languages&amp;action=history"/>
	<updated>2026-05-06T17:06:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://bloomwiki.org/index.php?title=Formal_Languages&amp;diff=4129&amp;oldid=prev</id>
		<title>Wordpad: BloomWiki: Formal Languages</title>
		<link rel="alternate" type="text/html" href="http://bloomwiki.org/index.php?title=Formal_Languages&amp;diff=4129&amp;oldid=prev"/>
		<updated>2026-04-25T01:51:16Z</updated>

		<summary type="html">&lt;p&gt;BloomWiki: Formal Languages&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:51, 25 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div style=&quot;background-color: #4B0082; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{BloomIntro}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{BloomIntro}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Formal Languages are the &amp;quot;Math of Meaning&amp;quot;—the study of &amp;quot;Rules&amp;quot; (Grammar) that define what makes a &amp;quot;String of Symbols&amp;quot; (a Sentence or Code) &amp;quot;Valid.&amp;quot; While &amp;quot;Natural Languages&amp;quot; (English or French) are messy and ambiguous, &amp;quot;Formal Languages&amp;quot; (Python, Java, or Logic) are &amp;quot;Perfectly precise.&amp;quot; Developed by **Noam Chomsky** in the 1950s, the &amp;quot;Chomsky Hierarchy&amp;quot; proved that there is a &amp;quot;Ladder of Complexity&amp;quot; in languages, and that different &amp;quot;Machines&amp;quot; are needed to understand them. From the &amp;quot;Regular Expressions&amp;quot; that search our text to the &amp;quot;Compilers&amp;quot; that translate human thoughts into binary, formal languages are the &amp;quot;Bridge&amp;quot; between &amp;quot;Human Ideas&amp;quot; and &amp;quot;Machine Action.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Formal Languages are the &amp;quot;Math of Meaning&amp;quot;—the study of &amp;quot;Rules&amp;quot; (Grammar) that define what makes a &amp;quot;String of Symbols&amp;quot; (a Sentence or Code) &amp;quot;Valid.&amp;quot; While &amp;quot;Natural Languages&amp;quot; (English or French) are messy and ambiguous, &amp;quot;Formal Languages&amp;quot; (Python, Java, or Logic) are &amp;quot;Perfectly precise.&amp;quot; Developed by **Noam Chomsky** in the 1950s, the &amp;quot;Chomsky Hierarchy&amp;quot; proved that there is a &amp;quot;Ladder of Complexity&amp;quot; in languages, and that different &amp;quot;Machines&amp;quot; are needed to understand them. From the &amp;quot;Regular Expressions&amp;quot; that search our text to the &amp;quot;Compilers&amp;quot; that translate human thoughts into binary, formal languages are the &amp;quot;Bridge&amp;quot; between &amp;quot;Human Ideas&amp;quot; and &amp;quot;Machine Action.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Remembering ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;__TOC__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div style&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;background-color: #000080; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= &amp;lt;span style=&quot;color: #FFFFFF;&quot;&amp;gt;&lt;/ins&gt;Remembering&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt; &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Formal Language&amp;#039;&amp;#039;&amp;#039; — A set of &amp;quot;Strings&amp;quot; of symbols that are &amp;quot;Well-formed&amp;quot; according to a specific set of &amp;quot;Rules&amp;quot; (Grammar).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Formal Language&amp;#039;&amp;#039;&amp;#039; — A set of &amp;quot;Strings&amp;quot; of symbols that are &amp;quot;Well-formed&amp;quot; according to a specific set of &amp;quot;Rules&amp;quot; (Grammar).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Grammar&amp;#039;&amp;#039;&amp;#039; — The set of &amp;quot;Production Rules&amp;quot; that tell you how to &amp;quot;Build&amp;quot; a valid sentence.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Grammar&amp;#039;&amp;#039;&amp;#039; — The set of &amp;quot;Production Rules&amp;quot; that tell you how to &amp;quot;Build&amp;quot; a valid sentence.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Empty String (Epsilon)&amp;#039;&amp;#039;&amp;#039; — A string with &amp;quot;Zero characters.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Empty String (Epsilon)&amp;#039;&amp;#039;&amp;#039; — A string with &amp;quot;Zero characters.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Parser&amp;#039;&amp;#039;&amp;#039; — A computer program that &amp;quot;Checks&amp;quot; if a sentence &amp;quot;Follows the Grammar.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Parser&amp;#039;&amp;#039;&amp;#039; — A computer program that &amp;quot;Checks&amp;quot; if a sentence &amp;quot;Follows the Grammar.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Understanding ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div style&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;background-color: #006400; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= &amp;lt;span style=&quot;color: #FFFFFF;&quot;&amp;gt;&lt;/ins&gt;Understanding&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt; &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Formal languages are understood through &amp;#039;&amp;#039;&amp;#039;Rules&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Nesting&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Formal languages are understood through &amp;#039;&amp;#039;&amp;#039;Rules&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Nesting&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;The &amp;#039;Chomsky Hierarchy&amp;#039; Insight&amp;#039;&amp;#039;&amp;#039;&amp;#039;: Noam Chomsky discovered that &amp;quot;Human Language&amp;quot; is much more complex than &amp;quot;Regular&amp;quot; or &amp;quot;Context-Free.&amp;quot; He argued that humans have a &amp;quot;Universal Grammar&amp;quot; (Type 1 or Type 0) hard-wired in their brains, allowing us to &amp;quot;Understand&amp;quot; and &amp;quot;Create&amp;quot; infinite new sentences from birth. This linked &amp;quot;Linguistics&amp;quot; and &amp;quot;Computer Science&amp;quot; forever.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;The &amp;#039;Chomsky Hierarchy&amp;#039; Insight&amp;#039;&amp;#039;&amp;#039;&amp;#039;: Noam Chomsky discovered that &amp;quot;Human Language&amp;quot; is much more complex than &amp;quot;Regular&amp;quot; or &amp;quot;Context-Free.&amp;quot; He argued that humans have a &amp;quot;Universal Grammar&amp;quot; (Type 1 or Type 0) hard-wired in their brains, allowing us to &amp;quot;Understand&amp;quot; and &amp;quot;Create&amp;quot; infinite new sentences from birth. This linked &amp;quot;Linguistics&amp;quot; and &amp;quot;Computer Science&amp;quot; forever.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Applying ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div style&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;background-color: #8B0000; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= &amp;lt;span style=&quot;color: #FFFFFF;&quot;&amp;gt;&lt;/ins&gt;Applying&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt; &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Modeling &amp;#039;The Simple Grammar&amp;#039; (A script that generates valid &amp;#039;Sentences&amp;#039;):&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Modeling &amp;#039;The Simple Grammar&amp;#039; (A script that generates valid &amp;#039;Sentences&amp;#039;):&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l72&quot;&gt;Line 72:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 81:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &amp;#039;&amp;#039;&amp;#039;Natural Language Processing (NLP)&amp;#039;&amp;#039;&amp;#039; → The attempt to treat &amp;quot;English&amp;quot; as a &amp;quot;Formal Language&amp;quot; so AIs can understand it. (This was the original goal of Chomsky, but English proved to be &amp;quot;Too Context-Sensitive&amp;quot; for simple math).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &amp;#039;&amp;#039;&amp;#039;Natural Language Processing (NLP)&amp;#039;&amp;#039;&amp;#039; → The attempt to treat &amp;quot;English&amp;quot; as a &amp;quot;Formal Language&amp;quot; so AIs can understand it. (This was the original goal of Chomsky, but English proved to be &amp;quot;Too Context-Sensitive&amp;quot; for simple math).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &amp;#039;&amp;#039;&amp;#039;The &amp;#039;Ambiguous&amp;#039; Grammar&amp;#039;&amp;#039;&amp;#039; → A &amp;quot;Bug&amp;quot; in a language where &amp;quot;One sentence&amp;quot; can have &amp;quot;Two Different Syntax Trees&amp;quot; (e.g., &amp;#039;1 + 2 * 3&amp;#039;—does it mean 7 or 9?). Formal languages must be &amp;quot;Unambiguous&amp;quot; to work in a computer.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &amp;#039;&amp;#039;&amp;#039;The &amp;#039;Ambiguous&amp;#039; Grammar&amp;#039;&amp;#039;&amp;#039; → A &amp;quot;Bug&amp;quot; in a language where &amp;quot;One sentence&amp;quot; can have &amp;quot;Two Different Syntax Trees&amp;quot; (e.g., &amp;#039;1 + 2 * 3&amp;#039;—does it mean 7 or 9?). Formal languages must be &amp;quot;Unambiguous&amp;quot; to work in a computer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Analyzing ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div style&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= &amp;lt;span style=&quot;color: #FFFFFF;&quot;&amp;gt;&lt;/ins&gt;Analyzing&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt; &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|+ Regular vs. Context-Free&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|+ Regular vs. Context-Free&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l90&quot;&gt;Line 90:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 101:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;The Concept of &amp;quot;Turing-Completeness&amp;quot;&amp;#039;&amp;#039;&amp;#039;: Analyzing &amp;quot;Power.&amp;quot; If a language is complex enough to &amp;quot;Simulate a Turing Machine&amp;quot; (Type 0), it is &amp;quot;Turing-Complete.&amp;quot; Almost every programming language you use today is Type 0. This means you can &amp;quot;Write a Python interpreter in Python,&amp;quot; which leads to the &amp;quot;Infinite Power&amp;quot; of modern computing.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;The Concept of &amp;quot;Turing-Completeness&amp;quot;&amp;#039;&amp;#039;&amp;#039;: Analyzing &amp;quot;Power.&amp;quot; If a language is complex enough to &amp;quot;Simulate a Turing Machine&amp;quot; (Type 0), it is &amp;quot;Turing-Complete.&amp;quot; Almost every programming language you use today is Type 0. This means you can &amp;quot;Write a Python interpreter in Python,&amp;quot; which leads to the &amp;quot;Infinite Power&amp;quot; of modern computing.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Evaluating ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div style&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;background-color: #483D8B; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= &amp;lt;span style=&quot;color: #FFFFFF;&quot;&amp;gt;&lt;/ins&gt;Evaluating&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt; &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Evaluating formal languages:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Evaluating formal languages:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;The &amp;quot;Ambiguity&amp;quot; Curse&amp;#039;&amp;#039;&amp;#039;: Why is &amp;quot;Natural Language&amp;quot; so &amp;quot;Messy&amp;quot;? (Does the &amp;quot;Ambiguity&amp;quot; of English actually make us &amp;quot;More Creative,&amp;quot; while the &amp;quot;Precision&amp;quot; of Code makes us &amp;quot;Robotic&amp;quot;?).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;The &amp;quot;Ambiguity&amp;quot; Curse&amp;#039;&amp;#039;&amp;#039;: Why is &amp;quot;Natural Language&amp;quot; so &amp;quot;Messy&amp;quot;? (Does the &amp;quot;Ambiguity&amp;quot; of English actually make us &amp;quot;More Creative,&amp;quot; while the &amp;quot;Precision&amp;quot; of Code makes us &amp;quot;Robotic&amp;quot;?).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l97&quot;&gt;Line 97:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 110:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Translation&amp;#039;&amp;#039;&amp;#039;: Why is it so &amp;quot;Hard&amp;quot; for a computer to &amp;quot;Translate&amp;quot; between two formal languages without losing the &amp;quot;Meaning&amp;quot; (Semantics)?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Translation&amp;#039;&amp;#039;&amp;#039;: Why is it so &amp;quot;Hard&amp;quot; for a computer to &amp;quot;Translate&amp;quot; between two formal languages without losing the &amp;quot;Meaning&amp;quot; (Semantics)?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Complexity&amp;#039;&amp;#039;&amp;#039;: As we move up the &amp;quot;Chomsky Hierarchy,&amp;quot; the &amp;quot;Time&amp;quot; it takes to &amp;quot;Parse&amp;quot; the language &amp;quot;Explodes.&amp;quot; Is &amp;quot;Simple&amp;quot; better than &amp;quot;Powerful&amp;quot;?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Complexity&amp;#039;&amp;#039;&amp;#039;: As we move up the &amp;quot;Chomsky Hierarchy,&amp;quot; the &amp;quot;Time&amp;quot; it takes to &amp;quot;Parse&amp;quot; the language &amp;quot;Explodes.&amp;quot; Is &amp;quot;Simple&amp;quot; better than &amp;quot;Powerful&amp;quot;?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Creating ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div style&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;background-color: #2F4F4F; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= &amp;lt;span style=&quot;color: #FFFFFF;&quot;&amp;gt;&lt;/ins&gt;Creating&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt; &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Future Frontiers:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Future Frontiers:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Self-Evolving Programming Languages&amp;#039;&amp;#039;&amp;#039;: A &amp;quot;Formal Language&amp;quot; that &amp;quot;Re-writes its own Grammar&amp;quot; to become &amp;quot;Easier to use&amp;quot; for a specific human, creating a &amp;quot;Personalized Bridge&amp;quot; to the machine.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &amp;#039;&amp;#039;&amp;#039;Self-Evolving Programming Languages&amp;#039;&amp;#039;&amp;#039;: A &amp;quot;Formal Language&amp;quot; that &amp;quot;Re-writes its own Grammar&amp;quot; to become &amp;quot;Easier to use&amp;quot; for a specific human, creating a &amp;quot;Personalized Bridge&amp;quot; to the machine.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l109&quot;&gt;Line 109:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Linguistics]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Linguistics]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Computer Science]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Computer Science]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wordpad</name></author>
	</entry>
	<entry>
		<id>http://bloomwiki.org/index.php?title=Formal_Languages&amp;diff=1845&amp;oldid=prev</id>
		<title>Wordpad: BloomWiki: Formal Languages</title>
		<link rel="alternate" type="text/html" href="http://bloomwiki.org/index.php?title=Formal_Languages&amp;diff=1845&amp;oldid=prev"/>
		<updated>2026-04-23T15:43:14Z</updated>

		<summary type="html">&lt;p&gt;BloomWiki: Formal Languages&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{BloomIntro}}&lt;br /&gt;
Formal Languages are the &amp;quot;Math of Meaning&amp;quot;—the study of &amp;quot;Rules&amp;quot; (Grammar) that define what makes a &amp;quot;String of Symbols&amp;quot; (a Sentence or Code) &amp;quot;Valid.&amp;quot; While &amp;quot;Natural Languages&amp;quot; (English or French) are messy and ambiguous, &amp;quot;Formal Languages&amp;quot; (Python, Java, or Logic) are &amp;quot;Perfectly precise.&amp;quot; Developed by **Noam Chomsky** in the 1950s, the &amp;quot;Chomsky Hierarchy&amp;quot; proved that there is a &amp;quot;Ladder of Complexity&amp;quot; in languages, and that different &amp;quot;Machines&amp;quot; are needed to understand them. From the &amp;quot;Regular Expressions&amp;quot; that search our text to the &amp;quot;Compilers&amp;quot; that translate human thoughts into binary, formal languages are the &amp;quot;Bridge&amp;quot; between &amp;quot;Human Ideas&amp;quot; and &amp;quot;Machine Action.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Remembering ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Formal Language&amp;#039;&amp;#039;&amp;#039; — A set of &amp;quot;Strings&amp;quot; of symbols that are &amp;quot;Well-formed&amp;quot; according to a specific set of &amp;quot;Rules&amp;quot; (Grammar).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Grammar&amp;#039;&amp;#039;&amp;#039; — The set of &amp;quot;Production Rules&amp;quot; that tell you how to &amp;quot;Build&amp;quot; a valid sentence.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Terminal Symbols&amp;#039;&amp;#039;&amp;#039; — The &amp;quot;Actual words&amp;quot; or &amp;quot;Characters&amp;quot; in the language (e.g., &amp;#039;A&amp;#039;, &amp;#039;B&amp;#039;, &amp;#039;+&amp;#039;, &amp;#039;IF&amp;#039;).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Non-terminal Symbols&amp;#039;&amp;#039;&amp;#039; — The &amp;quot;Placeholders&amp;quot; used in the rules (e.g., &amp;#039;Noun&amp;#039;, &amp;#039;Verb&amp;#039;, &amp;#039;Expression&amp;#039;).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Derivation&amp;#039;&amp;#039;&amp;#039; — The step-by-step &amp;quot;Process&amp;quot; of using the rules to &amp;quot;Create&amp;quot; a sentence.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;The Chomsky Hierarchy&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Type 0: Recursively Enumerable&amp;#039;&amp;#039;&amp;#039; — The &amp;quot;Wild West&amp;quot; (Any rule). Needs a **Turing Machine**.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Type 1: Context-Sensitive&amp;#039;&amp;#039;&amp;#039; — The rules depend on what is &amp;quot;Around&amp;quot; the word. Needs a **Linear Bounded Automaton**.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Type 2: Context-Free&amp;#039;&amp;#039;&amp;#039; — The &amp;quot;Standard&amp;quot; for programming; rules are simple and &amp;quot;Nested.&amp;quot; Needs a **Pushdown Automaton**.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Type 3: Regular&amp;#039;&amp;#039;&amp;#039; — The simplest: simple &amp;quot;Patterns&amp;quot; or &amp;quot;Sequences.&amp;quot; Needs a **Finite State Machine**.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Alphabet (Sigma)&amp;#039;&amp;#039;&amp;#039; — The set of all &amp;quot;Legal Characters&amp;quot; in the language.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;String&amp;#039;&amp;#039;&amp;#039; — A finite &amp;quot;Sequence&amp;quot; of symbols from the alphabet.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Empty String (Epsilon)&amp;#039;&amp;#039;&amp;#039; — A string with &amp;quot;Zero characters.&amp;quot;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Parser&amp;#039;&amp;#039;&amp;#039; — A computer program that &amp;quot;Checks&amp;quot; if a sentence &amp;quot;Follows the Grammar.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Understanding ==&lt;br /&gt;
Formal languages are understood through &amp;#039;&amp;#039;&amp;#039;Rules&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Nesting&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1. The &amp;quot;Recipe&amp;quot; (Production Rules)&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
A grammar is like a &amp;quot;Recipe&amp;quot; for a sentence.&lt;br /&gt;
* Rule 1: **Sentence** → **Subject** + **Verb**.&lt;br /&gt;
* Rule 2: **Subject** → &amp;quot;The Cat&amp;quot; | &amp;quot;The Dog&amp;quot;.&lt;br /&gt;
* Rule 3: **Verb** → &amp;quot;Runs&amp;quot; | &amp;quot;Sleeps&amp;quot;.&lt;br /&gt;
* By &amp;quot;Applying&amp;quot; these rules, you can &amp;quot;Generate&amp;quot; thousands of valid sentences (&amp;quot;The Cat Sleeps,&amp;quot; &amp;quot;The Dog Runs&amp;quot;).&lt;br /&gt;
* A &amp;quot;Formal Language&amp;quot; is the &amp;quot;Total Set&amp;quot; of every sentence that can **ever** be made with those rules.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. The &amp;quot;Mirror&amp;quot; (Context-Free Languages)&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
Regular languages are &amp;quot;Linear&amp;quot; (like a train). Context-free languages are &amp;quot;Symmetric&amp;quot; (like a mirror).&lt;br /&gt;
* A &amp;quot;Regular&amp;quot; language can handle: **AAAABBBB** (any number of As then any number of Bs).&lt;br /&gt;
* A &amp;quot;Context-Free&amp;quot; language can handle: **A{n} B{n}** (the number of As **must match** the number of Bs).&lt;br /&gt;
* To &amp;quot;Match&amp;quot; them, the machine needs a &amp;quot;Stack&amp;quot; (Memory) to &amp;quot;Count&amp;quot; the As as they go in. This is why &amp;quot;HTML tags&amp;quot; &amp;lt;div&amp;gt;...&amp;lt;/div&amp;gt; or &amp;quot;Parentheses&amp;quot; ( ( ) ) are Context-Free.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. The &amp;quot;Parser&amp;quot; (Understanding Code)&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
When you type &amp;quot;print(&amp;#039;Hello&amp;#039;)&amp;quot;, the computer doesn&amp;#039;t &amp;quot;Read&amp;quot; it like a human.&lt;br /&gt;
* It &amp;quot;Parses&amp;quot; it into a **Syntax Tree**.&lt;br /&gt;
* It checks: &amp;quot;Is &amp;#039;print&amp;#039; a valid Terminal? Is there a &amp;#039;(&amp;#039;? Is there a matching &amp;#039;)&amp;#039;?&amp;quot;&lt;br /&gt;
* If the &amp;quot;Formal Language Rules&amp;quot; are broken, you get a &amp;quot;Syntax Error.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The &amp;#039;Chomsky Hierarchy&amp;#039; Insight&amp;#039;&amp;#039;&amp;#039;&amp;#039;: Noam Chomsky discovered that &amp;quot;Human Language&amp;quot; is much more complex than &amp;quot;Regular&amp;quot; or &amp;quot;Context-Free.&amp;quot; He argued that humans have a &amp;quot;Universal Grammar&amp;quot; (Type 1 or Type 0) hard-wired in their brains, allowing us to &amp;quot;Understand&amp;quot; and &amp;quot;Create&amp;quot; infinite new sentences from birth. This linked &amp;quot;Linguistics&amp;quot; and &amp;quot;Computer Science&amp;quot; forever.&lt;br /&gt;
&lt;br /&gt;
== Applying ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Modeling &amp;#039;The Simple Grammar&amp;#039; (A script that generates valid &amp;#039;Sentences&amp;#039;):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import random&lt;br /&gt;
&lt;br /&gt;
# Formal Grammar: S -&amp;gt; Subject Verb&lt;br /&gt;
grammar = {&lt;br /&gt;
    &amp;quot;Subject&amp;quot;: [&amp;quot;Code&amp;quot;, &amp;quot;Logic&amp;quot;, &amp;quot;Data&amp;quot;],&lt;br /&gt;
    &amp;quot;Verb&amp;quot;: [&amp;quot;Compiles&amp;quot;, &amp;quot;Processes&amp;quot;, &amp;quot;Crashes&amp;quot;]&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
def generate_formal_sentence():&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
    Shows how &amp;#039;Rules&amp;#039; generate &amp;#039;Languages&amp;#039;.&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
    subj = random.choice(grammar[&amp;quot;Subject&amp;quot;])&lt;br /&gt;
    verb = random.choice(grammar[&amp;quot;Verb&amp;quot;])&lt;br /&gt;
    return f&amp;quot;{subj} {verb}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Generating the &amp;#039;Language&amp;#039; of this grammar&lt;br /&gt;
print(f&amp;quot;Sentence 1: {generate_formal_sentence()}&amp;quot;)&lt;br /&gt;
print(f&amp;quot;Sentence 2: {generate_formal_sentence()}&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Language Landmarks&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Backus-Naur Form (BNF)&amp;#039;&amp;#039;&amp;#039; → The &amp;quot;Standard Notation&amp;quot; used to &amp;quot;Write down&amp;quot; the rules of a programming language. It is the &amp;quot;Map&amp;quot; that all compiler-builders use.&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;HTML and XML&amp;#039;&amp;#039;&amp;#039; → &amp;quot;Markup Languages&amp;quot; that are &amp;quot;Context-Free.&amp;quot; They rely on &amp;quot;Balanced Tags,&amp;quot; which is why you can&amp;#039;t parse HTML with simple &amp;quot;Regular Expressions&amp;quot; (it&amp;#039;s too complex for an FSM).&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Natural Language Processing (NLP)&amp;#039;&amp;#039;&amp;#039; → The attempt to treat &amp;quot;English&amp;quot; as a &amp;quot;Formal Language&amp;quot; so AIs can understand it. (This was the original goal of Chomsky, but English proved to be &amp;quot;Too Context-Sensitive&amp;quot; for simple math).&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;The &amp;#039;Ambiguous&amp;#039; Grammar&amp;#039;&amp;#039;&amp;#039; → A &amp;quot;Bug&amp;quot; in a language where &amp;quot;One sentence&amp;quot; can have &amp;quot;Two Different Syntax Trees&amp;quot; (e.g., &amp;#039;1 + 2 * 3&amp;#039;—does it mean 7 or 9?). Formal languages must be &amp;quot;Unambiguous&amp;quot; to work in a computer.&lt;br /&gt;
&lt;br /&gt;
== Analyzing ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Regular vs. Context-Free&lt;br /&gt;
! Feature !! Regular Language (Type 3) !! Context-Free Language (Type 2)&lt;br /&gt;
|-&lt;br /&gt;
| Rule Structure || Linear (A -&amp;gt; aB) || Recursive (A -&amp;gt; aAb)&lt;br /&gt;
|-&lt;br /&gt;
| Memory Needed || Zero || One Stack&lt;br /&gt;
|-&lt;br /&gt;
| Complexity || Simple (Search/Match) || High (Nesting/Parsing)&lt;br /&gt;
|-&lt;br /&gt;
| Example || Email Address Format || Python Source Code&lt;br /&gt;
|-&lt;br /&gt;
| Analogy || A &amp;#039;String of Beads&amp;#039; || A &amp;#039;Set of Russian Dolls&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The Concept of &amp;quot;Turing-Completeness&amp;quot;&amp;#039;&amp;#039;&amp;#039;: Analyzing &amp;quot;Power.&amp;quot; If a language is complex enough to &amp;quot;Simulate a Turing Machine&amp;quot; (Type 0), it is &amp;quot;Turing-Complete.&amp;quot; Almost every programming language you use today is Type 0. This means you can &amp;quot;Write a Python interpreter in Python,&amp;quot; which leads to the &amp;quot;Infinite Power&amp;quot; of modern computing.&lt;br /&gt;
&lt;br /&gt;
== Evaluating ==&lt;br /&gt;
Evaluating formal languages:&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;The &amp;quot;Ambiguity&amp;quot; Curse&amp;#039;&amp;#039;&amp;#039;: Why is &amp;quot;Natural Language&amp;quot; so &amp;quot;Messy&amp;quot;? (Does the &amp;quot;Ambiguity&amp;quot; of English actually make us &amp;quot;More Creative,&amp;quot; while the &amp;quot;Precision&amp;quot; of Code makes us &amp;quot;Robotic&amp;quot;?).&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Limits&amp;#039;&amp;#039;&amp;#039;: Can we write a &amp;quot;Formal Grammar&amp;quot; for &amp;quot;Art&amp;quot; or &amp;quot;Music&amp;quot;? (Are there &amp;quot;Rules&amp;quot; that define &amp;#039;Beauty&amp;#039;?).&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Translation&amp;#039;&amp;#039;&amp;#039;: Why is it so &amp;quot;Hard&amp;quot; for a computer to &amp;quot;Translate&amp;quot; between two formal languages without losing the &amp;quot;Meaning&amp;quot; (Semantics)?&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Complexity&amp;#039;&amp;#039;&amp;#039;: As we move up the &amp;quot;Chomsky Hierarchy,&amp;quot; the &amp;quot;Time&amp;quot; it takes to &amp;quot;Parse&amp;quot; the language &amp;quot;Explodes.&amp;quot; Is &amp;quot;Simple&amp;quot; better than &amp;quot;Powerful&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
== Creating ==&lt;br /&gt;
Future Frontiers:&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Self-Evolving Programming Languages&amp;#039;&amp;#039;&amp;#039;: A &amp;quot;Formal Language&amp;quot; that &amp;quot;Re-writes its own Grammar&amp;quot; to become &amp;quot;Easier to use&amp;quot; for a specific human, creating a &amp;quot;Personalized Bridge&amp;quot; to the machine.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;The &amp;#039;Universal&amp;#039; Logic Language&amp;#039;&amp;#039;&amp;#039;: A single formal language for &amp;quot;Law,&amp;quot; &amp;quot;Ethics,&amp;quot; and &amp;quot;Contracts&amp;quot; that &amp;quot;Cannot be misunderstood,&amp;quot; ending &amp;quot;Lawsuits&amp;quot; forever.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;DNA-Compiler&amp;#039;&amp;#039;&amp;#039;: A &amp;quot;Formal Language&amp;quot; for &amp;quot;Biology&amp;quot; that allows a doctor to &amp;quot;Write a Program&amp;quot; (e.g., &amp;#039;Heal Bone&amp;#039;) and &amp;quot;Compile&amp;quot; it into &amp;quot;DNA code&amp;quot; for the body.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Natural-to-Formal AI&amp;#039;&amp;#039;&amp;#039;: An AI that can &amp;quot;Turn any English thought&amp;quot; into a &amp;quot;Perfectly Precise Formal Language,&amp;quot; allowing &amp;quot;Non-programmers&amp;quot; to &amp;quot;Build anything.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;br /&gt;
[[Category:Science]]&lt;br /&gt;
[[Category:Linguistics]]&lt;br /&gt;
[[Category:Computer Science]]&lt;/div&gt;</summary>
		<author><name>Wordpad</name></author>
	</entry>
</feed>