| |   |
| 15 | 15 | %% "pane" => painel |
| 16 | 16 | %% "AST" => mantido como AST (vale a pena mudar a sigla ou colocar por extenso? |
| 17 | 17 | %% "programmatically" => programaticamente |
| 18 | %% "parsing" => mantido como parsing |
| 19 | %% "load" => carregue (apesar de achar "carregue" um termo incomum |
| 20 | %% "gathers" => |
| 18 | 21 | %% |
| 19 | 22 | %% Nomes de ferramentas como Transcript, "Object Inspector", Debugger e "System Browser", foram mantidos |
| 20 | 23 | %================================================================== |
| … | … | |
| 174 | 174 | Como eu gero uma visualização da \ind{AST} de uma expressão? |
| 175 | 175 | \end{faq} |
| 176 | 176 | \answer |
| 177 | | Load AST from squeaksource.com. Then evaluate: |
| 177 | %Load AST from squeaksource.com. Then evaluate: |
| 178 | Abaixe e carregue o AST do squeaksource.com. Em seguida rode: |
| 179 | %TODO: rode é feio pacas, mas avaliar é estranho -- lsdr |
| 178 | 180 | \begin{code}{} |
| 179 | 181 | (RBParser parseExpression: '3+4') explore |
| 180 | 182 | \end{code} |
| … | … | |
| 224 | 224 | % \item Select \menu{+Repository \go HTTP} |
| 225 | 225 | \item Selecione \menu{+Repository \go HTTP} |
| 226 | 226 | % \item Paste and accept the Registration code snippet; enter your password |
| 227 | | \item Cole o código de registro e aceite; entre com sua senha |
| 227 | \item Cole o código de registro e entre com sua senha; clique em "Accept" |
| 228 | 228 | % \item Select the new repository and \menu{Open} it |
| 229 | 229 | \item Selecione o novo repositório e, em seguida, \menu{Open} |
| 230 | 230 | % \item Select and load the latest version |
| … | … | |
| 232 | 232 | \end{enumerate} |
| 233 | 233 | |
| 234 | 234 | \begin{faq} |
| 235 | | How do I create a SqueakSource project? |
| 235 | %How do I create a SqueakSource project? |
| 236 | Como eu crio um projeto no SqueakSource? |
| 236 | 237 | \end{faq} |
| 237 | 238 | \answer |
| 238 | 239 | \begin{enumerate} |
| 239 | | \item Go to \url{squeaksource.com} |
| 240 | | \item Register yourself as a new member |
| 241 | | \item Register a project (name = category) |
| 242 | | \item Copy the Registration code snippet |
| 243 | | \item \menu{open \go Monticello browser} |
| 244 | | \item \menu{+Package} to add the category |
| 245 | | \item Select the package |
| 240 | %\item Go to \url{squeaksource.com} |
| 241 | \item Entre em \url{squeaksource.com} |
| 242 | %\item Register yourself as a new member |
| 243 | \item Cadastre-se como membro do SqueakSource |
| 244 | %\item Register a project (name = category) |
| 245 | \item Registre um novo projeto |
| 246 | %\item Copy the Registration code snippet |
| 247 | \item Copie o código de registro do projeto |
| 248 | %\item \menu{open \go Monticello browser} |
| 249 | \item \menu{open \go Monticello Browser} |
| 250 | %\item \menu{+Package} to add the category |
| 251 | \item \menu{+Package} para adicionar o pacote (nome do projeto) |
| 252 | %\item Select the package |
| 253 | \item Selecione o pacote |
| 254 | %\item \menu{+Repository \go HTTP} |
| 246 | 255 | \item \menu{+Repository \go HTTP} |
| 247 | | \item Paste and accept the Registration code snippet; enter your password |
| 248 | | \item \menu{Save} to save the first version |
| 256 | %\item Paste and accept the Registration code snippet; enter your password |
| 257 | \item Cole o código de registro e entre com sua senha; clique em "Accept" |
| 258 | %\item \menu{Save} to save the first version |
| 259 | \item \menu{Save} para salvar a primeira versão |
| 249 | 260 | \end{enumerate} |
| 250 | 261 | |
| 251 | 262 | \begin{faq} |
| 252 | | How do I extend \ct{Number} with \ct{Number>>>chf} but have Monticello recognize it as being part of my \ct{Money} project? |
| 263 | %How do I extend \ct{Number} with \ct{Number>>>chf} but have Monticello recognize it as being part of my \ct{Money} project? |
| 264 | Como eu extendo \ct{Number} com \ct{Number>>>chf} mas faço com que o Monticello |
| 265 | reconheça isso como parte do meu projeto \ct{Money}? |
| 253 | 266 | \end{faq} |
| 254 | 267 | \answer |
| 255 | | Put it in a method-category named \ct{*Money}. |
| 256 | | Monticello gathers all methods that are in other categories named like *package and includes them in your package. |
| 268 | %Put it in a method-category named \ct{*Money}. |
| 269 | Coloque em um método-categoria com o nome de \ct{*Money}. |
| 270 | %Monticello gathers all methods that are in other categories named like *package and includes them in your package. |
| 271 | O Monticello agrupa todos os métodos que estão em outras categorias com o nome de *pacote e inclue no seu pacote. |
| 257 | 272 | |
| 258 | 273 | %================================================================= |
| 259 | 274 | %\section{Tools} |
| … | … | |
| 301 | 301 | seguida, em \menu{Register this Browser as default}. |
| 302 | 302 | |
| 303 | 303 | %================================================================= |
| 304 | | \section{Regular expressions and parsing} |
| 304 | %\section{Regular expressions and parsing} |
| 305 | \section{Expressões regulares e parsing} |
| 305 | 306 | |
| 306 | 307 | \begin{faq} |
| 307 | | How can I work with regular expressions? |
| 308 | %How can I work with regular expressions? |
| 309 | Como faço para trabalhar com expressões regulares? |
| 308 | 310 | \index{regular expression package} |
| 309 | 311 | \end{faq} |
| 310 | 312 | \answer |
| 311 | 313 | \ifluluelse |
| 312 | | {Load Vassili Bykov's RegEx package from: \\ |
| 314 | %{Load Vassili Bykov's RegEx package from: \\ |
| 315 | %\url{www.squeaksource.com/Regex.html}} |
| 316 | %{Load Vassili Bykov's RegEx package from: |
| 317 | %\url{www.squeaksource.com/Regex.html}} |
| 318 | {Carregue o pacote de RegEx do Vassili Bykov de: \\ |
| 313 | 319 | \url{www.squeaksource.com/Regex.html}} |
| 314 | | {Load Vassili Bykov's RegEx package from: |
| 320 | {Carregue o pacote de RegEx do Vassili Bykov de: |
| 315 | 321 | \url{www.squeaksource.com/Regex.html}} |
| 316 | 322 | \index{Bykov, Vassili} |
| 317 | 323 | |
| 318 | 324 | \begin{faq} |
| 319 | | Where is the documentation for the RegEx package? |
| 325 | %Where is the documentation for the RegEx package? |
| 326 | Onde está a documentação do pacote RegEx? |
| 320 | 327 | \end{faq} |
| 321 | 328 | \answer |
| 322 | | Look at the \menu{DOCUMENTATION} protocol of \ct{RxParser class} in the \menu{VB-Regex} category. |
| 329 | %Look at the \menu{DOCUMENTATION} protocol of \ct{RxParser class} in the \menu{VB-Regex} category. |
| 330 | Procure em \menu{DOCUMENTATION} da \ct{classe RxParser} na categoria \menu{VB-Regex}. |
| 323 | 331 | |
| 324 | 332 | \begin{faq} |
| 325 | | Are there tools for writing parsers? |
| 333 | %Are there tools for writing parsers? |
| 334 | Existem ferramentas para escrever parsers? |
| 326 | 335 | \end{faq} |
| 327 | 336 | \answer |
| 328 | | Use \ind{SmaCC}\,---\,the Smalltalk Compiler Compiler. |
| 329 | | You should install at least SmaCC-lr.13. |
| 330 | | Load it from \url{www.squeaksource.com/SmaccDevelopment.html}. |
| 331 | | There is a nice tutorial online: |
| 337 | %Use \ind{SmaCC}\,---\,the Smalltalk Compiler Compiler. |
| 338 | Use o \ind{SmaCC}\,---\,the Smalltalk Compiler Compiler. |
| 339 | %You should install at least SmaCC-lr.13. |
| 340 | Você deve instalar no mínimo o SmaCC-lr.13. |
| 341 | %Load it from \url{www.squeaksource.com/SmaccDevelopment.html}. |
| 342 | Carregue-o de \url{www.squeaksource.com/SmaccDevelopment.html}. |
| 343 | %There is a nice tutorial online: |
| 344 | Existe um bom tutorial online: |
| 332 | 345 | \url{www.refactory.com/Software/SmaCC/Tutorial.html} |
| 333 | 346 | |
| 334 | 347 | \begin{faq} |
| 335 | | Which packages should I load from SqueakSource SmaccDevelopment to write parsers? |
| 348 | %Which packages should I load from SqueakSource SmaccDevelopment to write parsers? |
| 349 | Quais pacotes eu devo carregar do SqueakSource SmaccDevelopment para escrever parsers? |
| 336 | 350 | \end{faq} |
| 337 | 351 | \answer |
| 338 | | Load the latest version of \ind{SmaCCDev}{}\,---\,the runtime is already there. |
| 339 | | (SmaCC-Development is for \sq 3.8) |
| 352 | %Load the latest version of \ind{SmaCCDev}{}\,---\,the runtime is already there. |
| 353 | Carregue a última versão do \ind{SmaCCDev}{}\,---\, o runtime já está contido |
| 354 | no pacote. |
| 355 | %(SmaCC-Development is for \sq 3.8) |
| 356 | (SmaCC-Development é para o \sq 3.8) |
| 357 | %TODO: verificar essa informação. |
| 340 | 358 | |
| 341 | 359 | %================================================================= |
| 342 | 360 | \ifx\wholebook\relax\else\end{document}\fi |
| toggle raw diff |
--- a/PortugueseBook/FAQ/FAQ.tex
+++ b/PortugueseBook/FAQ/FAQ.tex
@@ -15,6 +15,9 @@
%% "pane" => painel
%% "AST" => mantido como AST (vale a pena mudar a sigla ou colocar por extenso?
%% "programmatically" => programaticamente
+%% "parsing" => mantido como parsing
+%% "load" => carregue (apesar de achar "carregue" um termo incomum
+%% "gathers" =>
%%
%% Nomes de ferramentas como Transcript, "Object Inspector", Debugger e "System Browser", foram mantidos
%==================================================================
@@ -171,7 +174,9 @@ abstractMethods value: Collection --> an IdentitySet(#remove:ifAbsent: #add: #do
Como eu gero uma visualização da \ind{AST} de uma expressão?
\end{faq}
\answer
-Load AST from squeaksource.com. Then evaluate:
+%Load AST from squeaksource.com. Then evaluate:
+Abaixe e carregue o AST do squeaksource.com. Em seguida rode:
+%TODO: rode é feio pacas, mas avaliar é estranho -- lsdr
\begin{code}{}
(RBParser parseExpression: '3+4') explore
\end{code}
@@ -219,7 +224,7 @@ Como eu carrego um projeto do \ind{Squeaksource}?
% \item Select \menu{+Repository \go HTTP}
\item Selecione \menu{+Repository \go HTTP}
% \item Paste and accept the Registration code snippet; enter your password
- \item Cole o código de registro e aceite; entre com sua senha
+ \item Cole o código de registro e entre com sua senha; clique em "Accept"
% \item Select the new repository and \menu{Open} it
\item Selecione o novo repositório e, em seguida, \menu{Open}
% \item Select and load the latest version
@@ -227,28 +232,43 @@ Como eu carrego um projeto do \ind{Squeaksource}?
\end{enumerate}
\begin{faq}
-How do I create a SqueakSource project?
+%How do I create a SqueakSource project?
+Como eu crio um projeto no SqueakSource?
\end{faq}
\answer
\begin{enumerate}
- \item Go to \url{squeaksource.com}
- \item Register yourself as a new member
- \item Register a project (name = category)
- \item Copy the Registration code snippet
- \item \menu{open \go Monticello browser}
- \item \menu{+Package} to add the category
- \item Select the package
+ %\item Go to \url{squeaksource.com}
+ \item Entre em \url{squeaksource.com}
+ %\item Register yourself as a new member
+ \item Cadastre-se como membro do SqueakSource
+ %\item Register a project (name = category)
+ \item Registre um novo projeto
+ %\item Copy the Registration code snippet
+ \item Copie o código de registro do projeto
+ %\item \menu{open \go Monticello browser}
+ \item \menu{open \go Monticello Browser}
+ %\item \menu{+Package} to add the category
+ \item \menu{+Package} para adicionar o pacote (nome do projeto)
+ %\item Select the package
+ \item Selecione o pacote
+ %\item \menu{+Repository \go HTTP}
\item \menu{+Repository \go HTTP}
- \item Paste and accept the Registration code snippet; enter your password
- \item \menu{Save} to save the first version
+ %\item Paste and accept the Registration code snippet; enter your password
+ \item Cole o código de registro e entre com sua senha; clique em "Accept"
+ %\item \menu{Save} to save the first version
+ \item \menu{Save} para salvar a primeira versão
\end{enumerate}
\begin{faq}
-How do I extend \ct{Number} with \ct{Number>>>chf} but have Monticello recognize it as being part of my \ct{Money} project?
+%How do I extend \ct{Number} with \ct{Number>>>chf} but have Monticello recognize it as being part of my \ct{Money} project?
+Como eu extendo \ct{Number} com \ct{Number>>>chf} mas faço com que o Monticello
+reconheça isso como parte do meu projeto \ct{Money}?
\end{faq}
\answer
-Put it in a method-category named \ct{*Money}.
-Monticello gathers all methods that are in other categories named like *package and includes them in your package.
+%Put it in a method-category named \ct{*Money}.
+Coloque em um método-categoria com o nome de \ct{*Money}.
+%Monticello gathers all methods that are in other categories named like *package and includes them in your package.
+O Monticello agrupa todos os métodos que estão em outras categorias com o nome de *pacote e inclue no seu pacote.
%=================================================================
%\section{Tools}
@@ -281,42 +301,60 @@ Clique no ícone do menu em cima e à esquerda da janela do navegador e, em
seguida, em \menu{Register this Browser as default}.
%=================================================================
-\section{Regular expressions and parsing}
+%\section{Regular expressions and parsing}
+\section{Expressões regulares e parsing}
\begin{faq}
-How can I work with regular expressions?
+%How can I work with regular expressions?
+Como faço para trabalhar com expressões regulares?
\index{regular expression package}
\end{faq}
\answer
\ifluluelse
- {Load Vassili Bykov's RegEx package from: \\
+ %{Load Vassili Bykov's RegEx package from: \\
+ %\url{www.squeaksource.com/Regex.html}}
+ %{Load Vassili Bykov's RegEx package from:
+ %\url{www.squeaksource.com/Regex.html}}
+ {Carregue o pacote de RegEx do Vassili Bykov de: \\
\url{www.squeaksource.com/Regex.html}}
- {Load Vassili Bykov's RegEx package from:
+ {Carregue o pacote de RegEx do Vassili Bykov de:
\url{www.squeaksource.com/Regex.html}}
\index{Bykov, Vassili}
\begin{faq}
-Where is the documentation for the RegEx package?
+%Where is the documentation for the RegEx package?
+Onde está a documentação do pacote RegEx?
\end{faq}
\answer
-Look at the \menu{DOCUMENTATION} protocol of \ct{RxParser class} in the \menu{VB-Regex} category.
+%Look at the \menu{DOCUMENTATION} protocol of \ct{RxParser class} in the \menu{VB-Regex} category.
+Procure em \menu{DOCUMENTATION} da \ct{classe RxParser} na categoria \menu{VB-Regex}.
\begin{faq}
-Are there tools for writing parsers?
+%Are there tools for writing parsers?
+Existem ferramentas para escrever parsers?
\end{faq}
\answer
-Use \ind{SmaCC}\,---\,the Smalltalk Compiler Compiler.
-You should install at least SmaCC-lr.13.
-Load it from \url{www.squeaksource.com/SmaccDevelopment.html}.
-There is a nice tutorial online:
+%Use \ind{SmaCC}\,---\,the Smalltalk Compiler Compiler.
+Use o \ind{SmaCC}\,---\,the Smalltalk Compiler Compiler.
+%You should install at least SmaCC-lr.13.
+Você deve instalar no mínimo o SmaCC-lr.13.
+%Load it from \url{www.squeaksource.com/SmaccDevelopment.html}.
+Carregue-o de \url{www.squeaksource.com/SmaccDevelopment.html}.
+%There is a nice tutorial online:
+Existe um bom tutorial online:
\url{www.refactory.com/Software/SmaCC/Tutorial.html}
\begin{faq}
-Which packages should I load from SqueakSource SmaccDevelopment to write parsers?
+%Which packages should I load from SqueakSource SmaccDevelopment to write parsers?
+Quais pacotes eu devo carregar do SqueakSource SmaccDevelopment para escrever parsers?
\end{faq}
\answer
-Load the latest version of \ind{SmaCCDev}{}\,---\,the runtime is already there.
-(SmaCC-Development is for \sq 3.8)
+%Load the latest version of \ind{SmaCCDev}{}\,---\,the runtime is already there.
+Carregue a última versão do \ind{SmaCCDev}{}\,---\, o runtime já está contido
+no pacote.
+%(SmaCC-Development is for \sq 3.8)
+(SmaCC-Development é para o \sq 3.8)
+%TODO: verificar essa informação.
%=================================================================
\ifx\wholebook\relax\else\end{document}\fi |