Webserv
Loading...
Searching...
No Matches
Token.hpp
Go to the documentation of this file.
1#pragma once
2#include "webserv.hpp"
3
4enum TOKEN {
15};
16
17typedef struct Token_s {
18 string value;
21
22class Tokenizer {
23 std::fstream file;
24 size_t prevPos;
25
26 public:
27 Tokenizer(string fileName);
28 bool hasMoreTokens();
30 void rollBackToken();
32};
struct Token_s Token
TOKEN
Definition: Token.hpp:4
@ NUMBER
Definition: Token.hpp:9
@ COLON
Definition: Token.hpp:7
@ CURLY_OPEN
Definition: Token.hpp:5
@ ARRAY_OPEN
Definition: Token.hpp:10
@ NULL_TYPE
Definition: Token.hpp:14
@ BOOLEAN
Definition: Token.hpp:13
@ ARRAY_CLOSE
Definition: Token.hpp:11
@ CURLY_CLOSE
Definition: Token.hpp:6
@ STRING
Definition: Token.hpp:8
@ COMMA
Definition: Token.hpp:12
void rollBackToken()
Definition: Token.cpp:26
size_t prevPos
Definition: Token.hpp:24
std::fstream file
Definition: Token.hpp:23
char getWithoutWhiteSpace()
Definition: Token.cpp:11
bool hasMoreTokens()
Definition: Token.cpp:9
Token getToken()
Definition: Token.cpp:31
string value
Definition: Token.hpp:18
TOKEN type
Definition: Token.hpp:19