File tree 2 files changed +38
-8
lines changed
2 files changed +38
-8
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) Jahan Addison
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
#include < iostream>
2
17
#include < roxas/ast.h>
3
18
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) Jahan Addison
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
#pragma once
2
17
3
18
#include < memory>
@@ -34,22 +49,22 @@ class Abstract_Syntax_Tree
34
49
35
50
enum class literal : int
36
51
{
37
- NUMBER ,
38
- CONSTANT ,
39
- STRING ,
40
- UNKNOWN
52
+ Number ,
53
+ Constant ,
54
+ String ,
55
+ Unknown
41
56
};
42
57
43
58
struct definition
44
59
{
45
60
enum class type : int
46
61
{
47
- FUNCTION ,
48
- VECTOR ,
49
- UNKNOWN
62
+ Function ,
63
+ Vector ,
64
+ Unknown
50
65
};
51
66
52
- type type{ type::UNKNOWN };
67
+ type type{ type::Unknown };
53
68
std::vector<node> children{};
54
69
};
55
70
You can’t perform that action at this time.
0 commit comments