ACSE 2.0.2
Advanced Compiler System for Education (basic documentation)
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
18typedef struct {
19 t_label *lElse;
20 t_label *lExit;
21} t_ifStmt;
22
24typedef struct {
25 t_label *lLoop;
26 t_label *lExit;
28
44
57void yyerror(const char *msg);
58
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.