Webserv
Loading...
Searching...
No Matches
includes
Parser.hpp
Go to the documentation of this file.
1
#pragma once
2
#include "
webserv.hpp
"
3
4
class
JSONParser
{
5
std::fstream
file
;
6
Tokenizer
tokenizer
;
7
8
public
:
9
JSONParser
(
const
string
filename);
10
JSONNode
*
parse
();
11
JSONNode
*
parseObject
();
12
JSONNode
*
parseList
();
13
JSONNode
*
parseString
();
14
JSONNode
*
parseNumber
();
15
JSONNode
*
parseBoolean
();
16
JSONNode
*
parseNull
();
17
};
JSONNode
Definition:
Nodes.hpp:4
JSONParser
Definition:
Parser.hpp:4
JSONParser::tokenizer
Tokenizer tokenizer
Definition:
Parser.hpp:6
JSONParser::file
std::fstream file
Definition:
Parser.hpp:5
JSONParser::parseString
JSONNode * parseString()
Definition:
Parser.cpp:174
JSONParser::parseNumber
JSONNode * parseNumber()
Definition:
Parser.cpp:181
JSONParser::parseList
JSONNode * parseList()
Definition:
Parser.cpp:111
JSONParser::parseNull
JSONNode * parseNull()
Definition:
Parser.cpp:195
JSONParser::parse
JSONNode * parse()
Definition:
Parser.cpp:5
JSONParser::parseObject
JSONNode * parseObject()
Definition:
Parser.cpp:46
JSONParser::parseBoolean
JSONNode * parseBoolean()
Definition:
Parser.cpp:189
Tokenizer
Definition:
Token.hpp:22
webserv.hpp
Generated by
1.9.7