-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParser.h
More file actions
44 lines (24 loc) · 886 Bytes
/
Parser.h
File metadata and controls
44 lines (24 loc) · 886 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
43
44
//
// Created by aniru on 2/14/2022.
//
#include "Expr.h"
#ifndef MSDSCRIPT_PARSER_H
#define MSDSCRIPT_PARSER_H
PTR(Expr)parse(std::istream &in);
PTR(Expr)parse_str(std::string s);
PTR(Expr)parse_inner(std::istream &in);
PTR(Expr)parse_multicand(std::istream &in);
PTR(Expr)parse_addend(std::istream &in);
PTR(Expr)parse_comparg(std::istream &in);
PTR(Expr)parse_expr(std::istream &in);
PTR(Expr)parse_num(std::istream &in);
PTR(Expr)parse_var(std::istream &in);
PTR(Expr)parse_let(std::istream &in);
PTR(Expr)parse_bool(std::istream &in, std::string keyword);
PTR(Expr)parse_if(std::istream &in);
PTR(Expr)parse_fun(std::istream &in);
bool parse_keyword(std::istream &in, std::string keyword);
std::string parse_keyword(std::istream &in);
static void skip_whitespace(std::istream &in);
static void consume(std::istream &in, int expect);
#endif //MSDSCRIPT_PARSER_H