ACSE 2.0.3
Advanced Compiler System for Education
Loading...
Searching...
No Matches
parser.h
Go to the documentation of this file.
1
3
4#ifndef PARSER_H
5#define PARSER_H
6
7#include <stdio.h>
8#include "program.h"
9#include "codegen.h"
10
16
18typedef struct {
21} t_ifStmt;
22
24typedef struct {
28
32
38
44
48
53
57void yyerror(const char *msg);
58
62
63#endif
Code generation functions.
void yyerror(const char *msg)
t_program * parseProgram(char *fn)
t_label * lExit
Label to the first instruction after the statement.
Definition parser.h:20
t_label * lElse
Label to the else part.
Definition parser.h:19
t_label * lLoop
Label to the beginning of the loop.
Definition parser.h:25
Program object definition and management.