Skip to content

Commit

Permalink
Run emsdk update
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Jan 13, 2025
1 parent 90c31e8 commit c6e4387
Show file tree
Hide file tree
Showing 21 changed files with 4,107 additions and 2,211 deletions.
1 change: 0 additions & 1 deletion .github/workflows/run-sync-script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
echo "changes=false" >> $GITHUB_ENV
fi
shell: bash


- name: Commit and create pull request
if: env.changes == 'true'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/web-assembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
chmod +x emsdk/emsdk_env.sh
source emsdk/emsdk_env.sh
./emsdk install latest
./emsdk activate latest
chmod +x build-webassembly.sh
bash build-webassembly.sh
- name: Clone Salam-Editor repository
Expand Down
2 changes: 0 additions & 2 deletions build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ if ! gcc -o "$output" ./*.o; then
exit 1
fi

# Clean up object files (optional)
# rm ./*.o


echo "Running the executable..."
if ! ./"$output" ../example/test6.salam ../out/; then
echo "Error: Execution failed"
Expand Down
9 changes: 4 additions & 5 deletions build/styles/.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@
Prebuild.save(property_str, __file__)

# https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio
# aspect-ratio =
# aspect-ratio =
# auto ||
# <ratio>

# <ratio> =
# <number [0,∞]> [ / <number [0,∞]> ]?
# <ratio>

# <ratio> =
# <number [0,∞]> [ / <number [0,∞]> ]?
2 changes: 1 addition & 1 deletion src/ast_layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include "ast_layout.h"

#include "generated-config/ast_layout_attribute_value_extern.h"
#include "generated-config/ast_layout_type_attributes_values.h"
#include "generated-config/ast_layout_type_attributes_all.h"
#include "generated-config/ast_layout_type_attributes_values.h"

/**
*
Expand Down
3 changes: 1 addition & 2 deletions src/downloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
*
*/


void parse_url(const char *url, char *hostname, char *path) {
DEBUG_ME;
const char *start;
Expand Down Expand Up @@ -185,4 +184,4 @@ bool download(FILE *fp, const char *port, const char *hostname,
CLOSE_SOCKET(sockfd);

return true;
}
}
2 changes: 1 addition & 1 deletion src/generated-config/ast_block_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ ADD_BLOCK_TYPE(AST_BLOCK_TYPE_ELSE_IF, "ELSE_IF", "else_if")

ADD_BLOCK_TYPE(AST_BLOCK_TYPE_ERROR, "ERROR", "error")

// ----------- END AUTO GENERATED ----------- //
// ----------- END AUTO GENERATED ----------- //
4 changes: 2 additions & 2 deletions src/generated-config/ast_layout_attribute_style_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_GLOBAL_VALUE(initial, "ابتدایی")

ADD_LAYOUT_ATTRIBUTE_STYLE_GLOBAL_VALUE(revert, "بازگردانی")

ADD_LAYOUT_ATTRIBUTE_STYLE_GLOBAL_VALUE(revert-layer, "بازگردانی لایه")
ADD_LAYOUT_ATTRIBUTE_STYLE_GLOBAL_VALUE(revert - layer, "بازگردانی لایه")

ADD_LAYOUT_ATTRIBUTE_STYLE_GLOBAL_VALUE(unset, "حذف شده")

// ----------- END AUTO GENERATED ----------- //
// ----------- END AUTO GENERATED ----------- //
140 changes: 104 additions & 36 deletions src/generated-config/ast_layout_attribute_style_state_type.h
Original file line number Diff line number Diff line change
@@ -1,72 +1,140 @@
// ----------- BEGIN AUTO GENERATED ----------- //
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ERROR, "ERROR", "error", "", "")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ERROR, "ERROR", "error", "", "")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_GLOBAL, "GLOBAL", "global", "سراسری", "*")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_GLOBAL, "GLOBAL", "global", "سراسری",
"*")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_HOVER, "HOVER", "hover", "هاور", "hover")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_HOVER, "HOVER", "hover", "هاور",
"hover")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ACTIVE, "ACTIVE", "active", "فعال", "active")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ACTIVE, "ACTIVE", "active", "فعال",
"active")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FOCUS, "FOCUS", "focus", "فوكوس", "focus")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FOCUS, "FOCUS", "focus", "فوكوس",
"focus")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_VISITED, "VISITED", "visited", "بازديد", "visited")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_VISITED, "VISITED", "visited",
"بازديد", "visited")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_LINK, "LINK", "link", "لينك", "link")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_LINK, "LINK", "link", "لينك", "link")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FOCUS_VISIBLE, "FOCUS_VISIBLE", "focus_visible", "فوكوس قابل مشاهده", "focus-visible")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FOCUS_VISIBLE, "FOCUS_VISIBLE",
"focus_visible", "فوكوس قابل مشاهده", "focus-visible")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FOCUS_WITHIN, "FOCUS_WITHIN", "focus_within", "فوكوس داخلي", "focus-within")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FOCUS_WITHIN, "FOCUS_WITHIN",
"focus_within", "فوكوس داخلي", "focus-within")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_CHECKED, "CHECKED", "checked", "انتخاب", "checked")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_CHECKED, "CHECKED", "checked",
"انتخاب", "checked")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_DISABLED, "DISABLED", "disabled", "غيرفعال", "disabled")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_DISABLED, "DISABLED", "disabled",
"غيرفعال", "disabled")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ENABLED, "ENABLED", "enabled", "فعال", "enabled")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ENABLED, "ENABLED", "enabled", "فعال",
"enabled")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_REQUIRED, "REQUIRED", "required", "ضروري", "required")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_REQUIRED, "REQUIRED", "required",
"ضروري", "required")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_OPTIONAL, "OPTIONAL", "optional", "اختياري", "optional")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_OPTIONAL, "OPTIONAL", "optional",
"اختياري", "optional")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_READ_ONLY, "READ_ONLY", "read_only", "فقط خواندني", "read-only")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_READ_ONLY, "READ_ONLY", "read_only",
"فقط خواندني", "read-only")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_READ_WRITE, "READ_WRITE", "read_write", "قابل نوشتن", "read-write")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_READ_WRITE, "READ_WRITE",
"read_write", "قابل نوشتن", "read-write")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_VALID, "VALID", "valid", "معتبر", "valid")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_VALID, "VALID", "valid", "معتبر",
"valid")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_INVALID, "INVALID", "invalid", "نامعتبر", "invalid")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_INVALID, "INVALID", "invalid",
"نامعتبر", "invalid")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_IN_RANGE, "IN_RANGE", "in_range", "در محدوده", "in-range")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_IN_RANGE, "IN_RANGE", "in_range",
"در محدوده", "in-range")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_OUT_OF_RANGE, "OUT_OF_RANGE", "out_of_range", "خارج از محدوده", "out-of-range")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_OUT_OF_RANGE, "OUT_OF_RANGE",
"out_of_range", "خارج از محدوده", "out-of-range")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_PLACEHOLDER_SHOWN, "PLACEHOLDER_SHOWN", "placeholder_shown", "نمايش جايگير", "placeholder-shown")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_PLACEHOLDER_SHOWN,
"PLACEHOLDER_SHOWN", "placeholder_shown", "نمايش جايگير",
"placeholder-shown")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_BLANK, "BLANK", "blank", "خالي", "blank")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_BLANK, "BLANK", "blank", "خالي",
"blank")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_TARGET, "TARGET", "target", "هدف", "target")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_TARGET, "TARGET", "target", "هدف",
"target")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ROOT, "ROOT", "root", "ريشه", "root")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ROOT, "ROOT", "root", "ريشه", "root")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_NTH_CHILD, "NTH_CHILD", "nth_child", "فرزند nام", "nth-child")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_NTH_CHILD, "NTH_CHILD", "nth_child",
"فرزند nام", "nth-child")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_NTH_LAST_CHILD, "NTH_LAST_CHILD", "nth_last_child", "آخرين فرزند nام", "nth-last-child")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_NTH_LAST_CHILD, "NTH_LAST_CHILD",
"nth_last_child", "آخرين فرزند nام", "nth-last-child")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_NTH_OF_TYPE, "NTH_OF_TYPE", "nth_of_type", "نوع nام", "nth-of-type")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_NTH_OF_TYPE, "NTH_OF_TYPE",
"nth_of_type", "نوع nام", "nth-of-type")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_NTH_LAST_OF_TYPE, "NTH_LAST_OF_TYPE", "nth_last_of_type", "آخرين نوع nام", "nth-last-of-type")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_NTH_LAST_OF_TYPE, "NTH_LAST_OF_TYPE",
"nth_last_of_type", "آخرين نوع nام", "nth-last-of-type")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FIRST_CHILD, "FIRST_CHILD", "first_child", "اولين فرزند", "first-child")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FIRST_CHILD, "FIRST_CHILD",
"first_child", "اولين فرزند", "first-child")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_LAST_CHILD, "LAST_CHILD", "last_child", "آخرين فرزند", "last-child")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_LAST_CHILD, "LAST_CHILD",
"last_child", "آخرين فرزند", "last-child")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FIRST_OF_TYPE, "FIRST_OF_TYPE", "first_of_type", "اولين نوع", "first-of-type")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_FIRST_OF_TYPE, "FIRST_OF_TYPE",
"first_of_type", "اولين نوع", "first-of-type")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_LAST_OF_TYPE, "LAST_OF_TYPE", "last_of_type", "آخرين نوع", "last-of-type")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_LAST_OF_TYPE, "LAST_OF_TYPE",
"last_of_type", "آخرين نوع", "last-of-type")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ONLY_CHILD, "ONLY_CHILD", "only_child", "تنها فرزند", "only-child")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ONLY_CHILD, "ONLY_CHILD",
"only_child", "تنها فرزند", "only-child")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ONLY_OF_TYPE, "ONLY_OF_TYPE", "only_of_type", "تنها نوع", "only-of-type")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_ONLY_OF_TYPE, "ONLY_OF_TYPE",
"only_of_type", "تنها نوع", "only-of-type")

ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_EMPTY, "EMPTY", "empty", "خالي", "empty")
ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(
AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_EMPTY, "EMPTY", "empty", "خالي",
"empty")

// ----------- END AUTO GENERATED ----------- //
// ----------- END AUTO GENERATED ----------- //
Loading

0 comments on commit c6e4387

Please sign in to comment.