mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-05 22:48:42 +00:00
print + build partially tested
This commit is contained in:
parent
0d62ae0814
commit
15e36c203a
22 changed files with 179 additions and 116 deletions
|
|
@ -10,9 +10,7 @@
|
|||
#include "node.hpp"
|
||||
|
||||
|
||||
namespace interpreter {
|
||||
|
||||
namespace tokens {
|
||||
namespace interpreter::tokens {
|
||||
|
||||
// ----------------- Declarations -----------------
|
||||
|
||||
|
|
@ -30,7 +28,7 @@ using TypeclassIdentifier = std::string;
|
|||
struct SourceFile;
|
||||
struct Sources;
|
||||
|
||||
// Namespaces, partittions -----------------
|
||||
// Namespaces, partitions -----------------
|
||||
|
||||
struct Partition;
|
||||
struct Namespace;
|
||||
|
|
@ -101,7 +99,7 @@ struct Block;
|
|||
|
||||
//
|
||||
|
||||
struct NameExpression;
|
||||
struct NameSuperExpression;
|
||||
struct ScopedStatement;
|
||||
|
||||
enum class LoopControlExpression {
|
||||
|
|
@ -110,7 +108,7 @@ enum class LoopControlExpression {
|
|||
};
|
||||
|
||||
using SubExpressionToken = std::variant<
|
||||
std::unique_ptr<NameExpression>,
|
||||
std::unique_ptr<NameSuperExpression>,
|
||||
std::unique_ptr<ScopedStatement>>;
|
||||
|
||||
//
|
||||
|
|
@ -576,6 +574,4 @@ struct CharLiteral : public Node {
|
|||
char value;
|
||||
};
|
||||
|
||||
} // namespace tokens
|
||||
|
||||
} // namespace interpereter
|
||||
} // namespace interpereter::tokens
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue