Search the World's Largest Database of Information Science & Technology Terms & Definitions
InfInfoScipedia LogoScipedia
A Free Service of IGI Global Publishing House
Below please find a list of definitions for the term that
you selected from multiple scholarly research resources.

What is Context-Free Grammar

Encyclopedia of Information Science and Technology, Second Edition
A context-free grammar is a quadruple (N, T, P, S), where N is a set of nonterminal symbols; T is a set of terminal symbols with T n N = Ø; the relation P ? N × (N ? T)* is a finite set of production rules and S is the start symbol with S ? N. The production of the form A ? a means A derives a, where A ? N and a? (N ? T)*.
Published in Chapter:
Implementation of Programming Languages Syntax and Semantics
Xiaoqing Wu (The University of Alabama, USA), Marjan Mernik (University of Maribor, Slovenia), Barrett R. Bryant (The University of Alabama, USA), and Jeff Gray (The University of Alabama, USA)
DOI: 10.4018/978-1-60566-026-4.ch293
Abstract
Unlike natural languages, programming languages are strictly stylized entities created to facilitate human communication with computers. In order to make programming languages recognizable by computers, one of the key challenges is to describe and implement language syntax and semantics such that the program can be translated into machine-readable code. This process is normally considered as the front-end of a compiler, which is mainly related to the programming language, but not the target machine. This article will address the most important aspects in building a compiler front-end; that is, syntax and semantic analysis, including related theories, technologies and tools, as well as existing problems and future trends. As the main focus, formal syntax and semantic specifications will be discussed in detail. The article provides the reader with a high-level overview of the language implementation process, as well as some commonly used terms and development practices.
Full Text Chapter Download: US $37.50 Add to Cart
eContent Pro Discount Banner
InfoSci OnDemandECP Editorial ServicesAGOSR