Files
highground-fork/src/lexer.h

18 lines
356 B
C
Raw Normal View History

2025-12-21 12:06:55 +11:00
#include <string>
#include <optional>
#include <vector>
namespace Solstice {
class Lexer {
std::string input;
size_t size;
size_t current;
std::optional<char> peek(int ahead = 1);
std::optional<char> consume();
public:
Lexer(std::string in);
std::vector<std::string> lex();
};
}