Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Dec 28, 2024
1 parent 11904d1 commit 341231c
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 6 deletions.
13 changes: 10 additions & 3 deletions example/input.salam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@
گردی = ۹
تمام

/*
///*
بارگیری:
تکرار = ۴۰
فضا بالا = ۲۰
منبع = «example/card.salam»
تمام
//*/



جعبه:
رنگ پس زمینه = «بنفش»
رنگ = «سفید»
Expand All @@ -26,6 +35,4 @@
فضا بالا = ۹
تمام

*/

تمام
1 change: 1 addition & 0 deletions src/generated-config/ast_block_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ ADD_BLOCK_TYPE(AST_BLOCK_TYPE_ERROR, "ERROR", "error")






1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_style_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_GLOBAL_VALUE(unset, "حذف شده")





Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,5 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_EMPT





1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_style_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,4 +588,5 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_TYPE_HIDE(AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_ERROR, "ERR





1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_style_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -1492,4 +1492,5 @@ const ast_layout_attribute_pair_t ast_layout_allowed_style_list_zoom[] = {





Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,5 @@ extern const ast_layout_attribute_pair_t ast_layout_allowed_style_list_zoom[];





1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,5 @@ ADD_LAYOUT_ATTRIBUTE_TYPE(AST_LAYOUT_ATTRIBUTE_TYPE_RESPONSIVE_MIN_HEIGHT, "RESP





1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ const ast_layout_attribute_pair_t ast_layout_allowed_lang[] = {





1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_value_extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ extern const ast_layout_attribute_pair_t ast_layout_allowed_lang[];





1 change: 1 addition & 0 deletions src/generated-config/ast_layout_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,6 @@ ADD_LAYOUT_TYPE_REPEAT(AST_LAYOUT_TYPE_MEDIA, "MEDIA", "media", "@media", "وا






1 change: 1 addition & 0 deletions src/generated-config/ast_layout_type_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,6 @@ else if (attribute->parent_node_type == AST_LAYOUT_TYPE_MEDIA) {






1 change: 1 addition & 0 deletions src/generated-config/ast_layout_type_attributes_all.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ const size_t map_size = sizeof(layout_map) / sizeof(layout_map[0]);




1 change: 1 addition & 0 deletions src/generated-config/ast_layout_type_attributes_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,4 @@ const size_t valid_attributes_media_length = 0;




Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,4 @@ extern const size_t valid_attributes_media_length;
#endif



1 change: 1 addition & 0 deletions src/generated-config/ast_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ ADD_TYPE(AST_TYPE_ERROR, "ERROR", "error")






3 changes: 0 additions & 3 deletions src/generator_layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ string_t *generator_code_layout_block_item(generator_t *generator,
}
}

printf("repeat_value_sizet: %zu\n", repeat_value_sizet);

if (repeat_value_sizet < 1) {
error_generator(1,
"The 'repeat' attribute value must be greater than 0");
Expand All @@ -116,7 +114,6 @@ string_t *generator_code_layout_block_item(generator_t *generator,
}

if (node->type == AST_LAYOUT_TYPE_INCLUDE) {
printf("is include\n");
hashmap_layout_attribute_print(attributes);
ast_layout_attribute_t *src = hashmap_get(attributes, "src");
ast_value_t *src_value = NULL;
Expand Down

0 comments on commit 341231c

Please sign in to comment.