VisualLISA A Quick and Simple Demonstration. The default aspect of an attribute grammar specification on VisualLISA. In this view we can add a new production.

Slides:



Advertisements
Similar presentations
CPSC 388 – Compiler Design and Construction
Advertisements

Universidade do Minho, Departamento de Informática Nuno Oliveira, 2008.
1 A Schneider Electric Software for Pre-Design of Industrial and Tertiary Building Electrical Distribution.
Using Word 2010 Part 1 Chapter 2 1. What is a Word Processor? 2.
Intermediate Code Generation
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Intro to Microsoft PowerPoint 2010 Public Computer Center, Moore Memorial Library, Greene, NY.
CSE 425: Semantic Analysis Semantic Analysis Allows rigorous specification of a program’s meaning –Lets (parts of) programming languages be proven correct.
Microsoft Word Objectives: Word processing using Microsoft Word
Compiler Principle and Technology Prof. Dongming LU Mar. 28th, 2014.
The main tools and functions of the system can be accessed via this side bar Allometric equations editor can be accessed under utilities, and user.
ASENT_MTTR.PPT Maintainability Predictions Last revised 8/11/2005.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
Chapter 3 Program translation1 Chapt. 3 Language Translation Syntax and Semantics Translation phases Formal translation models.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
UMBC Introduction to Compilers CMSC 431 Shon Vick 01/28/02.
Back to Table of Contents Advanced PowerPoint Techniques Prepared by Pat Samuel WS 445/545 - Feb
CSC 8310 Programming Languages Meeting 2 September 2/3, 2014.
MS Lesson 11: Spelling and Grammar MS Lesson 12: Moving a Selection MS Lesson 13: Copying a Selection Mrs. Brown.
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
Chapter 3 Working with Symbols and Interactivity.
© Cheltenham Computer Training 2002 Microsoft Publisher 2002 – Slide No 1 Microsoft Publisher 2002 Intermediate Level Course.
2.2 A Simple Syntax-Directed Translator Syntax-Directed Translation 2.4 Parsing 2.5 A Translator for Simple Expressions 2.6 Lexical Analysis.
Syntax Directed Definitions Synthesized Attributes
Xcode testing Using XCTest.
Muhammad Asad University of Engineering and Technology(UET), Taxila, Pakistan ITC Lab 05.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Chapter 1 Introduction Dr. Frank Lee. 1.1 Why Study Compiler? To write more efficient code in a high-level language To provide solid foundation in parsing.
1 ADVANCED MICROSOFT WORD Lesson 16 – Customizing Features Microsoft Office 2003: Advanced.
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
© 2003 Xilinx, Inc. All Rights Reserved For Academic Use Only Xilinx Design Flow FPGA Design Flow Workshop.
CS 326 Programming Languages, Concepts and Implementation Instructor: Mircea Nicolescu Lecture 2.
© 2011 Autodesk High-End Infrastructure Modeling with Low-Cost Tools: Introducing AutoCAD® Map 3D 2012 Bradford Heasley, GISP Vice President, Brockwell.
Lesson 3 CDT301 – Compiler Theory, Spring 2011 Teacher: Linus Källberg.
Programming for Artists ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 10 Fall 2010.
Graphic Basics in C ATS 315. The Graphics Window Will look something like this.
Computer Literacy for IC 3 Unit 2: Using Productivity Software Chapter 3: Formatting and Organizing Paragraphs and Documents © 2010 Pearson Education,
D Goforth COSC Translating High Level Languages.
Submitting and Assignment Click on the assignment link in your course The folder with the paper sticking out of the top is the symbol for an assignment.
Author Context Institution Presentation. The Problem Conception of a Visual Language; Development of a Processor for the Language; Idealization of the.
D Goforth COSC Translating High Level Languages Note error in assignment 1: #4 - refer to Example grammar 3.4, p. 126.
Chapter 3 Describing Syntax and Semantics
Use Flowchart modeling to design and create an interactive quiz to be run on Powerpoint. Start Question Click to start the quiz Correct Incorrect, try.
How to use By Lauren Fowler. Adding Attachments Attachments are pictures, videos and files that you have on your computer. You can add these to.
Step One: Introduction. Welcome to Follow My Clients! Once you log in, on the home page is your dash board. Here you will find your quick access buttons.
Concepts and Realization of a Diagram Editor Generator Based on Hypergraph Transformation Author: Mark Minas Presenter: Song Gu.
Chapter 7 - Functions. Functions u Code group that performs single task u Specification refers to what goes into and out of function u Design refers to.
An Introduction to Programming Using Alice 2.2, Second Edition Chapter 7 Recursive Algorithms.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
CompSci 4 Java 4 Apr 14, 2009 Prof. Susan Rodger.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Key Applications Module Lesson 12 — Word Essentials Computer Literacy BASICS.
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
PZ03CX Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ03CX - Language semantics Programming Language Design.
A Simple Syntax-Directed Translator
MANAGEMENT OF DASHBOARD MODELS
Software Testing With Testopia
How To Use PowerPoint A Brief Introduction to Commonly Used Features
CIS16 Application Development Programming with Visual Basic
Thinking about grammars
Grammar Errors
How To Use PowerPoint A Brief Introduction to Commonly Used Features
How To Use PowerPoint A Brief Introduction to Commonly Used Features
How To Use PowerPoint2 A Brief Introduction to Commonly Used Features
How To Use PowerPoint A Brief Introduction to Commonly Used Features
How To Use PowerPoint A Brief Introduction to Commonly Used Features
Thinking about grammars
How To Use PowerPoint A Brief Introduction to Commonly Used Features
RecipePlus and Recipe 2 Enhanced ActiveX control
Visual Programming Languages ICS 539 Icon System Visual Languages & Visual Programming, Chapter 1, Editor Chang, 1990 ICS Department KFUPM Sept. 1,
Presentation transcript:

VisualLISA A Quick and Simple Demonstration

The default aspect of an attribute grammar specification on VisualLISA. In this view we can add a new production to the grammar.

Global definitions for the grammar. Here we can add a new Lexeme or data type, import a new package or other kind of module, and define functions.

Adding a new Production. The addition of any symbol in the specification is done by clicking on the respective dock button, and click again on the drawing area.

Building the production tree: The root of the production is a brown cloud. The Nonterminal are orange ovals and the Terminals are green rectangles. The tree is drawn automatically.

Adding an attribute to a symbol. It is necessary to attach the attribute to the symbol (manually) and fill in the attribute’s form (attributeName and type)

In this picture is possible to see the usage of terminals and the their intrinsic attributes. A terminal has a name (mandatory) and a reg. exp. (optional).

Creating a computation rule. The base template of one production tree P is used for every Computation rules which belong to P. In this example, we just copy the value of an attribute to another.

Other computation rule example: In this case a function 'toInt', of type 'byte', is used to assign 'toInt(value)' to the attribute 'age', of type ‘int’. The semantic analyzer, associated with the graphical editor, will detect and signal an error (type mismatch). A Function has always one and only one output (blue arrow), but may have 0 or more arguments (red arrow).

Semantic errors detected on the grammar specification: In the example below, the checker complains about the mismatched types of the function and the attribute which is the target of the function’s output. Each error line is a link to the context where the error occurs.

The direct translation of the Visual Grammar into a LISA Specification is one of the possible Code Generation features. The translation into XML is another possibility. The next XML example is not complete. For the sake of space it was splitted into three parts

The XML Dialect proposed is intended to have a universal structure, being possible to keep the specification of any attribute grammar different from LISA.

The End VisualLISA