Decaf Compiler
Main Page
Classes
Class List
Class Index
Class Members
All
Variables
Files
File List
File Members
All
c
d
e
f
i
l
m
p
r
t
v
Functions
d
e
i
l
m
p
r
t
v
Variables
Typedefs
Enumerations
Macros
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Macros
include
p1-lexer.h
Go to the documentation of this file.
1
6
#ifndef __P1_LEXER_H
7
#define __P1_LEXER_H
8
9
#include "
common.h
"
10
#include "
token.h
"
11
18
TokenQueue
*
lex
(
const
char
* text);
19
20
#endif
common.h
Includes, constants, declarations, and macros used across the compiler.
lex
TokenQueue * lex(const char *text)
Convert a string containing a Decaf program into a queue of tokens.
Definition:
p1-lexer.c:23
TokenQueue
Linked list of tokens.
Definition:
token.h:153
token.h
Tokens and regular expressions.
Generated by
1.9.1