still not ready
This commit is contained in:
@@ -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_();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user