Skip to content

Commit c58407e

Browse files
committed
جاري العمل على مفسر اللغة
1 parent 8d90ccd commit c58407e

File tree

4 files changed

+21
-14
lines changed

4 files changed

+21
-14
lines changed

source/AlifCore/Include/Main/TupleObject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ AlifIntT alifTuple_resize(AlifObject** , AlifSizeT ); // 13
2929
#define ALIFTUPLE_CAST(_op) ALIF_CAST(AlifTupleObject*, (_op))
3030

3131

32-
static inline AlifSizeT alifTuple_getSize(AlifObject* _op) { // 21
32+
static inline AlifSizeT _alifTuple_getSize(AlifObject* _op) { // 21
3333
AlifTupleObject* tuple = ALIFTUPLE_CAST(_op);
3434
return ALIF_SIZE(tuple);
3535
}
36-
#define ALIFTUPLE_GET_SIZE(_op) alifTuple_getSize(ALIFOBJECT_CAST(_op))
36+
#define ALIFTUPLE_GET_SIZE(_op) _alifTuple_getSize(ALIFOBJECT_CAST(_op))
3737

3838
#define ALIFTUPLE_GET_ITEM(_op, _index) (ALIFTUPLE_CAST(_op)->item[(_index)]) // 27
3939

source/AlifCore/Objects/GetArgs.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static AlifIntT vGetArgs1_impl(AlifObject* _compatArgs,
8888
_flags = _flags & ~FLAG_COMPAT;
8989

9090
while (endfmt == 0) {
91-
int c = *_format++;
91+
AlifIntT c = *_format++;
9292
switch (c) {
9393
case '(':
9494
if (level == 0)
@@ -157,7 +157,7 @@ static AlifIntT vGetArgs1_impl(AlifObject* _compatArgs,
157157
// fname == nullptr ? "" : "()");
158158
return clean_return(0, &freelist);
159159
}
160-
else if (min == 1 && max == 1) {
160+
else if (min == 1 and max == 1) {
161161
if (_compatArgs == nullptr) {
162162
//alifErr_format(_alifExcTypeError_,
163163
// "%.200s%s takes at least one argument",
@@ -179,7 +179,7 @@ static AlifIntT vGetArgs1_impl(AlifObject* _compatArgs,
179179
}
180180
}
181181

182-
if (_nargs < min || max < _nargs) {
182+
if (_nargs < min or max < _nargs) {
183183
//if (message == nullptr)
184184
//alifErr_format(_alifExcTypeError_,
185185
// "%.150s%s takes %s %d argument%s (%zd given)",
@@ -331,8 +331,8 @@ static const char* convert_item(AlifObject* _arg, const char** _pFormat, va_list
331331
format++;
332332
}
333333
else {
334-
//msg = convert_simple(_arg, &format, _pVa, _flags,
335-
// _msgbuf, _bufsize, _freelist);
334+
msg = convert_simple(_arg, &format, _pVa, _flags,
335+
_msgbuf, _bufsize, _freelist);
336336
if (msg != nullptr)
337337
_levels[0] = 0;
338338
}

tools/ConvertFilesToUTF-8/كيفية التشغيل.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
بقراءة الملفات بالترميز الصحيح وبالتالي عدم قدرته على تشغيل اللغة
55
###-----------!
66

7+
يجب التأكد من تشغيل خيار UTF-8 في نظام الويندوز
78

89
- افتح PowerShell كمسوؤل
910

winBuild/example.alif

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1+
صنف كرة:
2+
القطر = 5
3+
4+
الكرة = كرة()
5+
اطبع(الكرة.القطر)
6+
17
س = 9 + 8 - 7 * 6 / 5 ^ /^ 4
28

3-
دالة السرعة(ش = 6):
4-
اطبع(ش)
5-
لاجل ص في (5, 7, 9):
6-
اذا ص == 9:
7-
توقف
8-
ارجع ص
9+
#دالة السرعة(ش = 6):
10+
# اطبع(ش)
11+
# لاجل ص في (5, 7, 9):
12+
# اذا ص == 9:
13+
# توقف
14+
# ارجع ص
915

10-
اطبع(السرعة(7))
16+
#اطبع(السرعة(7))
1117

1218

1319
بينما س < 30:

0 commit comments

Comments
 (0)