* DSP: Own DSP RAM and add it to fastmem * Vendor Teakra * Add MacOS support to fastmem * Fix MacOS fastmem paths * Fix iOS build
27 lines
476 B
C++
27 lines
476 B
C++
#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
|