GNU bison
מתוך ויקיפדיה, האנציקלופדיה החופשית
GNU bison היא תוכנה ליצירת נתחים תחביריים (parser) שנכתבה למיזם GNU, וזמינה כמעט לכל מערכות ההפעלה. התוכנה נועדה לעזור למתכנתים ליצור תכניות המנתחות טקסטים מורכבים בשפות שהוגדרו מראש.
הנתח התחבירי הנוצר על ידי התוכנה עובד בשיטה של של זיהוי מטבעות (tokens) שהוגדרו מראש (לרוב נעשה הזיהוי הטקסטואלי של המטבעות בעזרת תוכנת flex) וניתוח משמעותם בשפה שהוגדרה לפי מיקומם בטקסט.
בעת השימוש בתוכנה יש ליצור כללים שיופעלו כאשר הנתח התחבירי ייתקל במטבעות מסוימים.
לאחר הרצת התוכנה על קובץ הגדרת כללי השפה הוא יוצר קוד בשפת C שיקרא את הטקסטים בשפה המוגדרת וידע לפרש אותם בהתאם למיקומם במשפט ובכך לנתח נכון את משמעות המשפט.
[עריכה] קישורים חיצוניים
ערך זה הוא קצרמר בנושא מחשבים. אתם מוזמנים לתרום לוויקיפדיה ולהרחיב אותו.