更新时间:2021-08-13 16:26:33
封面
版权信息
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Chapter 1. Implementing a DSL
Domain Specific Languages
Implementing a DSL
IDE integration
Enter Xtext
The aim of this book
Summary
Chapter 2. Creating Your First Xtext Language
A DSL for entities
The Xtext generator
The Eclipse Modeling Framework (EMF)
Improvements to the DSL
Chapter 3. The Xtend Programming Language
An introduction to Xtend
Xtend – a better Java with less "noise"
Debugging Xtend code
Chapter 4. Validation
Validation in Xtext
Quickfixes
Chapter 5. Code Generation
Introduction to code generation
Writing a code generator in Xtend
Integration with the Eclipse build mechanism
Standalone command-line compiler
Chapter 6. Customizations
Dependency injection
Google Guice in Xtext
Customizations of IDE concepts
Custom formatting
Other customizations
Chapter 7. Testing
Introduction to testing
Junit 4
The ISetup interface
Implementing tests for your DSL
Test suite
Testing the UI
Testing and modularity
Clean code
Chapter 8. An Expression Language
The Expressions DSL
The grammar for the Expressions DSL
Left recursive grammars
Forward references
Typing expressions
Writing an interpreter
Chapter 9. Type Checking
SmallJava
First validation rules
Type checking
Improving the UI
Chapter 10. Scoping
Cross-reference resolution in Xtext
Custom scoping
Global scoping
Providing a library
Dealing with super
What to put in the index?
Additional automatic features
Chapter 11. Building and Releasing
Release engineering
Introduction to Buckminster
Using the Xtext Buckminster wizard
Maintaining the examples of this book
Chapter 12. Xbase
Getting introduced with Xbase
The Expressions DSL with Xbase
The Entities DSL with Xbase
Customizations
Chapter 13. Bibliography
Index