You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
386 B
C++

#ifndef FORSPLL_PARSER_HPP
#define FORSPLL_PARSER_HPP
#include <string>
#include <string_view>
#include <tuple>
enum class Token {
none,
ThunkOpen,
ThunkClose,
Quote,
PopVar,
PushVar,
Var,
Number
};
extern std::string name;
std::pair<std::string_view, Token> nextToken(std::string_view sv);
void printToken(Token tok);
#endif // FORSPLL_PARSER_HPP