Skip to content

Commit

Permalink
Strict
Browse files Browse the repository at this point in the history
  • Loading branch information
joente committed Feb 5, 2024
1 parent 301d4c2 commit 7f26130
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion grammar/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_):
Expand Down
2 changes: 1 addition & 1 deletion inc/langdef/langdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down
6 changes: 3 additions & 3 deletions src/langdef/langdef.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <langdef/langdef.h>
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7f26130

Please sign in to comment.