GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Master-Informatics-and-Computer-Engineering/COMP at master · afonsobspinto/Master-Informatics-and-Computer-Engineering

This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Expand file tree

/

COMP

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

COMP

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
examples
examples
 
 
feedback
feedback
 
 
scripts
scripts
 
 
src
src
 
 
testsuite/yalFiles
testsuite/yalFiles
 
 
README.txt
README.txt
 
 
Readme.md
Readme.md
 
 

Readme.md

Outline

Comp G51

A repository to host COMP project

Authors

  • Afonso Pinto – @afonsobspinto
  • Bruno Moreno – @TheBrunoMiguel
  • João Moura – @Bitoque
  • Tomás Oliveira – @Toliveira97

Checkpoint 1

  1. Develop a parser for yal using JavaCC and taking as starting point the yal grammar furnished with a global LL(1) replaced by a larger local lookahead when needed.
  2. Include error treatment and recovery mechanisms -> Deep Error Recovery
  3. Proceed with the specification of the file jjt to generate, using JJTree, a new version of the parser including in this case the generation of the syntax tree(the generated tree should be an AST), annotating the nodes and leafs of the tree with the information (including tokens) necessary to perform the subsequent compiler steps;

Checkpoint 2

  1. Change grammar to work only with LL(1).
  2. Include error treatment and recovery mechanisms -> Deep Error Recovery. (aborted by teacher suggestion due to time management problems)
  3. Improve AST.
  4. Create a symbol table using the Visitor Pattern.
  5. Add full Semantic Analysis.
  6. Add very partially jasmin code generation.

Checkpoint 3

  1. Completed code generation for the invocation of functions in yal.
  2. Added code generation for arithmetic expressions.
  3. Added code generation for conditional instructions.
  4. Added code generation for loops.
  5. Added code generation for arrays.
  6. Temporarily disabled semantic analysis, as it is currently misjudging errors and preventing code generation.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.