O'Reilly logo

Clojure for Domain-specific Languages by Kelker Ryan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. An Example Twitter DSL

This chapter is focused on building a Twitter DSL, but it starts off by covering some key concepts involved in building layers of the Clojure code on top of the Java libraries. You may already be familiar with some concepts, but you're encouraged to read the initial part of this chapter to better understand the concepts presented in this chapter.

This chapter will cover:

  • Clojure-wrapping Java objects
  • Twitter OAuth configuration
  • Twitter DSL example uses
  • Building a Twitter DSL syntax

Creating Java-based abstractions

Before moving on to making an example DSL, there are some concepts that need to be covered regarding Java interoperation. Because the Twitter DSL example will be based on an existing Java library, this section ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required