30 lines
473 B
C
30 lines
473 B
C
|
#pragma once
|
||
|
/*
|
||
|
* Created by Brett on 17/11/23.
|
||
|
* Licensed under GNU General Public License V3.0
|
||
|
* See LICENSE file for license detail
|
||
|
*/
|
||
|
|
||
|
#ifndef BRAINFUCK_MISC_BF_TOKENIZER_H
|
||
|
#define BRAINFUCK_MISC_BF_TOKENIZER_H
|
||
|
|
||
|
#include <vector>
|
||
|
#include <string>
|
||
|
|
||
|
enum class bf_token
|
||
|
{
|
||
|
INC_DP,
|
||
|
DEC_DP,
|
||
|
INC_DV,
|
||
|
DEC_DV,
|
||
|
PRINT,
|
||
|
READ,
|
||
|
OPEN,
|
||
|
CLOSE
|
||
|
};
|
||
|
|
||
|
std::vector<bf_token> tokenize(const std::string& program);
|
||
|
|
||
|
|
||
|
#endif //BRAINFUCK_MISC_BF_TOKENIZER_H
|