انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

sytax analyzer

Share |
الكلية كلية العلوم للبنات     القسم قسم الحاسبات     المرحلة 3
أستاذ المادة خضير عباس حسين السعيدي       4/6/2011 7:24:11 PM

This lectures are devoted to parsing methods that are typically used in compilers.

We first present the basic concepts, then techniques suitable for hand implementation,

and finally algorithms that have been used in automated tools. Since

programs may contain syntactic errors, we discuss extensions of the parsing

methods for recovery from common errors.

By design, every programming language has precise rules that prescribe the

syntactic structure of well-formed programs. In C, for example, a program is

made up of functions, a function out of declarations and statements, a statement

out of expressions, and so on. The syntax of programming language constructs

can be specified by context-free grammars or BNF (Backus-Naur Form) notation,

introduced . Grammars offer significant benefits for both

language designers and compiler writers.

A grammar gives a precise, yet easy-to-understand, syntactic specification
of a programming language.
From certain classes of grammars, we can construct automatically an efficient
parser that determines the syntactic structure of a source program.
As a side benefit, the parser-construction process can reveal syntactic
ambiguities and trouble spots that might have slipped through the initial
design phase of a language.
The structure imparted to a language by a properly designed grammar
is useful for translating source programs into correct object code and for
detecting errors.
A grammar allows a language to be evolved or developed iteratively, by
adding new constructs to perform new tasks. These new constructs can
be integrated more easily into an implementation that follows the grammatical
structure of the language.


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم