NeoMutt
2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
parse.h
Go to the documentation of this file.
1
24
#ifndef MUTT_EXPANDO_PARSER_H
25
#define MUTT_EXPANDO_PARSER_H
26
27
#include "
node_condition.h
"
28
29
struct
ExpandoDefinition
;
30
34
struct
ExpandoParseError
35
{
36
char
message
[256];
37
const
char
*
position
;
38
};
39
40
struct
ExpandoNode
*
node_parse
(
const
char
*str,
const
char
*end,
41
enum
ExpandoConditionStart
condition_start,
42
const
char
**parsed_until,
43
const
struct
ExpandoDefinition
*defs,
44
struct
ExpandoParseError
*err);
45
46
#endif
/* MUTT_EXPANDO_PARSER_H */
node_parse
struct ExpandoNode * node_parse(const char *str, const char *end, enum ExpandoConditionStart condition_start, const char **parsed_until, const struct ExpandoDefinition *defs, struct ExpandoParseError *err)
Parse a format string into ExpandoNodes.
Definition:
parse.c:124
node_condition.h
Expando Node for a Condition.
ExpandoConditionStart
ExpandoConditionStart
Signals node_parse() if the parsing started in a conditional statement or not.
Definition:
node_condition.h:35
ExpandoDefinition
Definition of a format string.
Definition:
definition.h:52
ExpandoNode
Basic Expando Node.
Definition:
node.h:67
ExpandoParseError
Buffer for parsing errors.
Definition:
parse.h:35
ExpandoParseError::position
const char * position
Position of error in original string.
Definition:
parse.h:37
ExpandoParseError::message
char message[256]
Error message.
Definition:
parse.h:36