Attribute Grammar Inversion and Source-to-source Translation - download pdf or read online

By Daniel M. Yellin

ISBN-10: 3540190724

ISBN-13: 9783540190721

With the proliferation of laptop languages and dialects, you will need to create instruments to assist within the development of source-to-source translators. by way of permitting clients to use software program (or info) written for an additional process, those instruments shape a huge part within the quest for software program reusability. After discussing the theoretical and sensible problems with characteristic grammar inversion, this publication demonstrates how the method can be utilized to construct source-to-source translators. this is often performed by means of first picking out a typical canonical shape during which to symbolize a few of the resource languages after which writing characteristic grammars from every one resource to the canonical shape. by means of immediately inverting those characteristic grammars one obtains translators from the canonical shape again to every resource language and through composing the fitting pairs of translators one obtains source-to-source translators. To turn out the feasibility of the inversion method of source-to-source translation, it's been used to generate translators among the programming languages Pascal and C.

Show description

Read or Download Attribute Grammar Inversion and Source-to-source Translation PDF

Similar compilers books

Get Ada 2005 Reference Manual. Language and Standard Libraries: PDF

The Ada 2005 Reference guide combines the foreign normal ISO/IEC 8652/1995(E) for the programming language Ada with the corrections of the Technical Corrigendum 1 licensed by way of ISO in February 2001 and with the modification 1 anticipated to be authorized by way of ISO in past due 2006 or early 2007. either the Technical Corrigendum 1 and the modification 1 checklist purely the alterations made to the foreign general.

Introduction to Assembly Language Programming For Pentium by Sivarama P. Dandamudi PDF

This up-to-date textbook introduces readers to meeting and its evolving function in computing device programming and layout. the writer concentrates the revised version on protected-mode Pentium programming, MIPS meeting language programming, and use of the NASM and SPIM assemblers for a Linux orientation. the focal point is on offering scholars with an organization seize of the most gains of meeting programming, and the way it may be used to enhance a desktops functionality.

Read e-book online Text Analytics with Python: A Practical Real-World Approach PDF

Derive worthwhile insights out of your information utilizing Python. study the strategies regarding usual language processing and textual content analytics, and achieve the talents to grasp which process is most fitted to unravel a specific challenge. textual content Analytics with Python teaches you either uncomplicated and complex strategies, together with textual content and language syntax, constitution, semantics.

Additional resources for Attribute Grammar Inversion and Source-to-source Translation

Sample text

Rename the components and edit their properties according to Figure 2-4. CHAPTER 2 ■ SETTING UP THE POSAPP Figure 2-4. Components and their properties of the MainScreenForm 8. Add a second multi-device form to the project. exe element in the Project Manager (see Figure 2-5) and choose HD Form from the wizard. 17 CHAPTER 2 ■ SETTING UP THE POSAPP Figure 2-5. The popup menu to add a form to the project 9. pas. Then use Figure 2-6 to add components, rename them, and adjust their properties. CHAPTER 2 ■ SETTING UP THE POSAPP Figure 2-6.

There are a few things left. In the InvoiceForm, select the PopupMenuItems popup menu component, open the Items Editor, and open a TMenuItem labeled Delete Entry. Select the menu item you created and implement the OnClick event. interface ... type TSalesInvoiceForm = class(TForm) ... procedure MenuItemDeleteItemClick(Sender: TObject); private ... public { Public declarations } end; ... implementation ... RemoveItem(tmpInvoiceItem, TDirection. FromBeginning); break; end; end; UpdateInvoiceGrid; UpdateBalance; end; Select the CheckBoxDiscount check box and write the OnChange event to update the discounted amount, as you have already considered the discount in UpdateBalance.

SaveCurrentSales takes the amount of the current invoice and adds it to the saved sales figure. 27 CHAPTER 2 ■ SETTING UP THE POSAPP The Main Form The last thing we need to implement is a way for the main screen to update the total amount of sales. Return to the MainScreenForm unit and create a private procedure entitled UpdateTotalSales. , Database; type TMainForm = class(TForm) ... procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: TObject); private procedure UpdateTotalSales; public { Public declarations } end; Enter the following code in the OnCreate event and, then, develop UpdateTotalSales (click anywhere in the class declaration and press Ctrl+Shift+C.

Download PDF sample

Attribute Grammar Inversion and Source-to-source Translation by Daniel M. Yellin

by Paul

Rated 4.97 of 5 – based on 49 votes