-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparse.h
34 lines (26 loc) · 903 Bytes
/
parse.h
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
32
33
34
/*
* parse.h
*/
#ifndef PARSE_H_
#define PARSE_H_
#include <iostream>
using namespace std;
#include "lex.h"
extern bool Prog(istream& in, int& line);
extern bool StmtList(istream& in, int& line);
extern bool Stmt(istream& in, int& line);
extern bool ControlStmt(istream& in, int& line);
extern bool DeclStmt(istream& in, int& line);
extern bool WriteStmt(istream& in, int& line);
extern bool IfStmt(istream& in, int& line);
extern bool IdentList(istream& in, int& line, LexItem tok);
extern bool Var(istream& in, int& line);
extern bool AssignStmt(istream& in, int& line);
extern bool ExprList(istream& in, int& line);
extern bool LogicExpr(istream& in, int& line);
extern bool Expr(istream& in, int& line);
extern bool Term(istream& in, int& line);
extern bool SFactor(istream& in, int& line);
extern bool Factor(istream& in, int& line, int sign);
extern int ErrCount();
#endif /* PARSE_H_ */