-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathparser.h
More file actions
31 lines (29 loc) · 674 Bytes
/
parser.h
File metadata and controls
31 lines (29 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Compiler Builder 8
// Lester Young
// Timothy Konzel
// Remington Howell
// Johnathan Sattler
// John Herold
// Included libraries
#include <stdio.h>
#include <string.h>
#include "tokens.h"
#include "input.h"
#include "printing.h"
// Function prototypes
int program(tok * allTokens, const char * outputFileName, int pm0);
void block();
void constDeclaration();
void varDeclaration();
void statement();
void condition();
void relOp();
void expression();
void term();
void factor();
void advance();
void error(int num);
void eat(int id);
void emit(int op, int l, int m);
int symbolExists(char * name);
void addSymbol(int kind, char * name, int val, int level, int addr);