Title Statements
- Full title :Clojure for Domain-specific Languages.
Summary
In Detail Clojure is a very new and rapidly growing language that runs on top of the JVM. The language being hosted on the Java platform allows for Clojure applications to use existing Java components. Although there are objects in Clojure, the language is not object oriented. "Clojure for Domain-specific Languages" is an example-oriented guide to building custom languages. Many of the core components of Clojure are covered to help you understand your options when making a domain-specific language. By the end of this book, you should be able to make an internal DSL. Starting with a comparison of existing DSLs, this book will move on to guide you through general programming, Clojure editing, and project management. The chapters after that are code oriented. "Clojure for Domain-specific Languages" tries to expose you to as much Clojure code as possible. Many of the examples are executed in a Read-Evaluate-Print-Loop environment, so the reader can also follow along on their own machine. This book uses Leiningen, but no prior knowledge of it is required. "Clojure for Domain-Specific Languages" aims to make you familiar with the Clojure language and help you learn the tools to make your own language. Approach An example-oriented approach to develop custom domain-specific languages. Who this book is for If you've already developed a few Clojure applications and wish to expand your knowledge on Clojure or domain-specific languages in general, then this book is for you. If you're an absolute Clojure beginner, then you may only find the detailed examples of the core Clojure components of value. If you've developed DSLs in other languages, this Lisp and Java-based book might surprise you with the power of Clojure
Read More ↓Edition Statements
- Publication Date:2013.
Publication Statements
- Publisher(s):Packt Publishing
- Language:eng
- Publication Date:2013.
The Physical Object
- Description:1 online resource
Edition Identifiers
- ISBN:9781782166511, 1782166513
- oclc:ocn968125402
- LC Classification:QA76.73
- Dewey Decimal:005.133
Table of Contents
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: An Overview of Domain-Specific Languages with Clojure; Domain-specific languages (DSL); Limited scope; Syntax; Using a DSL; Popular DSLs; A contract between language and domain; The language of trust; Internal versus External DSLs; External DSLs; Internal DSL; Clojure libraries; Characteristics of a Clojure library; The current state of Clojure libraries; Database domains; HTML domain; Formative; Hiccup; Mustache; Clostache; ECMA/JavaScript domain; ClojureScript.
Comparing ClojureScript and JavaScriptAudio domain; Music-as-data; Overtone; Image domains; Summary; Chapter 2: Design Concepts with Clojure; Every function is a little program; A pure function; Floor to roof development; Each function only does one thing; Patterns for success; DRY; KISS; YAGNI; Writing Clojure; Spacing and alignment; Syntax; Name conventions; Collection types; Summary; Chapter 3: Clojure Editing and Project Creation; The origin of Emacs and its usage; Installing and setting up Emacs24; Setting up Emacs; Creating and editing CLJ files in Emacs.
Running a Clojure REPL inside EmacsThe…
Rate & Review