aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-05-27 13:22:24 +0100
committergingerBill <bill@gingerbill.org>2018-05-27 13:22:24 +0100
commit1beff539d7c3b3a9570684b9e619ff3c61ce9be8 (patch)
tree7170f5c9ccca033b51e5bff9fb2090d4558a3376 /src/parser.hpp
parentdf578d6ec58e678e30b90601550f82ac4153b3e8 (diff)
Single file "main" file
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index 2553d4776..f08898f1a 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -25,18 +25,18 @@ struct CommentGroup {
};
-enum ImportedPackageKind {
- ImportedPackage_Normal,
- ImportedPackage_Builtin,
- ImportedPackage_Init,
+enum PackageKind {
+ Package_Normal,
+ Package_Builtin,
+ Package_Init,
};
struct ImportedPackage {
- ImportedPackageKind kind;
- String path;
- String rel_path;
- TokenPos pos; // import
- isize index;
+ PackageKind kind;
+ String path;
+ String rel_path;
+ TokenPos pos; // import
+ isize index;
};
struct AstFile {
@@ -85,11 +85,11 @@ struct AstFile {
struct AstPackage {
- isize id;
- ImportedPackageKind kind;
- String name;
- String fullpath;
- Map<AstFile *> files; // Key: String (names)
+ isize id;
+ PackageKind kind;
+ String name;
+ String fullpath;
+ Map<AstFile *> files; // Key: String (names)
Scope * scope; // NOTE(bill): Created in checker
DeclInfo *decl_info; // NOTE(bill): Created in checker