Bincimap 2.0.16
Easy Imapping
Loading...
Searching...
No Matches
recursivedescent.h
Go to the documentation of this file.
1
7#ifndef expectcommand_h_inluded
8#define expectcommand_h_inluded
9#include <stack>
10#include <string>
11
12#include "imapparser.h"
13#include "operators.h"
14
15namespace Binc {
16
17 extern std::stack<int> inputBuffer;
18 extern int charnr;
19
20 int readChar(void);
21 void unReadChar(int c_in);
22 void unReadChar(const std::string &s_in);
23
24 Operator::ParseResult expectTag(std::string &s_in);
27
28 Operator::ParseResult expectFlag(std::vector<std::string> &v_in);
29
32
36
42
44
45 Operator::ParseResult expectNumber(unsigned int &i_in);
46 Operator::ParseResult expectDigit(unsigned int &i_in);
47 Operator::ParseResult expectDigitNZ(unsigned int &i_in);
48
52
54 Operator::ParseResult expectSequenceNum(unsigned int &i_in);
55 Operator::ParseResult expectNZNumber(unsigned int &i_in);
56
60
61 Operator::ParseResult expectThisString(const std::string &s_in);
62}
63
64#endif
Declaration of the common items for parsing IMAP input.
Definition: bincimapd.cc:9
Operator::ParseResult expectNumber(unsigned int &i_in)
Operator::ParseResult expectFlag(std::vector< std::string > &v_in)
Operator::ParseResult expectLF(void)
Operator::ParseResult expectTagChar(int &c_in)
Operator::ParseResult expectAtomChar(int &i_in)
Operator::ParseResult expectAstring(std::string &s_in)
Operator::ParseResult expectZone(std::string &s_in)
Operator::ParseResult expectString(std::string &s_in)
Operator::ParseResult expectSPACE(void)
Operator::ParseResult expectLiteral(std::string &s_in)
Operator::ParseResult expectTime(std::string &s_in)
Operator::ParseResult expectDigit(unsigned int &i_in)
void unReadChar(int c_in)
Operator::ParseResult expectTag(std::string &s_in)
Operator::ParseResult expectThisString(const std::string &s_in)
Operator::ParseResult expectAtom(std::string &s_in)
Operator::ParseResult expectQuotedChar(int &c_in)
Operator::ParseResult expectListWildcards(int &c_in)
Operator::ParseResult expectCR(void)
Operator::ParseResult expectSequenceNum(unsigned int &i_in)
Operator::ParseResult expectDateTime(std::string &s_in)
Operator::ParseResult expectDigitNZ(unsigned int &i_in)
Operator::ParseResult expectQuoted(std::string &s_in)
Operator::ParseResult expectListMailbox(std::string &s_in)
Operator::ParseResult expectDate(std::string &s_in)
Operator::ParseResult expectNZNumber(unsigned int &i_in)
Operator::ParseResult expectSet(SequenceSet &s_in)
int readChar(void)
Operator::ParseResult expectCRLF(void)
std::stack< int > inputBuffer
Operator::ParseResult expectMailbox(std::string &s_in)
Declaration of all operators.