-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstep.h
More file actions
38 lines (29 loc) · 697 Bytes
/
Copy pathstep.h
File metadata and controls
38 lines (29 loc) · 697 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
//
// Created by YANG QI on 5/11/22.
//
#ifndef MSDSCRIPT_STEP_H
#define MSDSCRIPT_STEP_H
#include <stdio.h>
#include "expr.h"
#include "env.h"
#include "val.h"
#include "cont.h"
#include "pointer.h"
class Expr;
class Val;
class Env;
class Cont;
CLASS (Step){
public:
typedef enum{
interp_mode,
continue_mode
} mode_t;
static mode_t mode;/* chooses mode */
static PTR(Expr) expr;/* for interp_mode */
static PTR(Env) env;/* for interp_mode */
static PTR(Val) val;/* for continue_mode */
static PTR(Cont) cont;/* all modes */
static PTR(Val) interp_by_steps(PTR(Expr) e);
};
#endif //MSDSCRIPT_STEP_H