DESKTOP

Algorithms for Compiler Design: WHY LR PARSING IS ATTRACTIVE

7/24/2010 7:48:44 PM
5.6 WHY LR PARSING IS ATTRACTIVE
There are several reasons why LR parsers are attractive:
  1. An LR parser can be constructed to recognize virtually all programming language constructs for which a CFG can be written.

  2. The LR parsing method is the most general, nonbacktracking shift-reduce method known. Yet it can be implemented as efficiently as any other method.

  3. The class of grammars that can be parsed by using the LR method is a proper superset of the class of grammars that can be parsed with a predictive parser.

  4. The LR parser can quickly detect a syntactic error via the left-to-right scanning of input.

The main drawback of the LR method is that it is too much work to construct an LR parser by hand for a typical programming language grammar. But fortunately, many LR parser generators are available that automatically generate the required LR parser.


Other  
 
Video
Top 10
Mobile Application Security : The Apple iPhone - Push Notifications, Copy/Paste, and Other IPC
Exploring the T-SQL Enhancements in SQL Server 2005 : The WAITFOR Command
Parallel Programming with Microsoft .Net : Parallel Aggregation - Variations
Optimizing an Exchange Server 2010 Environment : Analyzing Capacity and Performance
Programming .NET Security : Hashing Algorithms Explained
Sharepoint 2007: Specify Your Colleagues
Algorithms for Compiler Design: THE NFA WITH ∈-MOVES
Choosing The Right Parts For Your Build (Part 1) - Picking the perfect processor
Choosing The Right Parts For Your Build (Part 5) - Choosing your case & Picking the right storage
SQL Server 2008 : Leveraging the Microsoft Sync Framework
Most View
Legal Trouble with Social Networks (Part 1)
The choices of mobile computing for SOHO users (part 2)
Infrastructure Security: The Application Level
Sharepoint 2007: Create a New List Item
SQL Azure Data Access
Getting Started with MySQL Enterprise & MySQL Enterprise Components
iPhone Application Development : Using Advanced Interface Objects and Views - User Input and Output
How to Protect Your Mobile Devices
Joomla! Blogging and RSS Feeds : Commenting anyone?
The Second BlackBerry Developers Conference Asia (Part 2)
Windows Azure : Understanding the Blob Service
Windows Server 2008 : Understanding the Identity Management for UNIX Components
Migrating from Legacy SharePoint to SharePoint Server 2010 : Using Visual Upgrade
Designing and Implementing Mobility in Exchange Server 2010 : Securing Access to ActiveSync Using Internet Security and Acceleration (ISA) Server 2006
SQL Server 2008 : Explaining Advanced Query Techniques - Creating CTEs
Configuring Server Roles in Windows 2008 : New Roles in 2008
Mass Effect Infiltrator
iPhone 3D Programming : Anti-Aliasing Tricks with Offscreen FBOs (part 1) - A Super Simple Sample App for Supersampling
Changes in Windows Vista Affecting SDI
Search for a File or Directory