Categories
Ebooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Computer in the office
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Multimedia trainings
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Reports, analyses
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
- Architektura i wnętrza
- Biznes i Ekonomia
- Home and garden
- E-business
- Finances
- Personal finance
- Business
- Photography
- Computer science
- HR & Payroll
- Computers, Excel
- Accounts
- Culture and literature
- Scientific and academic
- Environmental protection
- Opinion-forming
- Education
- Taxes
- Travelling
- Psychology
- Religion
- Agriculture
- Book and press market
- Transport and Spedition
- Healthand beauty
-
History
-
Computer science
- Office applications
- Data bases
- Bioinformatics
- IT business
- CAD/CAM
- Digital Lifestyle
- DTP
- Electronics
- Digital photography
- Computer graphics
- Games
- Hacking
- Hardware
- IT w ekonomii
- Scientific software package
- School textbooks
- Computer basics
- Programming
- Mobile programming
- Internet servers
- Computer networks
- Start-up
- Operational systems
- Artificial intelligence
- Technology for children
- Webmastering
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Narrative poetry
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
School textbooks
-
Popular science and academic
- Archeology
- Bibliotekoznawstwo
- Cinema studies
- Philology
- Polish philology
- Philosophy
- Finanse i bankowość
- Geography
- Economy
- Trade. World economy
- History and archeology
- History of art and architecture
- Cultural studies
- Linguistics
- Literary studies
- Logistics
- Maths
- Medicine
- Humanities
- Pedagogy
- Educational aids
- Popular science
- Other
- Psychology
- Sociology
- Theatre studies
- Theology
- Economic theories and teachings
- Transport i spedycja
- Physical education
- Zarządzanie i marketing
-
Guides
-
Game guides
-
Professional and specialist guides
-
Law
- Health and Safety
- History
- Road Code. Driving license
- Law studies
- Healthcare
- General. Compendium of knowledge
- Academic textbooks
- Other
- Construction and local law
- Civil law
- Financial law
- Economic law
- Economic and trade law
- Criminal law
- Criminal law. Criminal offenses. Criminology
- International law
- International law
- Health care law
- Educational law
- Tax law
- Labor and social security law
- Public, constitutional and administrative law
- Family and Guardianship Code
- agricultural law
- Social law, labour law
- European Union law
- Industry
- Agricultural and environmental
- Dictionaries and encyclopedia
- Public procurement
- Management
-
Tourist guides and travel
- Africa
- Albums
- Southern America
- North and Central America
- Australia, New Zealand, Oceania
- Austria
- Asia
- Balkans
- Middle East
- Bulgary
- China
- Croatia
- The Czech Republic
- Denmark
- Egipt
- Estonia
- Europe
- France
- Mountains
- Greece
- Spain
- Holand
- Iceland
- Lithuania
- Latvia
- Mapy, Plany miast, Atlasy
- Mini travel guides
- Germany
- Norway
- Active travelling
- Poland
- Portugal
- Other
- Russia
- Romania
- Slovakia
- Slovenia
- Switzerland
- Sweden
- World
- Turkey
- Ukraine
- Hungary
- Great Britain
- Italy
-
Psychology
- Philosophy of life
- Kompetencje psychospołeczne
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Audiobooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Real estate
- Persuasion and NLP
- Taxes
- Guides
- Presentations
- Leadership
- Public Relation
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
History
-
Computer science
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
Popular science and academic
-
Guides
-
Professional and specialist guides
-
Law
-
Tourist guides and travel
-
Psychology
- Philosophy of life
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Videocourses
-
Data bases
-
Big Data
-
Biznes, ekonomia i marketing
-
Cybersecurity
-
Data Science
-
DevOps
-
For children
-
Electronics
-
Graphics/Video/CAX
-
Games
-
Microsoft Office
-
Development tools
-
Programming
-
Personal growth
-
Computer networks
-
Operational systems
-
Software testing
-
Mobile devices
-
UX/UI
-
Web development
-
Management
Podcasts
- Ebooks
- Programming
- Programming techniques
- Implementing Domain-Specific Languages with Xtext and Xtend. If you know Eclipse then learning how to implement a DSL using Xtext is a natural progression. And this guide makes it easy to get started through a step-by-step approach accompanied with simple examples
E-book details
Log in, If you're interested in the contents of the item.
Implementing Domain-Specific Languages with Xtext and Xtend. If you know Eclipse then learning how to implement a DSL using Xtext is a natural progression. And this guide makes it easy to get started through a step-by-step approach accompanied with simple examples
Ebook
Xtext is an open source Eclipse framework for implementing domain-specific languages together with its IDE functionalities. It lets you implement languages really quickly, and, most of all, it covers all aspects of a complete language infrastructure, starting from the parser, code generator, interpreter, and more. Implementing Domain-Specific Languages with Xtext and Xtend will teach you how to develop a DSL with Xtext, an Eclipse framework for implementing domain-specific languages. The chapters are like tutorials that describe the main concepts of Xtext such as grammar definition, validation, code generation, customizations, and many more, through uncomplicated and easy-to-understand examples. Starting with briefly covering the features of Xtext that are involved in a DSL implementation, including integration in an IDE, the book will then introduce you to Xtend as this language will be used in all the examples throughout the book. We then proceed by explaining the main concepts of Xtext, such as validation, code generation, and customizations of runtime and UI aspects. By the end of the book, you will have learned how to test a DSL implemented in Xtext with Junit, in order to follow a test-driven development strategy that will help the developer implement maintainable code that is much faster and cleaner. A test-driven approach is used throughout the book when presenting advanced concepts such as type checking and scoping. The book also shows you how to build and release a DSL so that it can be installed in Eclipse, and gives you hints on how to build the DSL headlessly in a continuous integration server. Implementing Domain-Specific Languages with Xtext and Xtend aims to complement the official Xtext documentation to explain the main concepts through simplified examples and to teach the best practices for a DSL implementation in Xtext. It is a Beginner's Guide which should set you up for professional development DSL and its Eclipse IDE tooling.
- Implementing Domain-Specific Languages with Xtext and Xtend
- Table of Contents
- Implementing Domain-Specific Languages with Xtext and Xtend
- Credits
- About the Author
- Acknowledgement
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers, and more
- Why Subscribe?
- Free Access for Packt account holders
- Support files, eBooks, discount offers, and more
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- 1. Implementing a DSL
- Domain Specific Languages
- So, why should you create a new language?
- Implementing a DSL
- Parsing
- The Abstract Syntax Tree (AST)
- IDE integration
- Syntax highlighting
- Background parsing
- Error markers
- Content assist
- Hyperlinking
- Quickfixes
- Outline
- Automatic build
- Summarizing DSL implementation
- Enter Xtext
- Installing Xtext
- Lets try Xtext
- The aim of this book
- Summary
- Domain Specific Languages
- 2. Creating Your First Xtext Language
- A DSL for entities
- Creating the project
- Xtext projects
- Modifying the grammar
- Let's try the Editor
- The Xtext generator
- The Eclipse Modeling Framework (EMF)
- Improvements to the DSL
- Dealing with types
- Summary
- A DSL for entities
- 3. The Xtend Programming Language
- An introduction to Xtend
- Using Xtend in your projects
- Xtend a better Java with less "noise"
- Extension methods
- The implicit variable it
- Lambda expressions
- Multi-line template expressions
- Additional operators
- Polymorphic method invocation
- Enhanced switch expressions
- Debugging Xtend code
- Summary
- An introduction to Xtend
- 4. Validation
- Validation in Xtext
- Default validators
- Custom validators
- Quickfixes
- Textual modification
- Model modification
- Quickfixes for default validators
- Summary
- Validation in Xtext
- 5. Code Generation
- Introduction to code generation
- Writing a code generator in Xtend
- Integration with the Eclipse build mechanism
- Standalone command-line compiler
- Summary
- 6. Customizations
- Dependency injection
- Google Guice in Xtext
- Customizations of IDE concepts
- Labels
- The Outline view
- Customizing other aspects
- Custom formatting
- Other customizations
- Summary
- 7. Testing
- Introduction to testing
- Junit 4
- The ISetup interface
- Implementing tests for your DSL
- Testing the parser
- Testing the validator
- Testing the formatter
- Testing code generation
- Test suite
- Testing the UI
- Testing the content assist
- Testing workbench integration
- Testing the editor
- Other UI testing frameworks
- Testing and modularity
- Clean code
- Summary
- 8. An Expression Language
- The Expressions DSL
- Creating the project
- Digression on Xtext grammar rules
- The grammar for the Expressions DSL
- Left recursive grammars
- Associativity
- Precedence
- The complete grammar
- Forward references
- Typing expressions
- Type provider
- Validator
- Writing an interpreter
- Using the interpreter
- Summary
- The Expressions DSL
- 9. Type Checking
- SmallJava
- Creating the project
- SmallJava grammar
- Rules for declarations
- Rules for statements and syntactic predicates
- Rules for expressions
- The complete grammar
- Utility methods
- Testing the grammar
- First validation rules
- Checking cycles in class hierarchies
- Checking member selections
- Checking return statements
- Checking for duplicates
- Type checking
- Type provider for SmallJava
- Type conformance (subtyping)
- Expected types
- Checking type conformance
- Checking method overriding
- Improving the UI
- Summary
- SmallJava
- 10. Scoping
- Cross-reference resolution in Xtext
- Containments and cross-references
- The index
- Qualified names
- Exported objects
- The linker and the scope provider
- Component interaction
- Custom scoping
- Scope for blocks
- Scope for inheritance and member visibility
- Visibility and accessibility
- Filtering unwanted objects from the scope
- Global scoping
- Packages and imports
- The index and the containers
- Checking duplicates across files
- Providing a library
- Default imports
- Using the library outside Eclipse
- Using the library in the type system and scoping
- Dealing with super
- What to put in the index?
- Additional automatic features
- Summary
- Cross-reference resolution in Xtext
- 11. Building and Releasing
- Release engineering
- Headless builds
- Target platforms
- Continuous integration
- Introduction to Buckminster
- Installing Buckminster
- Using the Xtext Buckminster wizard
- Building the p2 repository from Eclipse
- Customizations
- Defining the target platform
- Build headlessly
- Maintaining the examples of this book
- Summary
- Release engineering
- 12. Xbase
- Getting introduced with Xbase
- The Expressions DSL with Xbase
- Creating the project
- The IJvmModelInferrer interface
- Code generation
- Debugging
- The Entities DSL with Xbase
- Creating the project
- Defining attributes
- Defining operations
- Imports
- Customizations
- Summary
- 13. Bibliography
- Index
- Title: Implementing Domain-Specific Languages with Xtext and Xtend. If you know Eclipse then learning how to implement a DSL using Xtext is a natural progression. And this guide makes it easy to get started through a step-by-step approach accompanied with simple examples
- Author: Lorenzo Bettini
- Original title: Implementing Domain-Specific Languages with Xtext and Xtend. If you know Eclipse then learning how to implement a DSL using Xtext is a natural progression. And this guide makes it easy to get started through a step-by-step approach accompanied with simple examples.
- ISBN: 9781782160311, 9781782160311
- Date of issue: 2013-08-21
- Format: Ebook
- Item ID: e_3bq5
- Publisher: Packt Publishing