Decaf Compiler
Functions
p1-lexer.c File Reference

Compiler phase 1: lexer. More...

#include "p1-lexer.h"

Functions

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

Detailed Description

Compiler phase 1: lexer.

Function Documentation

◆ lex()

TokenQueue* lex ( char *  text)

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

Parameters
textString to lex
Returns
Newly-created queue of tokens