<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://robots.hlt.inesc-id.pt/w/pt/index.php?action=history&amp;feed=atom&amp;title=Top-Down_Parsing%2FExercise_14%3A_Test_2018%2F04%2F07</id>
	<title>Top-Down Parsing/Exercise 14: Test 2018/04/07 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?action=history&amp;feed=atom&amp;title=Top-Down_Parsing%2FExercise_14%3A_Test_2018%2F04%2F07"/>
	<link rel="alternate" type="text/html" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Top-Down_Parsing/Exercise_14:_Test_2018/04/07&amp;action=history"/>
	<updated>2026-05-23T16:09:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Top-Down_Parsing/Exercise_14:_Test_2018/04/07&amp;diff=9813&amp;oldid=prev</id>
		<title>Root: Created page with &quot;{{TOCright}} = Problem =  Consider the following grammar, where &#039;&#039;&#039;S&#039;&#039;&#039; is the initial symbol and &#039;&#039;&#039;{a,b,c,d}&#039;&#039;&#039; is the set of terminal symbols:   R -&gt; c  S -&gt; S b T | T a R...&quot;</title>
		<link rel="alternate" type="text/html" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Top-Down_Parsing/Exercise_14:_Test_2018/04/07&amp;diff=9813&amp;oldid=prev"/>
		<updated>2018-04-23T17:36:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{TOCright}} = Problem =  Consider the following grammar, where &amp;#039;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;#039; is the initial symbol and &amp;#039;&amp;#039;&amp;#039;{a,b,c,d}&amp;#039;&amp;#039;&amp;#039; is the set of terminal symbols:   R -&amp;gt; c  S -&amp;gt; S b T | T a R...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{TOCright}}&lt;br /&gt;
= Problem =&lt;br /&gt;
&lt;br /&gt;
Consider the following grammar, where &amp;#039;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;#039; is the initial symbol and &amp;#039;&amp;#039;&amp;#039;{a,b,c,d}&amp;#039;&amp;#039;&amp;#039; is the set of terminal symbols:&lt;br /&gt;
&lt;br /&gt;
 R -&amp;gt; c&lt;br /&gt;
 S -&amp;gt; S b T | T a R U | c&lt;br /&gt;
 T -&amp;gt; T b | b S a&lt;br /&gt;
 U -&amp;gt; a | d&lt;br /&gt;
&lt;br /&gt;
# Examine the grammar and rewrite it so that an LL(1) predictive parser can be built for the corresponding language.&lt;br /&gt;
# Compute the FIRST and FOLLOW sets for all non-terminal symbols in the new grammar and build the parse table.&lt;br /&gt;
# Show the analysis table (stack, input, and actions) for the parsing process of the &amp;#039;&amp;#039;&amp;#039;cbbca&amp;#039;&amp;#039;&amp;#039; input sequence.&lt;br /&gt;
&lt;br /&gt;
= Solution =&lt;br /&gt;
&lt;br /&gt;
{{CollapsedCode|Solução completa|&lt;br /&gt;
[[image:co18-test1a-ll1.jpg]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[category:Compiladores]]&lt;br /&gt;
[[category:Ensino]]&lt;/div&gt;</summary>
		<author><name>Root</name></author>
	</entry>
</feed>