Decaf Compiler
Functions
p1-lexer.h File Reference

Interface for Project 1 (Lexer) More...

#include "common.h"
#include "token.h"

Go to the source code of this file.

Functions

TokenQueuelex (const char *text)
 Convert a string containing a Decaf program into a queue of tokens. More...
 

Detailed Description

Interface for Project 1 (Lexer)

Function Documentation

◆ lex()

TokenQueue* lex ( const char *  text)

Convert a string containing a Decaf program into a queue of tokens.

Parameters
textString to lex
Returns
Newly-created queue of tokens