TY - JOUR AU - حنا, جبر AU - ميا, علي PY - 2014/07/14 Y2 - 2024/03/28 TI - تصميم مترجم للغة مصدرية مقترحة باستخدام الأداتين البرمجيتين LEX و BISON JF - Tishreen University Journal -Engineering Sciences Series, JA - Tuj-eng VL - 36 IS - 4 SE - Articles DO - UR - https://journal.tishreen.edu.sy/index.php/engscnc/article/view/1132 SP - AB - <p class="Default">تقدم الدراسة طريقة لتوليد مترجم متكامل للغة مصدرية مقترحة تتضمن جميع العمليات الحسابية والمنطقية والحلقات وبنى التحكم وعمليات التصريح والإسناد. تتضمن الدراسة عدة مراحل بدءاً من مرحلة بناء محلل المفردات (الماسح) اعتماداً على البنية البرمجية LEX، يلي ذلك مرحلة بناء المحلل القواعدي باستخدام الأداة البرمجية BISON وذلك من أجل تحديد قواعد اللغة الناظمة لعمل المترجم، بعد ذلك يتم ترجمة المعرب (Parser) باستخدام لغة Turbo C++ وذلك للحصول على الخرج النهائي. تم اختبار المترجم المقترح على مئة ملف مصدري، وأظهر المترجم قدرة على ترجمة كل الملفات وتحديد مواقع الخطأ والعبارات المسببة للخطأ في كل ملف مصدري.</p> <p>This paper proposes an approach for compiler construction of a proposed source language consisting of all computational and logical operations, control statements, loops, declarations and assignment operations. This study is based on many steps starting from lexical analysis (Scanner) depending on LEX environment; after that, the syntax analysis step is done to obtain the syntax analyzer (Parser) which defines the grammar rules. The final step is compiling the parser using Turbo C++ to get the final output. The designed compiler has been tested on 100 source files, and the results show that the designed program compiles all these source files correctly .In addition it defines the error’s locations through them.</p> ER -