diff --git a/grammar/grammar.py b/grammar/grammar.py index 1e95a15f..84d23e10 100644 --- a/grammar/grammar.py +++ b/grammar/grammar.py @@ -20,7 +20,7 @@ # names have a max length of 255 characters RE_NAME = r'^[A-Za-z_][0-9A-Za-z_]{0,254}(?![0-9A-Za-z_])' -STRICT = 0 +STRICT = 1 class Choice(Choice_): diff --git a/inc/langdef/langdef.h b/inc/langdef/langdef.h index da278d23..b220dd29 100644 --- a/inc/langdef/langdef.h +++ b/inc/langdef/langdef.h @@ -5,7 +5,7 @@ * should be used with the libcleri module. * * Source class: LangDef - * Created at: 2024-02-04 14:13:28 + * Created at: 2024-02-05 10:13:48 */ #ifndef CLERI_EXPORT_LANGDEF_H_ #define CLERI_EXPORT_LANGDEF_H_ diff --git a/src/langdef/langdef.c b/src/langdef/langdef.c index 158ce763..9584e435 100644 --- a/src/langdef/langdef.c +++ b/src/langdef/langdef.c @@ -5,7 +5,7 @@ * should be used with the libcleri module. * * Source class: LangDef - * Created at: 2024-02-04 14:13:28 + * Created at: 2024-02-05 10:13:48 */ #include @@ -194,7 +194,7 @@ cleri_grammar_t * compile_langdef(void) CLERI_GID_BLOCK, 3, x_block, - cleri_list(CLERI_NONE, CLERI_THIS, cleri_repeat(CLERI_NONE, cleri_token(CLERI_NONE, ";"), 0, 0), 1, 0, 1), + cleri_list(CLERI_NONE, CLERI_THIS, cleri_repeat(CLERI_NONE, cleri_token(CLERI_NONE, ";"), 1, 0), 1, 0, 1), cleri_token(CLERI_NONE, "}") ); cleri_t * parenthesis = cleri_sequence( @@ -286,7 +286,7 @@ cleri_grammar_t * compile_langdef(void) ), operations ); - cleri_t * START = cleri_list(CLERI_GID_START, statement, cleri_repeat(CLERI_NONE, cleri_token(CLERI_NONE, ";"), 0, 0), 0, 0, 1); + cleri_t * START = cleri_list(CLERI_GID_START, statement, cleri_repeat(CLERI_NONE, cleri_token(CLERI_NONE, ";"), 1, 0), 0, 0, 1); cleri_ref_set(chain, cleri_sequence( CLERI_GID_CHAIN, 4,