Decaf Compiler
Functions
p3-analysis.h File Reference

Interface for Project 3 (Analysis) More...

#include "common.h"
#include "token.h"
#include "ast.h"
#include "visitor.h"
#include "symbol.h"

Go to the source code of this file.

Functions

ErrorListanalyze (ASTNode *tree)
 Perform static analysis on an AST and return a list of errors. More...
 

Detailed Description

Interface for Project 3 (Analysis)

Function Documentation

◆ analyze()

ErrorList* analyze ( ASTNode tree)

Perform static analysis on an AST and return a list of errors.

Parameters
treeRoot of AST
Returns
List of static analysis errors found (the list should be empty if no errors were found)