Compiladores/Projecto de Compiladores
From Wiki**3
< Compiladores
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.