-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.h
More file actions
43 lines (37 loc) · 773 Bytes
/
Copy pathparser.h
File metadata and controls
43 lines (37 loc) · 773 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
32
33
34
35
36
37
38
39
40
41
42
/*
* Created by Joshua Elkins
* Date: June 24th, 2023
*/
#ifndef __PARSER__H__
#define __PARSER__H__
#include <vector>
#include <string>
#include "inputbuf.h"
#include "lexer.h"
class Parser {
public:
LexicalAnalyzer lexer;
Token token;
TokenType tempTokenType;
int parse_program();
private:
int parse_varlist();
int parse_unaryOperator();
int parse_binaryOperator();
int parse_primary();
int parse_expression();
int parse_assstmt();
int parse_case();
int parse_caselist();
int parse_switchstmt();
int parse_whilestmt();
int parse_ifstmt();
int parse_stmt();
int parse_stmtlist();
int parse_body();
int parse_typename();
int parse_vardecl();
int parse_vardecllist();
int parse_globalVars();
};
#endif //__PARSER__H__