Skip to content

Instantly share code, notes, and snippets.

@yogacp
Last active June 28, 2018 09:06
Show Gist options
  • Save yogacp/6008e40f61e295adc8d0582f4439237d to your computer and use it in GitHub Desktop.
Save yogacp/6008e40f61e295adc8d0582f4439237d to your computer and use it in GitHub Desktop.
final result of simple DSL example
val movieData = movies {
title = "Avengers: Infinity War"
genres = "Action, Adventure, Fantasy, Sci-Fi"
release_date = "27 April 2018 (USA)"
detailMovies {
country = "USA"
language = "English"
directed_by = " Anthony Russo, Joe Russo"
produced_by = "Kevin Feige"
overview = "As the Avengers and their allies have continued to protect the world from threats too large for any one hero to handle, a new danger has emerged from the cosmic shadows: Thanos. A despot of intergalactic infamy, his goal is to collect all six Infinity Stones, artifacts of unimaginable power, and use them to inflict his twisted will on all of reality. Everything the Avengers have fought for has led up to this moment - the fate of Earth and existence itself has never been more uncertain."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment