Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Dec 28, 2024
1 parent 341231c commit bde12a6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
21 changes: 7 additions & 14 deletions example/input.salam
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
صفحه:
زبان = «فارسی»



جهت = «راست به چپ»
// جهت = «چپ به راست»

رنگ پس زمینه = «سبز»


جعبه:
رنگ پس زمینه = «قرمز»
رنگ = «سفید»
Expand All @@ -17,15 +12,13 @@
گردی = ۹
تمام

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


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

جعبه:
رنگ پس زمینه = «بنفش»
Expand Down
2 changes: 2 additions & 0 deletions src/array_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ void array_node_print(array_node_t *array) {
for (size_t i = 0; i < array->length; i++) {
printf("\t");
ast_node_t *node = array_get(array, i);

node->print(node);
}
}
Expand Down Expand Up @@ -282,6 +283,7 @@ void array_layout_node_print(array_node_layout_t *array) {
printf("\t");
ast_layout_node_t *node =
cast(ast_layout_node_t *, array_get(cast(array_t *, array), i));

if (node != NULL) {
node->print(node);
} else {
Expand Down
2 changes: 2 additions & 0 deletions src/ast_layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ ast_layout_node_t *ast_layout_node_create(
void ast_layout_node_print(ast_layout_node_t *value) {
DEBUG_ME;
printf("Layout Node: %s\n", value->tag);

value->block->print(value->block);
}

Expand Down Expand Up @@ -381,6 +382,7 @@ void ast_layout_destroy(ast_layout_t *value) {
void ast_layout_print(ast_layout_t *value) {
DEBUG_ME;
printf("Layout\n");

value->block->print(value->block);
}

Expand Down
1 change: 1 addition & 0 deletions src/ast_layout_style.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ void ast_layout_style_state_print(ast_layout_style_state_t *ast) {

if (ast->new != NULL) {
printf("New\n");

ast->new->print(ast->new);
} else {
printf("New: NULL\n");
Expand Down

0 comments on commit bde12a6

Please sign in to comment.