'(', Optional(time_expr), ')')
f_offset = Sequence(
k_offset,
- '(', Optional(time_expr), ')')
+ '(', time_expr, ')')
f_timeval = Sequence(
k_timeval,
'(', ')')
* should be used with the libcleri module.
*
* Source class: SiriGrammar
- * Created at: 2023-10-24 14:29:56
+ * Created at: 2023-10-24 15:46:26
*/
#ifndef CLERI_EXPORT_SIRI_GRAMMAR_GRAMMAR_H_
#define CLERI_EXPORT_SIRI_GRAMMAR_GRAMMAR_H_
* Note that debian alpha packages should use versions like this:
* 2.0.34-0alpha0
*/
-#define SIRIDB_VERSION_PRE_RELEASE "-alpha-1"
+#define SIRIDB_VERSION_PRE_RELEASE "-alpha-2"
#ifndef NDEBUG
#define SIRIDB_VERSION_BUILD_RELEASE "+debug"
siridb_aggregate_list_free(vec);
return NULL;
}
- if (cleri_gn(cleri_gn(children)->children)
- ->children->next->next->next != NULL)
- {
/* group_by is always > 0 */
- aggr->offset = CLERI_NODE_DATA(
- cleri_gn(cleri_gn(cleri_gn(cleri_gn(children)
- ->children)->children->next->next)->children)
- ) % aggr->group_by;
- }
+ aggr->offset = CLERI_NODE_DATA(
+ cleri_gn(cleri_gn(cleri_gn(children)
+ ->children)->children->next->next)) % aggr->group_by;
break;
case CLERI_GID_F_LIMIT:
AGGR_NEW
* should be used with the libcleri module.
*
* Source class: SiriGrammar
- * Created at: 2023-10-24 14:29:56
+ * Created at: 2023-10-24 15:46:26
*/
#include "siri/grammar/grammar.h"
4,
k_offset,
cleri_token(CLERI_NONE, "("),
- cleri_optional(CLERI_NONE, time_expr),
+ time_expr,
cleri_token(CLERI_NONE, ")")
);
cleri_t * f_timeval = cleri_sequence(
cleri_choice(
CLERI_NONE,
CLERI_FIRST_MATCH,
- 14,
- k_offset,
+ 13,
k_mean,
k_median,
k_median_high,