still not ready

This commit is contained in:
2026-07-05 13:43:09 -06:00
parent 9176c4882f
commit fb87813cbf
9 changed files with 362 additions and 868 deletions
@@ -0,0 +1,27 @@
#pragma once
#include <spider/compiler/assembler/Assembler.hpp>
namespace spider {
/**
* EBNF Parser for the Spider Assembly.
*/
class AsmParser {
private:
public:
AsmParser();
~AsmParser();
public:
public:
void ebnf_();
};
}
+7 -6
View File
@@ -18,16 +18,11 @@ namespace spider {
SUCCESS,
FILE_NOT_FOUND, FILE_RECURSIVE_LOAD,
};
struct Level {
uptr<TextReader> reader;
RootToken root;
std::string source;
};
public:
set<fs::path> fstack;
deque<Level> levels;
RootToken root;
public:
@@ -37,6 +32,12 @@ namespace spider {
public:
/**
* Attempts to load a file, fails if it
* doesn't exist.
*/
Error loadText(const std::string& path);
/**
* Attempts to load a file, fails if it
* doesn't exist.