Flecs v3.2
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
parser.h
Go to the documentation of this file.
1
9#ifdef FLECS_PARSER
10
19#ifndef FLECS_PARSER_H
20#define FLECS_PARSER_H
21
23#define ECS_PARSER_MAX_ARGS (16)
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
35FLECS_API
36const char* ecs_parse_ws(
37 const char *ptr);
38
45FLECS_API
46const char* ecs_parse_ws_eol(
47 const char *ptr);
48
51 const char *name,
52 const char *expr,
53 const char *ptr,
54 char *token_out);
55
64FLECS_API
65const char* ecs_parse_digit(
66 const char *ptr,
67 char *token);
68
78FLECS_API
79const char* ecs_parse_token(
80 const char *name,
81 const char *expr,
82 const char *ptr,
83 char *token_out,
84 char delim);
85
116FLECS_API
118 const ecs_world_t *world,
119 const char *name,
120 const char *expr,
121 const char *ptr,
122 ecs_term_t *term_out,
123 ecs_oper_kind_t *extra_oper,
124 ecs_term_id_t *extra_args,
125 bool allow_newline);
126
127#ifdef __cplusplus
128}
129#endif // __cplusplus
130
131#endif // FLECS_PARSER_H
132
135#endif // FLECS_PARSER
FLECS_API const char * ecs_parse_token(const char *name, const char *expr, const char *ptr, char *token_out, char delim)
Parse a single token.
FLECS_API const char * ecs_parse_digit(const char *ptr, char *token)
Parse digit.
const char * ecs_parse_identifier(const char *name, const char *expr, const char *ptr, char *token_out)
Utility function to parse an identifier.
FLECS_API const char * ecs_parse_ws(const char *ptr)
Skip whitespace characters.
FLECS_API char * ecs_parse_term(const ecs_world_t *world, const char *name, const char *expr, const char *ptr, ecs_term_t *term_out, ecs_oper_kind_t *extra_oper, ecs_term_id_t *extra_args, bool allow_newline)
Parse term in expression.
FLECS_API const char * ecs_parse_ws_eol(const char *ptr)
Skip whitespace and newline characters.
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
Definition flecs.h:362
ecs_oper_kind_t
Specify operator for term.
Definition flecs.h:696
Type that describes a single identifier in a term.
Definition flecs.h:737
Type that describes a term (single element in a query)
Definition flecs.h:758