<?xml version="1.0" encoding="UTF-8"?>
<linguagem>
<topico>
<nome>Python 3.0</nome>
<titulo>Python 3.0: Diagrama Sintático -
Diagrama de Sintaxe, BNF, Comandos, Exemplos</titulo>
<descritor>apoie, apoie.org, Python,
file_input, single_input, eval_input, stmt, if_stmt, while_stmt,
for_stmt, with_stmt, decorator, classdef, funcdef, small_stmt,
expr_stmt, flow_stmt, import_stmt, import_from, import_as_names,
try_stmt, except_clause, typedargslist, name_test, tfpdef, test, suite,
arglist, argument, varargslist, name_test_list, yield_expr, or_test,
expr, atom, testlist_comp, dictorsetmaker, trailer, subscript,
dotted_as_names, comp_for, test_nocond, BNF, Diagrama Sintático -
Diagrama de Sintaxe, Exemplo, Comandos, Linguagem, Filtro, xml,
sintaxe, sintaxe original, desenho, programação</descritor>
<lead>Sintaxes representadas por &lt;a href=&quot;DiagramaSintatico.htm&quot; target=&quot;_blank&quot;&gt;Diagrama Sintático -
Diagrama de Sintaxe&lt;/a&gt; &lt;a href=&quot;Bnf2Ds.html&quot;&gt;gerados a partir de&lt;/a&gt; &lt;a href=&quot;LazyBNFExemplo.htm&quot; target=&quot;_blank&quot;&gt;BNF&lt;/a&gt; &lt;img src=&quot;Wikipedia.gif&quot;&gt;.</lead>
<link>&lt;a href=&quot;http://www.python.org&quot; target=&quot;_blank&quot;&gt;&lt;img style=&quot;border: 0px solid ;&quot; alt=&quot;Python&quot; title=&quot;Python&quot; src=&quot;Python.png&quot;&gt;&lt;/a&gt; &lt;a href=&quot;Python30Original.htm&quot; target=&quot;_blank&quot;&gt;Diagrama Sintático - Diagrama de Sintaxe Original&lt;/a&gt; &lt;a href=&quot;http://pt.wikipedia.org/wiki/Python&quot; target=&quot;_blank&quot;&gt;&lt;img style=&quot;border: 0px solid ;&quot; alt=&quot;wikipedia&quot; title=&quot;Wikipedia&quot; src=&quot;Wikipedia.gif&quot;&gt;&lt;/a&gt;</link>
<link> Genial: &lt;a href=&quot;http://www.pythontutor.com/&quot;&gt;http://www.pythontutor.com&lt;/a&gt;
- Digite seu próprio código e veja &quot;graficamente&quot; como ele é executado
no seu computador. Dica de rodrigodelimavieiraatgmail.com 20set2012 </link>
<origem>Python3.xml</origem>
<referencia>~DSGerador~</referencia>
<fonte>http://www.python.org/doc/3.0/reference/grammar.html</fonte>
 </topico>
&lt;br&gt;
<topico>
<titulo>print</titulo>
<bnf>print&quot;([expr(&quot;,&quot;expr)*[&quot;,&quot;]]&amp;nbsp; &lt;br&gt;
</bnf>
<desc>&lt;img style=&quot;width: 369px; height: 67px;&quot; alt=&quot;&quot; src=&quot;Python3print.png&quot;&gt;&lt;br&gt;
&lt;br&gt;
</desc>
 &lt;br&gt;
<exemplo>
&lt;table style=&quot;width: 775px; height: 62px;&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;print(&#039;para instalar o python faça Download do ambiente livre Python 3.4 Anaconda: http://continuum.io/downloads&#039; )&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;para instalar o python faça Download do ambiente livre Python 3.4 Anaconda: http://continuum.io/downloads&lt;/span&gt;&lt;br&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;span class=&quot;codigo&quot;&gt;&lt;/span&gt;
&lt;table style=&quot;width: 897px; height: 84px;&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;saida= &lt;/span&gt;&lt;span class=&quot;InicioLinha&quot;&gt;&#039;para instalar o ambiente &lt;/span&gt;&lt;span class=&quot;InicioLinha&quot;&gt;Python 3.4 Anaconda&lt;/span&gt;&lt;span class=&quot;InicioLinha&quot;&gt; faça Download: http://continuum.io/downloads&#039;&lt;/span&gt;&lt;span class=&quot;codigo&quot;&gt;&lt;/span&gt;&lt;br&gt;&lt;span class=&quot;InicioLinha&quot;&gt;print(saida)&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold;&quot; class=&quot;codigo&quot;&gt;&lt;pre&gt;&lt;span class=&quot;codigo&quot;&gt;&lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;para instalar o ambiente &lt;/span&gt;&lt;span class=&quot;InicioLinha&quot;&gt;Python 3.4 Anaconda&lt;/span&gt;&lt;span class=&quot;InicioLinha&quot;&gt; faça Download: http://continuum.io/downloads&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;span class=&quot;codigo&quot;&gt;&lt;/span&gt;&lt;span class=&quot;codigo&quot;&gt;&lt;/span&gt;
&lt;table style=&quot;width: 775px; height: 62px;&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;saida2=&#039;nesta string eu tenho aspas simples (\&#039;) e aspas duplas(&quot;)&#039; &lt;br&gt;print(saida2)&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;nesta string eu tenho aspas simples (&#039;) e aspas duplas(&quot;)&lt;/span&gt;&lt;br&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;span class=&quot;codigo&quot;&gt;&lt;/span&gt;
&lt;table style=&quot;width: 775px; height: 62px;&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;print(&#039;um comando&#039; + &#039; &#039; + &#039;que ocupe&#039; + &#039; &#039; + &#039;duas ou mais linhas&#039;)&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;um comando que ocupe duas ou mais linhas&lt;/span&gt;&lt;br&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;span class=&quot;codigo&quot;&gt;&lt;/span&gt;
&lt;table style=&quot;width: 775px; height: 62px;&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;texto = &#039;&#039;&#039;There are two candidates for the TIOBE programming language of the year award that will &lt;br&gt;be announced around the 1st of January 2015. These are statistical language R (+1.38%) and Apple&#039;s &lt;br&gt;new .....&#039;&#039;&#039;&lt;br&gt;print(texto)&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;There are two candidates for the TIOBE programming language of the year&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;award that will be announced around the 1st of January 2015. These are&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;statistical language R (+1.38%) and Apple&#039;s new.....&lt;/span&gt;&lt;br&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;span class=&quot;codigo&quot;&gt;&lt;/span&gt;
&lt;table style=&quot;width: 775px; height: 82px;&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;texto&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;There are two candidates for the TIOBE programming language of the&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;year award that will be announced around the 1st of January 2015. These&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;are statistical language R (+1.38%) and Apple&#039;s new ....&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;&lt;/span&gt;&lt;br&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;span class=&quot;codigo&quot;&gt;&lt;/span&gt;
&lt;table style=&quot;width: 775px; height: 74px;&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;print(&#039;tamanho do texto é:&#039;len(texto))&lt;/span&gt;  &lt;span class=&quot;codigo&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-weight: bold;&quot; class=&quot;codigo&quot;&gt;&lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;tamanho do texto é:510&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
</exemplo>
 &lt;br&gt;
</topico>
&lt;br&gt;
<topico>
<titulo>file_input</titulo>
<bnf>[(NEWLINE | stmt)+] ENDMARKER</bnf>
<desc>&lt;img src=&quot;Python3file_input.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 file_input&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 file_input&quot;&gt;</desc>
 </topico>
<topico>
<titulo>single_input</titulo>
<bnf>stmt? NEWLINE</bnf>
<desc>&lt;img src=&quot;Python3single_input.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 single_input&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 single_input&quot;&gt;</desc>
 </topico>
<topico>
<titulo>eval_input</titulo>
<bnf>test {&#039;,&#039; test} &#039;,&#039;? [NEWLINE+]
ENDMARKER</bnf>
<desc>&lt;img src=&quot;Python3eval_input.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 eval_input&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 eval_input&quot;&gt;</desc>
 </topico>
<topico>
<titulo>stmt</titulo>
<bnf>small_stmt (&#039;;&#039; small_stmt)* &#039;;&#039;?
|if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | [decorator+]
(classdef | funcdef)</bnf>
<desc>&lt;img src=&quot;Python3stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 stmt&quot;&gt;</desc>
 </topico>
<topico>
<titulo>if_stmt</titulo>
<bnf>&#039;if&#039; [(test &#039;:&#039; suite &#039;elif&#039;)+] test &#039;:&#039;
suite [&#039;else&#039; &#039;:&#039; suite]</bnf>
<desc>&lt;img src=&quot;Python3if_stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 if_stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 if_stmt&quot;&gt;</desc>
<exemplo>
&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;x=10&lt;br&gt;if x &amp;lt; 0:&lt;br&gt;    x = 0&lt;br&gt;    print (&#039;Negative changed to zero&#039;)&lt;br&gt;elif x == 0:&lt;br&gt;    print (&#039;Zero&#039;)&lt;br&gt;elif x == 1:&lt;br&gt;       print (&#039;Single&#039;)&lt;br&gt;else:&lt;br&gt;   print (&#039;More&#039;)&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
More&lt;br&gt;
</exemplo>
 </topico>
<topico>
<titulo>while_stmt</titulo>
<bnf>&#039;while&#039; test&#039;:&#039; suite [&#039;else&#039; &#039;:&#039; suite]</bnf>
<desc>&lt;img src=&quot;Python3while_stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 while_stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 while_stmt&quot;&gt;</desc>
<exemplo>
&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;# Fibonacci series:&lt;br&gt;# the sum of two elements defines the next&lt;br&gt;a, b = 0, 1&lt;br&gt;while b &amp;lt; 10:&lt;br&gt;    print (b)&lt;br&gt;    a, b = b, a+b&lt;/span&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
1&lt;br&gt;
1&lt;br&gt;
2&lt;br&gt;
3&lt;br&gt;
5&lt;br&gt;
8&lt;br&gt;
</exemplo>
 </topico>
<topico>
<titulo>for_stmt</titulo>
<bnf>&#039;for&#039; &#039;*&#039;? expr (&#039;,&#039; &#039;*&#039;? expr)* &#039;,&#039;?
&#039;in&#039; test (&#039;,&#039; test)* &#039;,&#039;? &#039;:&#039; suite[&#039;else&#039; &#039;:&#039; suite]</bnf>
<desc>&lt;img src=&quot;Python3for_stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 for_stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 for_stmt&quot;&gt;</desc>
<exemplo>
&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span class=&quot;codigo&quot;&gt;
      &lt;pre&gt;&lt;span class=&quot;InicioLinha&quot;&gt;# Measure some strings:&lt;br&gt;a = [&#039;cat&#039;, &#039;window&#039;, &#039;defenestrate&#039;]&lt;br&gt;for x in a:&lt;br&gt;    print (x, len(x))&lt;/span&gt;&lt;/pre&gt;
      &lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
cat 3&lt;br&gt;
window 6&lt;br&gt;
defenestrate 12&lt;br&gt;
</exemplo>
 </topico>
<topico>
<titulo>with_stmt</titulo>
<bnf>&#039;with&#039; test [ &#039;as&#039; expr ] &#039;:&#039; suite</bnf>
<desc>&lt;img src=&quot;Python3with_stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 with_stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 with_stmt&quot;&gt;</desc>
 </topico>
<topico>
<titulo>decorator</titulo>
<bnf>&#039;@&#039; NAME (&#039;.&#039; NAME)* [ &#039;(&#039; arglist&#039;)&#039; ]
NEWLINE</bnf>
<desc>&lt;img src=&quot;Python3decorator.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 decorator&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 decorator&quot;&gt;</desc>
 </topico>
<topico>
<titulo>classdef</titulo>
<bnf>&#039;class&#039; NAME [&#039;(&#039; arglist &#039;)&#039;] &#039;:&#039; suite</bnf>
<desc>&lt;img src=&quot;Python3classdef.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 classdef&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 classdef&quot;&gt;</desc>
 </topico>
<topico>
<titulo>funcdef</titulo>
<bnf>&#039;def&#039; NAME &#039;(&#039; typedargslist&#039;)&#039;[&#039;-&amp;gt;&#039;
test] &#039;:&#039; suite</bnf>
<desc>&lt;img src=&quot;Python3funcdef.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 funcdef&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 funcdef&quot;&gt;</desc>
 </topico>
<topico>
<titulo>small_stmt</titulo>
<bnf>expr_stmt | &#039;del&#039; &#039;*&#039;? expr (&#039;,&#039; &#039;*&#039;?
expr)* &#039;,&#039;? | &#039;pass&#039;| flow_stmt | import_stmt | (&#039;global &#039;|&#039; nonlocal&#039;)
NAME (&#039;,&#039; NAME)* |&#039;assert&#039; test [&#039;,&#039; test]</bnf>
<desc>&lt;img src=&quot;Python3small_stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 small_stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 small_stmt&quot;&gt;</desc>
 </topico>
<topico>
<titulo>expr_stmt</titulo>
<bnf>test (&#039;,&#039; test)* &#039;,&#039;? (&#039;+ - * / ** &amp;amp;
| ^ &amp;lt; &amp;lt; &amp;gt; &amp;gt; //&#039; &#039;=&#039; (yield_expr | test (&#039;,&#039; test)*
&#039;,&#039;?)|(&#039;=&#039; (yield_expr | test (&#039;,&#039; test)* &#039;,&#039;?))+ | &quot;&quot;)</bnf>
<desc>&lt;img src=&quot;Python3expr_stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 expr_stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 expr_stmt&quot;&gt;</desc>
 </topico>
<topico>
<titulo>flow_stmt</titulo>
<bnf>&#039;break&#039;| &#039;continue&#039; | &#039;return&#039; [test
(&#039;,&#039; test)* &#039;,&#039;?] | &#039;raise&#039; [test [&#039;from&#039; test]] | yield_expr</bnf>
<desc>&lt;img src=&quot;Python3flow_stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 flow_stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 flow_stmt&quot;&gt;</desc>
 </topico>
<topico>
<titulo>import_stmt</titulo>
<bnf>&#039;import&#039; dotted_as_names | import_from</bnf>
<desc>&lt;img src=&quot;Python3import_stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 import_stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 import_stmt&quot;&gt;</desc>
 </topico>
<topico>
<titulo>import_from</titulo>
<bnf>&#039;from&#039; ([(&#039;.&#039; | &#039;...&#039;)+] NAME (&#039;.&#039;NAME)*
| (&#039;.&#039; |&#039;...&#039;)+) &#039;import&#039; (&#039;*&#039; | &#039;(&#039; import_as_names &#039;)&#039; |
import_as_names)</bnf>
<desc>&lt;img src=&quot;Python3import_from.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 import_from&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 import_from&quot;&gt;</desc>
 </topico>
<topico>
<titulo>import_as_names</titulo>
<bnf>NAME [&#039;as&#039; NAME] (&#039;,&#039; NAME [&#039;as&#039; NAME])*
&#039;,&#039;?</bnf>
<desc>&lt;img src=&quot;Python3import_as_names.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 import_as_names&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 import_as_names&quot;&gt;</desc>
 </topico>
<topico>
<titulo>try_stmt</titulo>
<bnf>&#039;try&#039; &#039;:&#039; suite((except_clause &#039;:&#039;
suite)+ [&#039;else&#039; &#039;:&#039; suite] (&quot;&quot; | &#039;finally&#039; &#039;:&#039; suite) | &#039;finally&#039; &#039;:&#039;
suite)</bnf>
<desc>&lt;img src=&quot;Python3try_stmt.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 try_stmt&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 try_stmt&quot;&gt;</desc>
 </topico>
<topico>
<titulo>except_clause</titulo>
<bnf>&#039;except&#039; [test [&#039;as&#039; NAME]]</bnf>
<desc>&lt;img src=&quot;Python3except_clause.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 except_clause&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 except_clause&quot;&gt;</desc>
 </topico>
<topico>
<titulo>typedargslist</titulo>
<bnf>([name_test &#039;,&#039;](&#039;*&#039; tfpdef? [&#039;,&#039;
name_test] [&#039;,&#039; &#039;**&#039; tfpdef] | &#039;**&#039; tfpdef) | name_test? &#039;,&#039;?)</bnf>
<desc>&lt;img src=&quot;Python3typedargslist.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 typedargslist&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 typedargslist&quot;&gt;</desc>
 </topico>
<topico>
<titulo>name_test</titulo>
<bnf>tfpdef [&#039;=&#039; test] (&#039;,&#039; tfpdef [&#039;=&#039;
test])*</bnf>
<desc>&lt;img src=&quot;Python3name_test.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 name_test&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 name_test&quot;&gt;</desc>
 </topico>
<topico>
<titulo>tfpdef</titulo>
<bnf>NAME [&#039;:&#039; test]</bnf>
<desc>&lt;img src=&quot;Python3tfpdef.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 tfpdef&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 tfpdef&quot;&gt;</desc>
 </topico>
<topico>
<titulo>test</titulo>
<bnf>or_test [&#039;if&#039; or_test &#039;else&#039; test] |
&#039;lambda&#039; varargslist &#039;:&#039; test</bnf>
<desc>&lt;img src=&quot;Python3test.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 test&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 test&quot;&gt;</desc>
 </topico>
<topico>
<titulo>suite</titulo>
<bnf>small_stmt (&#039;;&#039; small_stmt)* [&#039;;&#039;]
NEWLINE | NEWLINE INDENT stmt+ DEDENT</bnf>
<desc>&lt;img src=&quot;Python3suite.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 suite&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 suite&quot;&gt;</desc>
 </topico>
<topico>
<titulo>arglist</titulo>
<bnf>(argument &#039;,&#039;)* (argument [&#039;,&#039;] | &#039;*&#039;
test (&#039;,&#039; argument)* [&#039;,&#039; &#039;**&#039; test] | &#039;**&#039; test)</bnf>
<desc>&lt;img src=&quot;Python3arglist.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 arglist&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 arglist&quot;&gt;</desc>
 </topico>
<topico>
<titulo>argument</titulo>
<bnf>test (comp_for? | test &#039;=&#039; test)</bnf>
<desc>&lt;img src=&quot;Python3argument.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 argument&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 argument&quot;&gt;</desc>
 </topico>
<topico>
<titulo>varargslist</titulo>
<bnf>name_test_list &#039;,&#039; (&#039;*&#039; [NAME] [&#039;,&#039;
name_test_list] [&#039;,&#039; &#039;**&#039; NAME] | &#039;**&#039; NAME)| name_test_list [&#039;,&#039;]</bnf>
<desc>&lt;img src=&quot;Python3varargslist.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 varargslist&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 varargslist&quot;&gt;</desc>
 </topico>
<topico>
<titulo>name_test_list</titulo>
<bnf>NAME [&#039;=&#039; test]{&#039;,&#039; NAME [&#039;=&#039; test]}</bnf>
<desc>&lt;img src=&quot;Python3name_test_list.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 name_test_list&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 name_test_list&quot;&gt;</desc>
 </topico>
<topico>
<titulo>yield_expr</titulo>
<bnf>&#039;yield&#039; [test (&#039;,&#039; test)* &#039;,&#039;?]</bnf>
<desc>&lt;img src=&quot;Python3yield_expr.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 yield_expr&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 yield_expr&quot;&gt;</desc>
 </topico>
<topico>
<titulo>or_test</titulo>
<bnf>(&#039;not&#039;+)? &#039;*&#039;? expr(&quot;&amp;lt; | &amp;gt; | == |
&amp;gt;= | &amp;lt;= | != | in | not in | is | is not&quot; &#039;*&#039;?expr)* ((&#039;and&#039; |
&#039;or&#039;) (&#039;not&#039;+)? &#039;*&#039;? expr(&quot;&amp;lt; | &amp;gt; | == | &amp;gt;= | &amp;lt;= | != | in |
not in | is | is not&quot; &#039;*&#039; ?expr)*)*</bnf>
<desc>&lt;img src=&quot;Python3or_test.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 or_test&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 or_test&quot;&gt;</desc>
 </topico>
<topico>
<titulo>expr</titulo>
<bnf>&#039;+ | - | ~&#039;? atom [trailer+](&#039;+ - * / %
** &amp;amp; | ^ &amp;lt;&amp;lt; &amp;gt;&amp;gt; //&#039; &#039;+ | - | ~&#039;? atom [trailer+])*</bnf>
<desc>&lt;img src=&quot;Python3expr.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 expr&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 expr&quot;&gt;</desc>
 </topico>
<topico>
<titulo>atom</titulo>
<bnf>(&#039;(&#039; ([yield_expr]|testlist_comp)
&#039;)&#039;|&#039;[&#039;testlist_comp&#039;]&#039;|&#039;{&#039;dictorsetmaker &#039;}&#039; |NAME | NUMBER | STRING+
| &#039;...&#039; | &#039;None&#039; | &#039;True&#039; | &#039;False&#039;)</bnf>
<desc>&lt;img src=&quot;Python3atom.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 atom&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 atom&quot;&gt;</desc>
 </topico>
<topico>
<titulo>testlist_comp</titulo>
<bnf>[test (comp_for | [(&#039;,&#039; test)+] [&#039;,&#039;])]</bnf>
<desc>&lt;img src=&quot;Python3testlist_comp.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 testlist_comp&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 testlist_comp&quot;&gt;</desc>
 </topico>
<topico>
<titulo>dictorsetmaker</titulo>
<bnf>test ( (&#039;:&#039; test (comp_for |[(&#039;,&#039; test
&#039;:&#039; test)+] &#039;,&#039;?)) |[(comp_for | &#039;,&#039; test)+] &#039;,&#039;? )</bnf>
<desc>&lt;img src=&quot;Python3dictorsetmaker.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 dictorsetmaker&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 dictorsetmaker&quot;&gt;</desc>
 </topico>
<topico>
<titulo>trailer</titulo>
<bnf>&#039;(&#039; arglist &#039;)&#039; | &#039;[&#039; subscript
(&#039;,&#039;subscript)* &#039;,&#039;? &#039;]&#039; |&#039;.&#039; NAME</bnf>
<desc>&lt;img src=&quot;Python3trailer.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 trailer&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 trailer&quot;&gt;</desc>
 </topico>
<topico>
<titulo>subscript</titulo>
<bnf>test | [test] &#039;:&#039; test? (&#039;:&#039; test?)?</bnf>
<desc>&lt;img src=&quot;Python3subscript.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 subscript&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 subscript&quot;&gt;</desc>
 </topico>
<topico>
<titulo>dotted_as_names</titulo>
<bnf>NAME (&#039;.&#039; NAME)* [&#039;as&#039; NAME](&#039;,&#039; NAME
(&#039;.&#039; NAME)*[&#039;as&#039; NAME])*</bnf>
<desc>&lt;img src=&quot;Python3dotted_as_names.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 dotted_as_names&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 dotted_as_names&quot;&gt;</desc>
 </topico>
<topico>
<titulo>comp_for</titulo>
<bnf>(&#039;for&#039; &#039;*&#039;? expr (&#039;,&#039; &#039;*&#039;? expr)* &#039;,&#039;?
&#039;in&#039; or_test [(&#039;if&#039;test_nocond)+])+</bnf>
<desc>&lt;img src=&quot;Python3comp_for.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 comp_for&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 comp_for&quot;&gt;</desc>
 </topico>
<topico>
<titulo>test_nocond</titulo>
<bnf>or_test | &#039;lambda&#039; varargslist &#039;:&#039;
test_nocond</bnf>
<desc>&lt;img src=&quot;Python3test_nocond.png&quot; alt=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 test_nocond&quot; title=&quot;Diagrama Sintático - Diagrama de Sintaxe Python 3.0 test_nocond&quot;&gt;</desc>
 </topico>
</linguagem>
