Flecs v3.1
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
22#ifdef __cplusplus
23extern "C" {
24#endif
25
32FLECS_API
33const char* ecs_parse_ws(
34 const char *ptr);
35
42FLECS_API
43const char* ecs_parse_ws_eol(
44 const char *ptr);
45
54FLECS_API
55const char* ecs_parse_digit(
56 const char *ptr,
57 char *token);
58
68FLECS_API
69const char* ecs_parse_token(
70 const char *name,
71 const char *expr,
72 const char *ptr,
73 char *token_out,
74 char delim);
75
103FLECS_API
105 const ecs_world_t *world,
106 const char *name,
107 const char *expr,
108 const char *ptr,
109 ecs_term_t *term_out);
110
111#ifdef __cplusplus
112}
113#endif // __cplusplus
114
115#endif // FLECS_PARSER_H
116
119#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.
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)
Parse term in expression.
FLECS_API const char * ecs_parse_ws(const char *ptr)
Skip whitespace characters.
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:229
Type that describes a term (single element in a query)
Definition: flecs.h:529