NeoMutt  2024-11-14-34-g5aaf0d
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 <stdbool.h>
28#include "node_text.h"
29
31struct ExpandoNode;
32
37{
38 char message[1024];
39 const char *position;
40};
41
42struct ExpandoNode *node_parse_one(const char *str, NodeTextTermFlags term_chars,
43 const struct ExpandoDefinition *defs,
44 const char **parsed_until, struct ExpandoParseError *err);
45
46bool node_parse_many(struct ExpandoNode *node_cont, const char *str,
47 NodeTextTermFlags term_chars, const struct ExpandoDefinition *defs,
48 const char **parsed_until, struct ExpandoParseError *err);
49
50#endif /* MUTT_EXPANDO_PARSER_H */
struct ExpandoNode * node_parse_one(const char *str, NodeTextTermFlags term_chars, const struct ExpandoDefinition *defs, const char **parsed_until, struct ExpandoParseError *err)
Parse a single Expando from a format string.
Definition: parse.c:49
bool node_parse_many(struct ExpandoNode *node_cont, const char *str, NodeTextTermFlags term_chars, const struct ExpandoDefinition *defs, const char **parsed_until, struct ExpandoParseError *err)
Parse a format string.
Definition: parse.c:81
Expando Node for Text.
uint8_t NodeTextTermFlags
Special characters that end a text string.
Definition: node_text.h:32
Definition of a format string.
Definition: definition.h:44
Basic Expando Node.
Definition: node.h:67
Buffer for parsing errors.
Definition: parse.h:37
char message[1024]
Error message.
Definition: parse.h:38
const char * position
Position of error in original string.
Definition: parse.h:39