Decaf Compiler
Functions
p2-parser.h File Reference

Interface for Project 2 (Parser) More...

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

Go to the source code of this file.

Functions

ASTNodeparse (TokenQueue *input)
 Convert a queue of tokens into an abstract syntax tree (AST) More...
 

Detailed Description

Interface for Project 2 (Parser)

Function Documentation

◆ parse()

ASTNode* parse ( TokenQueue input)

Convert a queue of tokens into an abstract syntax tree (AST)

Parameters
inputTokens to parse
Returns
Root of abstract syntax tree