日本語

Auto generate DSL on Scala

You can create APIs that resemble DSLs in Scala using method chains, implicits, and other syntactic sugar. For example, ScalaTest provides an API which is similar to natural languages and ScalikeJDBC leverages method chains to provide SQL-like syntax for its API. However, it is often very difficult to provide such sophisticated APIs.

Therefore, we developed a tool which automatically generates an API from your desired DSL grammars. This tool allows you to easily generate APIs which look like natural languages, or APIs similar to other existing DSLs in Scala. Internally, this tool takes advantage of Scala’s type checking system and implements a LALR parser. This session will introduce the tool itself and discuss how to implement it.

Session length
40 minutes
Language of the presentation
Japanese
Target audience
Intermediate: Requires a basic knowledge of the area
Who is your session intended to
People who want to make a Scala library with a good API
People who are interested in the application of Scala type systems
People who are interested in the phrase, "Type-checking time syntactic analysis"
Speaker
phenan (The University of Tokyo)

voted / votable

Candidate sessions