diff options
author | c | 2024-01-06 22:16:06 -0500 |
---|---|---|
committer | c | 2024-01-06 22:16:06 -0500 |
commit | d3ed2864afd3d470a39c7ef2ec1a53deaae18d14 (patch) | |
tree | 9bfedf02a653d2dac9b90cc102bf505cfc49ac2d /src | |
parent | c71b98b5b4d14cf30602064d7041828ba8244372 (diff) |
Tests worked out.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/syntax.h | 2 | ||||
-rw-r--r-- | src/lexer.c | 4 | ||||
-rw-r--r-- | src/tree.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/include/syntax.h b/src/include/syntax.h index ab92845..2938178 100644 --- a/src/include/syntax.h +++ b/src/include/syntax.h @@ -14,7 +14,7 @@ #define SYNTAX_APPLY '.' #define SYNTAX_LIST_DELIM ',' #define SYNTAX_TAG_DELIM ':' -#define SYNTAX_NAMESPACE_DELIM '!' +#define SYNTAX_NAMESPACE_DELIM ':' #define SYNTAX_LBLOCK '{' #define SYNTAX_RBLOCK '}' #define SYNTAX_RLIST '[' diff --git a/src/lexer.c b/src/lexer.c index 74bea85..ce7dcc0 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -63,9 +63,9 @@ void lexer_do_reg(lexer_t* lexer) { case SYNTAX_TAG_DELIM: lexer->state = LEXER_STATE_TAG; break; - case SYNTAX_NAMESPACE_DELIM: +/* case SYNTAX_NAMESPACE_DELIM: lexer_add_current_char(lexer, TOKEN_NAMESPACE_DELIM); - break; + break; */ case SYNTAX_SET: lexer_add_current_char(lexer, TOKEN_SET); break; @@ -98,7 +98,7 @@ int tree_cmp(tree_t* tree_0, tree_t* tree_1) { switch (tree_0->type) { case TREE_TYPE_BLOCK: return tree_cmp(tree_0->data.block.val, tree_1->data.block.val) && - tree_cmp(tree_0->data.block.val, tree_1->data.block.val); + tree_cmp(tree_0->data.block.nxt, tree_1->data.block.nxt); break; case TREE_TYPE_EXPR: return tree_cmp(tree_0->data.expr.val, tree_1->data.expr.val); |