Compiladores/Projecto de Compiladores: Difference between revisions
From Wiki**3
< Compiladores
Line 14: | Line 14: | ||
* [[Compiladores/Projecto de Compiladores/Máquina Virtual|Máquina Virtual]] - imagem de máquina virtual contendo todo o material de apoio | * [[Compiladores/Projecto de Compiladores/Máquina Virtual|Máquina Virtual]] - imagem de máquina virtual contendo todo o material de apoio | ||
* [[Compiladores/ | * [[Postfix Reference Guide]] | ||
* [[Quick-and-Dirty Guide to Transforming Compact into your Compiler]] ('''obsolete''') (use at your own risk) | |||
* "[[Construção de Compiladores em C++ usando Objectos e Padrões]]" [http://www.l2f.inesc-id.pt/~david/ist/docencia/compiladores/howto.pdf PDF] (''outdated'') (CDK3) | |||
* [[Tópicos Rápidos sobre C++]] - A Guide for the Perplexed (with examples) | |||
* [[Quick topics on compiling and linking in C/C++]] | |||
* [[Tools and Development Environment (make & cvs)|Tools and Development Environment]] (small guide to practical tools: make and cvs) | |||
[[category:Projecto de Compiladores | == Using xml2dot to draw ASTs == | ||
[[category:Compiladores | |||
[[category:Ensino | The xml2dot JAR can be Googled and used as shown below: | ||
Example for the Compact language: | |||
compact myprog.cpt -target xml | |||
java -cp xml2dot.jar xml2dot.xml2dot myprog.xml | |||
Note that "compact" is assumed to be available in the PATH. Otherwise, the explicit path must be provided, e.g., ./compact or other specification. | |||
[[category:Projecto de Compiladores]] | |||
[[category:Compiladores]] | |||
[[category:Ensino]] |
Revision as of 21:56, 14 February 2015
Introdução
- Fases de Desenvolvimento
- Compiladores Exemplo - Simple, Compact, pf2asm, tiny
Manual de Referência da Linguagem
Material de Apoio e Testes
- Material de Apoio ao Desenvolvimento - uso obrigatório - CDK10, RTS3, outras ferramentas (flex, byacc)
- Testes Automáticos
Material Diverso
- Máquina Virtual - imagem de máquina virtual contendo todo o material de apoio
- Postfix Reference Guide
- Quick-and-Dirty Guide to Transforming Compact into your Compiler (obsolete) (use at your own risk)
- "Construção de Compiladores em C++ usando Objectos e Padrões" PDF (outdated) (CDK3)
- Tópicos Rápidos sobre C++ - A Guide for the Perplexed (with examples)
- Quick topics on compiling and linking in C/C++
- Tools and Development Environment (small guide to practical tools: make and cvs)
Using xml2dot to draw ASTs
The xml2dot JAR can be Googled and used as shown below:
Example for the Compact language:
compact myprog.cpt -target xml java -cp xml2dot.jar xml2dot.xml2dot myprog.xml
Note that "compact" is assumed to be available in the PATH. Otherwise, the explicit path must be provided, e.g., ./compact or other specification.