Vendor Teakra, make emulator own DSP RAM and add DSP RAM to fastmem (#806)
* DSP: Own DSP RAM and add it to fastmem * Vendor Teakra * Add MacOS support to fastmem * Fix MacOS fastmem paths * Fix iOS build
This commit is contained in:
26
third_party/teakra/src/parser.h
vendored
Normal file
26
third_party/teakra/src/parser.h
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "common_types.h"
|
||||
|
||||
namespace Teakra {
|
||||
|
||||
class Parser {
|
||||
public:
|
||||
virtual ~Parser() = default;
|
||||
struct Opcode {
|
||||
enum {
|
||||
Invalid,
|
||||
Valid,
|
||||
ValidWithExpansion,
|
||||
} status = Invalid;
|
||||
u16 opcode = 0;
|
||||
};
|
||||
|
||||
virtual Opcode Parse(const std::vector<std::string>& tokens) = 0;
|
||||
};
|
||||
|
||||
std::unique_ptr<Parser> GenerateParser();
|
||||
|
||||
} // namespace Teakra
|
||||
Reference in New Issue
Block a user