2 Pages

lexical

Course: COMS 541, Fall 2009
School: Iowa State
Rating:
 
 
 
 
 

Word Count: 312

Document Preview

541 CS Lecture -*- Outline -*- * Lexical (or micro-) syntax ** motivation is abstraction (working at the right level) want to describe syntax of language at a higher level than characters the higher level things are called tokens (words) also may want to have different sets of tokens (publication vs. working) but to do that have to define the syntax of tokens typically described as a regular language...

Register Now

Unformatted Document Excerpt

Coursehero >> Iowa >> Iowa State >> COMS 541

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
541 CS Lecture -*- Outline -*- * Lexical (or micro-) syntax ** motivation is abstraction (working at the right level) want to describe syntax of language at a higher level than characters the higher level things are called tokens (words) also may want to have different sets of tokens (publication vs. working) but to do that have to define the syntax of tokens typically described as a regular language because very simple regularity guarantees not ambiguous very fast to parse. ** Lexical conventions *** blanks, whitespace often used to separate tokens (words) *** reserved words: if, then, etc. cannot be used as identifiers *** keywords: (in Algol 60) are distinguished (by font, quotes etc) *** keywords in context: keywords only recognized in certain contexts /* PL/I example */ IF IF=THEN THEN THEN=ELSE; ELSE; IF=THEN=ELSE; ** Regular expressions (Watt, section 2.2.2) go quickly... --------------- Denotational semantics of REGULAR EXPRESSIONS Syntax: re ::= char | \epsilon | re re | re '|' re | re * | ( re ) | re + Semantics: for all c in char, r1, r2 in re M[[c]] = {"c"} M[[\epsilon]] = {""} M[[r1 r2]] = {st | s in M[[r1]], in t M[[r2]]} M[[r1 | r2]] = M[[r1]] \union M[[r2]] M[[r1*]] = {"", s,ss,...| s in M[[r1]]} M[[(r1)]] = M[[r1]] M[[r1+]] = M[[r1 (r1 *)]] --------------- Examples: ab denotes {"ab"} a|b denotes {"a", "b"} a* denotes {"", "a", "aa", ...} (all sequences of a's) (ab)* denotes {"", "ab", "abab", "ababab", ...} (a|b)* denotes {"", "a", "b", "ab", "ba", "aaa", ...} (\epsilon|a)(a)*b denotes a*b --many equivalent forms "(a|b|c|...|z|_|&...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Iowa State - COMS - 541
CS 541 Lecture -*- Outline -*-* Resolution (logical basis for Prolog)* putting universality together with rules recall (from logic-basics) slide about how we answer queries using rules and with universal facts now
Iowa State - COMS - 541
CS 541 Lecture -*- Outline -*-* Judging programming language designs goal: explore the questions: When is one language better than another?How to formalize that?* Flon's axiom: can write bad programs in any language--
Iowa State - COMS - 541
CS 541 Lecture -*- Outline -*- for Prologlecture 1* introductionlectures 1-2* pure-prolog* logic-basics* unification* resolution* procedural* prolog-programming* non-logical* research-directions
Iowa State - COMS - 541
Com S 541 Lecture -*- Outline -*- for haskell Remember to - make the lectures interactive - give pointers to the book/literature on where to find more for help sessions, see the file "recursion-discus
Iowa State - COMS - 541
Com S 541 Lecture -*- Outline -*-* Inheritance definition by extension (defining differences) with dynamic binding- A (SUPER)CLASS: STACKpackage misc;import scala.collection.mutable.ArrayBuffer;/* Stacks */class Stack[T](
Iowa State - COMS - 541
CS 541 Lecture -*- Outline -*-* Introduction to type checkingidea: (static) analysis to verify certain program propertiesostensibly to prevent run-time type errors* What is a "type"? Q: Can we define a type in a language independen
Iowa State - COMS - 541
CS 541 Lecture -*- Outline -*- for type checkinglecture 1* introductionused in '91-92* sml-type-inferenceused in '94-95
Iowa State - COMS - 541
Com S 541 Lecture -*- Outline -*-* Introduction to Haskell* interaction (Thompson chapter 2, replaces Davie 2.1) see also the on-line documentation for Hugs- INTERACTING WITH THE INTERPRETER$ hugs _ _ _ _ _ _ | | | |
Iowa State - COMS - 541
CS 541 Lecture -*- Outline -*- for standard-MLlecture 1* introductionlecture 1-2* built-in-typeslecture 2-3* data-driven-recursionlecture 4-5* concrete-datalecture 5* naminglecture 6-7* closures-functionalslecture 7* quiz
Iowa State - COMS - 541
CS 541 Lecture -*- Outline -*-* Pure Prolog* Syntax remindersSee grammar file (for lambda prolog)* Don't forget those periods!* comment convention is % to the end of the line* Case sensitive: variables begin with captial letter* facts and
Bowling Green - CIS - 331
ERD System Architect Sun May 19, 1996 10:53 Comment FSS Consolidated ERD v1.02 Last Update 5-11-96 005_TERMS Key Data "005_Terms" [PK1] Non-Key Data "005_Terms_Description" "005_Due_Days" "005_Discount_Days" "005_Discount_Percentage"014_CUSTOMER_PA
Bowling Green - CIS - 331
Mapping DFD's to Structure Charts: The Context (Take #2)Georgia State UniversityDFDs to Structure Charts L2Architectural DesignCustomer requirements."A rounded archway supported by Roman pillars"Georgia State UniversityDFDs to Structure
Bowling Green - CIS - 331
Module CouplingPrinciples of Coupling Type of CouplingGeorgia State UniversityModule Coupling1CouplingA measure of the interdependence among software modules Simple (low) connectivity among modules results in software that is easier to unde
Bowling Green - CIS - 331
ModularityModules Principles of Modular DesignGeorgia State UniversityModularity1ModularityProblemSoftware solutionGeorgia State UniversityModularity2ModularityModule Architecture hierarchical structure of componentsflat archi
Bowling Green - CIS - 813
Georgia State University, Computer Information Systems DepartmentOMT and Object ClassesApproaches to system specification Approaches to object/class discoveryDuane Truex, 1997 CIS813 Object Oriented Specificationspage 1Georgia State Universi
Bowling Green - CIS - 813
Georgia State University, Computer Information Systems DepartmentOMT and Object ClassesApproaches to system specification Approaches to object/class discoveryDuane Truex, 1997 CIS813 Object Oriented Specificationspage 1Georgia State Universi
Bowling Green - IB - 8710
Bowling Green - IB - 8710
The Economist Academic GuideWelcome To The Economist!Discover how to get MORE out of The Economist every week!Start with our expanded Table of Contents. It's designed to help you navigate the issue, with quick descriptions of each article, report
Bowling Green - CIS - 8090
Enterprise Architecture Management and the Parsanon SystemIntroduction:The focus of this paper is to introduce a new tool and a new concept in Enterprise Architecture Management called Parsanon. It should be clarified from the beginning that Parsan
Bowling Green - IB - 8680
76May 2002/Vol. 45, No. 5 COMMUNICATIONS OF THE ACMOLD ECONOMY FIRMSTOTRANSITIONINGE-BUSINESSSurveying the wreckage of the dot-com meltThe hype surrounding e-business has inspired a set down of 2001, it is easy to overlook the persistence an
Bowling Green - MBA - 8125
CHAPTER2All inserts need proofreadSTRATEGIC USE OF INFORMATION RESOURCES 1Dell Computer Corporation formally stopped selling personal computers (PCs) in retail stores because reaching customers in this way was expensive, time consuming, and di
Bowling Green - CIS - 8090
ERP Requirements ManagementCIS DepartmentProfessor Duane Truex IIIAir Force Mentor-Protg ProgramERP Requirements ManagementRonald E. Giachetti, Ph.D.Associate Professor Industrial and Systems Engineering Florida International UniversityD
Bowling Green - CIS - 8090
Life Cycle Notions and ERPspecific Life CyclesCIS DepartmentProfessor Duane Truex IIIAir Force Mentor-Protg Program"There are some enterprises in which a careful disorderliness is the true method." (Herman Melville, Moby Dick)1Air Force M
Bowling Green - MBA - 8125
CHAPTERAll inserts need proofreadTHE INFORMATION SYSTEMS STRATEGY TRIANGLENational Linen Service, a supplier of linen for restaurants and hotels, found itself facing poor earnings due to increased competition and a weak economy. The company deci
Bowling Green - IB - 8680
Agenda More Writing tipsDecision Sciences and ISProfessor Duane Truex IIICase Memo and writing Feedback(1) : Plagiarism Representing someone else's words and thoughts as your own. It is wrong, it is against the rules It will result in a fail
Bowling Green - IB - 8680
Accepted for Publication in:The Database for Advances Systems, vol. 35:1 Spring 2004Changing Patterns in IT Skill Sets 1988-2003: a content analysis of classified advertisementsMichael Gallavin,Georgia State UniversityDuane Truex,Florida Int
Bowling Green - CIS - 8090
Enterprise Service Bus DefinedCIS DepartmentProfessor Duane Truex IIIWikipedia says (07/19/06) In computing, an enterprise service bus refers to a software architecture construct, implemented by technologies found in a category of middleware i
Bowling Green - CIS - 8090
Date: To: From: Subject:July 26, 2006 Professor Truex Andrew Laird, Chris Tan, Padmaja Kalyanaraman Group 4 CIS 8090 Project Evaluation Summer 2006Introduction: Our team sought to model the architecture and organization of Ziegler Tools. Ziegle
Bowling Green - CIS - 8660
E-C Strategy Telcom ConceptsReview: apres pro N. NegrophonteCIS DepartmentProfessor Duane Truex IIIShannon DiagramHow people/machines communicateChannelSender Encoder ModulateDeModulateDecoderReceiverCoding Scheme: ASCII, EBCDIC
Bowling Green - CIS - 8660
Internet Value Networks; 12 Principles;andTending to e-businessCIS DepartmentProfessor Duane Truex IIITodays Learning Objectives Explore issues of how Value is created and maintained in e-commerce companies Begin to extract principles for
Bowling Green - IB - 8680
More Writing AdviceFrom the Researchers at Cambridge University direct to youFYIAoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltte
Bowling Green - CIS - 8660
E-Commerce Principles Agenda Day 1CIS DepartmentProfessor Duane Truex IIIThe E-commerce Strategy CourseHow = practiceIntegrate Theory and PracticeWhy = theoryBasic Building BlocksPrinciples of Business Strategy Principles and methods app
Bowling Green - MBA - 8125
Ethical and Social Issues in the Digital FirmMBA 8120 Week 4@ S. Petter, V.C. Storey 20051Course OverviewSecurity Corporate StrategyIS Strategy and PlanInternal Systems Development Implementation Outsourced Systems Development Infrastruc
Bowling Green - MBA - 8125
Systems DevelopmentMBA 8125 Week 8Sources: Schenk Seidmann K. Schwaig McConnell Laudon and Laudon 2006Copyright V.C. Storey, M.M. Moore 2005 1Course OverviewSecurity Corporate StrategyIS Strategy and PlanInternal Systems Development Implem
Bowling Green - CIS - 8660
E-commerce reconsideredE-commerce reconsidered: Exploring top-down and bottom-up approaches to e-commerceJonny HolmstrmCenter for Digital Business and the Department of Informatics Ume University Swedenhttp:/www.informatik.umu.se/~jhstrom/E-co
Bowling Green - MBA - 8125
Day 3Information Technology:The Design of Organizations and The Design of WorkCIS DepartmentProfessor Duane Truex IIIThe Information Systems Strategy TriangleBusiness Strategy What is the impact of the redesign on work and organizational st
Bowling Green - CIS - 8090
MEMORANDUM Date: July 16, 2007 To: Professor Truex From: Michelle Carter, CIS 8090, Summer 2007 Subject: Week 6: Architecture Design Languages and Variants _ 1. Introduction While authors cannot provide a single definition for software architecture,
Bowling Green - CIS - 8090
Date: July 4, 2006 To: Professor Truex From: Andrew Laird, Summer 06 CIS8090 Subject: Architecture Design Languages and Variants Introduction: The article "A Classification and Comparison Framework for Software Architecture Description Languages" giv
Bowling Green - IB - 8710
Criteria Acceleration of changes in todays business world Emerging of new business modelsAlvin Toffler Yes! The mind as driver of changes Increasing speed of innovations Yes! Information and knowledge are the new competitive advantages Increasi
Bowling Green - CIS - 8090
Table 1: Architecture Design Languages and Variants criteria What is the purpose of the article? medvidovic & Taylor 1) To distinguish ADL from other types of languages 2) To present a definition and classification framework for ADL 3) To identify ke
Bowling Green - IB - 8710
Friedman, Florida and Reich on the Creative Class, the Symbolic Analyst and "Flatness""The Creative Class: What I learned."From a speech by R Florida in Savanna GA, 2007 and the book The Flight of the Creative Class, 2005 as well as R. Reich's "Th
Bowling Green - IB - 8710
International PerspectivesKalle Lyytinen and Seymour GoodmanFinland: The Unknown Soldier on the IT FrontDuring the same week in August 1998 two Finns appeared on the covers of Fortune and BusinessWeek. Linus Torvalds was acclaimed by Fortune a
Bowling Green - IB - 8710
I nternational PerspectivesSen RiainThe Birth of a Celtic Tigerast St. Patrick's Day, traditional Irish musicians in Dublin, New York, and Paris were brought together in a concert transmitted live over the Internet to emigrants gathered in bars
Bowling Green - IB - 8710
The Work Of Nations: <BR>An Interview With Robert B. Reich01/24/2007 02:38 PMTHE WORK OF NATIONS Interview by Terry Morrison The challenge facing all nations in the future is to improve its citizens standard of living by enhancing the value of wh
Bowling Green - IB - 8710
International PerspectivesS. J. Lukasik, L. T. Greenberg, S. E. GoodmanProtecting an Invaluable and Ever-Widening Infrastructurenfrastructure is defined as the basic facilities, services, and installations needed for the functioning of a communit
Bowling Green - IB - 8710
] ] ] D ] ] ] ] ] ] ] ]On SiteJan Guynes Clark and Vincent S. LaiInternet Comes to Moroccoespite massive progress in telecommunications and technology, there remains a great disparity between the telecommunications services and capabilities ava
Bowling Green - IB - 8710
ITOUTSOURCINGA longitudinal study at four companies provides valuable insights about the evolution of IT outsourcing relationships.A RELATIONSHIP PERSPECTIVE ONOutsourcing has been a key method for managing IT and systems (ITS) portfolios
Bowling Green - IB - 8710
International PerspectivesGrey E. Burkhart, Seymour E. Goodman, Arun Mehta, Larry PressThe Internet in India: Better Times Ahead?ndia: The world's largest democracy; focal point of competition between rival empires-local and foreign-for more than
Bowling Green - IB - 8710
The Effect of National Culture and Economic Wealth on Global Software Piracy RatesTrevor T. MooresAccording to a recent survey on global software piracy [9], the Business Software Alliance estimated that the illegal duplication, distribution, or sa
Bowling Green - IB - 8710
ViewpointCatherine L. MannWhat Global Sourcing Means for U.S. IT Workers and for the U.S. EconomyThe result is likely to be increased IT employment diffused throughout the U.S. economy, especially in non-tech industrial sectors.very reader of C
Bowling Green - IB - 8710
Christopher MorganOn SiteBuilding an Informational Bridge to Chinahina is undergoing a technological sea change in the late 1990s, and the effects will be felt far into the new millennium. The country will play a major role-perhaps the major rol
Bowling Green - IB - 8710
Israel: Of Swords and Software Plowshares; In July 1947, the Advisory Commit- tee of the Applied Mathematics DrE partment of the Weitrmann Institute, : consisting of Albert Einstein, Hans > Kramer, Robert Oppenheimer, John z van Neumann and Abram P
Bowling Green - IB - 8710
Day 2: Commanding InfrastructuresCIS DepartmentProfessor Duane Truex IIIPower of Ideas What themes were apparent in the materials for tonight? In Commanding heights? Between readings? An Infrastructure is? The power of Infrastructure is?
Bowling Green - IB - 8710
Global Cash Management Business and IT ChallengesDoug Spickler March 14th, 2007UPS at a GlanceFounded 1907 in Seattle Washington Global Headquarters in Atlanta Georgia 2005 Revenue - $42.6 Billion Employees: 407,200 (348,400 US ; 58,800 Interna
Bowling Green - IB - 8710
ICT, Transnationality, and R&DBusinessWeek and ICT enabled Organizational RedesignCOURSE NAME.Professor Duane Truex IIIProfessor TruexCourse name1Professor TruexCourse nameProfessor TruexCourse name2Professor TruexCourse name
Bowling Green - IB - 8710
Managing across Borders: New Strategic RequirementsChristopher A Bartlett; Sumantra Ghosbal Sloan Management Review (1986-1998); Summer 1987; 28, 4; ABI/INFORM Global pg. 7Reproduced with permission of the copyright owner. Further reproduction pr
Bowling Green - IB - 8710
May 9, 2005 Section: Enterprise Edition: U.S. Edition Page: 36Blue in a China Shop Steve Ward is stillMr. ThinkPad-just not with IBM. NewsweekLate last year came the shocking news that IBM will be selling its PC business (including the acclaimed
Bowling Green - IB - 8710
N. N. MITEV. The globalisation of transport? Computerised reservation systems at American Airlines and French Railways, In Rewiring Prometheus: History, Globalisation and Technology, edited by P. Lyth and H. Trischler, introduction by Thomas Hughes,
Bowling Green - IB - 8710
March 26, 2001 Network DisconnectsSpotty Infrastructure Impairs World ViewBy TIM WILSONRelated Stories E-Business Lurches Abroad In industries as diverse as life sciences and financial services, e businesses are getting ready to take on the w
Bowling Green - IB - 8710
1Submission : OASIS04IT Architecture and ES integration in SMEsAuthors : Bidan, Rowe and Truex1 2 3 4 5 6 7 8 9 10 11IT architectures and Enterprise Systems integration in SMEsMarc Bidan, University of Nantesemail: marc.bidan@iut-nantes.u
Bowling Green - IB - 8710
What is an Infrastructure?From clean water to broadband.and beyond.I.B. 8710 International Information Technology Issues Deliverable Number One (2nd Completed Assignment) Dr. Duane Truex Christopher L. Wassenaar Spring Semester 2008 Thursday, Jan