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
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
48 const char *name,
49 const char *expr,
50 const char *ptr,
51 char *token_out);
52
61FLECS_API
62const char* ecs_parse_digit(
63 const char *ptr,
64 char *token);
65
75FLECS_API
76const char* ecs_parse_token(
77 const char *name,
78 const char *expr,
79 const char *ptr,
80 char *token_out,
81 char delim);
82
110FLECS_API
112 const ecs_world_t *world,
113 const char *name,
114 const char *expr,
115 const char *ptr,
116 ecs_term_t *term_out);
117
118#ifdef __cplusplus
119}
120#endif // __cplusplus
121
122#endif // FLECS_PARSER_H
123
126#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 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:279
Type that describes a term (single element in a query)
Definition: flecs.h:589