{"action":"created","comment":{"url":"https://api.github.com/repos/directembedding/directembedding/pulls/comments/27562574","id":27562574,"diff_hunk":"@@ -10,11 +12,22 @@ trait MacroModule {\n }\n \n trait DirectEmbeddingModule extends MacroModule {\n-  import c.universe._\n-  def lift(tree: Tree): Tree\n+  val dslName: String\n+  val dslEndpointMethod: String\n+  val virtualizationConfig: String\n+  val liftMethodName: String\n+  val logLevel: Int\n }\n \n-trait DirectEmbeddingUtils {\n-  def debugLevel: Int\n-  def log(s: => String, level: Int = 0) = if (debugLevel < level) println(s)\n+trait DirectEmbeddingUtils extends MacroModule with TransformationUtils {\n+  import c.universe._\n+\n+  def logTree(t: Tree, level: Int = 0) = {\n+    log(s\"$t\", level)\n+    log(showRaw(t, printTypes = true), level + 1)\n+  }\n+  def logIndented[T](e: T, indent: Int, level: Int = 0) = if (debugLevel > level) {","path":"directembedding/src/main/scala/ch/epfl/directembedding/Utils.scala","position":31,"original_position":31,"commit_id":"c228d2c5ab4de256aadf47587ab38dd4102ec450","original_commit_id":"c228d2c5ab4de256aadf47587ab38dd4102ec450","user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"body":"Added this to replace `self.log` in `ReifyAsEmbedding`, better? @vjovanov ","created_at":"2015-04-01T11:56:22Z","updated_at":"2015-04-01T11:56:22Z","html_url":"https://github.com/directembedding/directembedding/pull/23#discussion_r27562574","pull_request_url":"https://api.github.com/repos/directembedding/directembedding/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/directembedding/directembedding/pulls/comments/27562574"},"html":{"href":"https://github.com/directembedding/directembedding/pull/23#discussion_r27562574"},"pull_request":{"href":"https://api.github.com/repos/directembedding/directembedding/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/directembedding/directembedding/pulls/23","id":32335912,"html_url":"https://github.com/directembedding/directembedding/pull/23","diff_url":"https://github.com/directembedding/directembedding/pull/23.diff","patch_url":"https://github.com/directembedding/directembedding/pull/23.patch","issue_url":"https://api.github.com/repos/directembedding/directembedding/issues/23","number":23,"state":"open","locked":false,"title":"Add configurable language virtualization","user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"body":"I moved the `lift` dsl into a separate `example` package, which uses the new configuration methods from `DETransformer`, inspired by the `YYTransformer` in yinyang.","created_at":"2015-03-31T15:47:57Z","updated_at":"2015-04-01T11:56:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6a7e00c01e967be472486caed7e73981bcfa46d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/directembedding/directembedding/pulls/23/commits","review_comments_url":"https://api.github.com/repos/directembedding/directembedding/pulls/23/comments","review_comment_url":"https://api.github.com/repos/directembedding/directembedding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/directembedding/directembedding/issues/23/comments","statuses_url":"https://api.github.com/repos/directembedding/directembedding/statuses/c228d2c5ab4de256aadf47587ab38dd4102ec450","head":{"label":"olafurpg:issue-8","ref":"issue-8","sha":"c228d2c5ab4de256aadf47587ab38dd4102ec450","user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"repo":{"id":30874052,"name":"directembedding","full_name":"olafurpg/directembedding","owner":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olafurpg/directembedding","description":"A library for macro based direct embedding of DSLs","fork":true,"url":"https://api.github.com/repos/olafurpg/directembedding","forks_url":"https://api.github.com/repos/olafurpg/directembedding/forks","keys_url":"https://api.github.com/repos/olafurpg/directembedding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olafurpg/directembedding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olafurpg/directembedding/teams","hooks_url":"https://api.github.com/repos/olafurpg/directembedding/hooks","issue_events_url":"https://api.github.com/repos/olafurpg/directembedding/issues/events{/number}","events_url":"https://api.github.com/repos/olafurpg/directembedding/events","assignees_url":"https://api.github.com/repos/olafurpg/directembedding/assignees{/user}","branches_url":"https://api.github.com/repos/olafurpg/directembedding/branches{/branch}","tags_url":"https://api.github.com/repos/olafurpg/directembedding/tags","blobs_url":"https://api.github.com/repos/olafurpg/directembedding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olafurpg/directembedding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olafurpg/directembedding/git/refs{/sha}","trees_url":"https://api.github.com/repos/olafurpg/directembedding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olafurpg/directembedding/statuses/{sha}","languages_url":"https://api.github.com/repos/olafurpg/directembedding/languages","stargazers_url":"https://api.github.com/repos/olafurpg/directembedding/stargazers","contributors_url":"https://api.github.com/repos/olafurpg/directembedding/contributors","subscribers_url":"https://api.github.com/repos/olafurpg/directembedding/subscribers","subscription_url":"https://api.github.com/repos/olafurpg/directembedding/subscription","commits_url":"https://api.github.com/repos/olafurpg/directembedding/commits{/sha}","git_commits_url":"https://api.github.com/repos/olafurpg/directembedding/git/commits{/sha}","comments_url":"https://api.github.com/repos/olafurpg/directembedding/comments{/number}","issue_comment_url":"https://api.github.com/repos/olafurpg/directembedding/issues/comments{/number}","contents_url":"https://api.github.com/repos/olafurpg/directembedding/contents/{+path}","compare_url":"https://api.github.com/repos/olafurpg/directembedding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olafurpg/directembedding/merges","archive_url":"https://api.github.com/repos/olafurpg/directembedding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olafurpg/directembedding/downloads","issues_url":"https://api.github.com/repos/olafurpg/directembedding/issues{/number}","pulls_url":"https://api.github.com/repos/olafurpg/directembedding/pulls{/number}","milestones_url":"https://api.github.com/repos/olafurpg/directembedding/milestones{/number}","notifications_url":"https://api.github.com/repos/olafurpg/directembedding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olafurpg/directembedding/labels{/name}","releases_url":"https://api.github.com/repos/olafurpg/directembedding/releases{/id}","created_at":"2015-02-16T15:23:27Z","updated_at":"2015-04-01T10:12:04Z","pushed_at":"2015-04-01T11:55:07Z","git_url":"git://github.com/olafurpg/directembedding.git","ssh_url":"git@github.com:olafurpg/directembedding.git","clone_url":"https://github.com/olafurpg/directembedding.git","svn_url":"https://github.com/olafurpg/directembedding","homepage":null,"size":259,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"directembedding:master","ref":"master","sha":"82566118d0b5c045e2079954b67d0d32555626f7","user":{"login":"directembedding","id":9320661,"avatar_url":"https://avatars.githubusercontent.com/u/9320661?v=3","gravatar_id":"","url":"https://api.github.com/users/directembedding","html_url":"https://github.com/directembedding","followers_url":"https://api.github.com/users/directembedding/followers","following_url":"https://api.github.com/users/directembedding/following{/other_user}","gists_url":"https://api.github.com/users/directembedding/gists{/gist_id}","starred_url":"https://api.github.com/users/directembedding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/directembedding/subscriptions","organizations_url":"https://api.github.com/users/directembedding/orgs","repos_url":"https://api.github.com/users/directembedding/repos","events_url":"https://api.github.com/users/directembedding/events{/privacy}","received_events_url":"https://api.github.com/users/directembedding/received_events","type":"Organization","site_admin":false},"repo":{"id":25468693,"name":"directembedding","full_name":"directembedding/directembedding","owner":{"login":"directembedding","id":9320661,"avatar_url":"https://avatars.githubusercontent.com/u/9320661?v=3","gravatar_id":"","url":"https://api.github.com/users/directembedding","html_url":"https://github.com/directembedding","followers_url":"https://api.github.com/users/directembedding/followers","following_url":"https://api.github.com/users/directembedding/following{/other_user}","gists_url":"https://api.github.com/users/directembedding/gists{/gist_id}","starred_url":"https://api.github.com/users/directembedding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/directembedding/subscriptions","organizations_url":"https://api.github.com/users/directembedding/orgs","repos_url":"https://api.github.com/users/directembedding/repos","events_url":"https://api.github.com/users/directembedding/events{/privacy}","received_events_url":"https://api.github.com/users/directembedding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/directembedding/directembedding","description":"A library for macro based direct embedding of DSLs","fork":false,"url":"https://api.github.com/repos/directembedding/directembedding","forks_url":"https://api.github.com/repos/directembedding/directembedding/forks","keys_url":"https://api.github.com/repos/directembedding/directembedding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/directembedding/directembedding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/directembedding/directembedding/teams","hooks_url":"https://api.github.com/repos/directembedding/directembedding/hooks","issue_events_url":"https://api.github.com/repos/directembedding/directembedding/issues/events{/number}","events_url":"https://api.github.com/repos/directembedding/directembedding/events","assignees_url":"https://api.github.com/repos/directembedding/directembedding/assignees{/user}","branches_url":"https://api.github.com/repos/directembedding/directembedding/branches{/branch}","tags_url":"https://api.github.com/repos/directembedding/directembedding/tags","blobs_url":"https://api.github.com/repos/directembedding/directembedding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/directembedding/directembedding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/directembedding/directembedding/git/refs{/sha}","trees_url":"https://api.github.com/repos/directembedding/directembedding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/directembedding/directembedding/statuses/{sha}","languages_url":"https://api.github.com/repos/directembedding/directembedding/languages","stargazers_url":"https://api.github.com/repos/directembedding/directembedding/stargazers","contributors_url":"https://api.github.com/repos/directembedding/directembedding/contributors","subscribers_url":"https://api.github.com/repos/directembedding/directembedding/subscribers","subscription_url":"https://api.github.com/repos/directembedding/directembedding/subscription","commits_url":"https://api.github.com/repos/directembedding/directembedding/commits{/sha}","git_commits_url":"https://api.github.com/repos/directembedding/directembedding/git/commits{/sha}","comments_url":"https://api.github.com/repos/directembedding/directembedding/comments{/number}","issue_comment_url":"https://api.github.com/repos/directembedding/directembedding/issues/comments{/number}","contents_url":"https://api.github.com/repos/directembedding/directembedding/contents/{+path}","compare_url":"https://api.github.com/repos/directembedding/directembedding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/directembedding/directembedding/merges","archive_url":"https://api.github.com/repos/directembedding/directembedding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/directembedding/directembedding/downloads","issues_url":"https://api.github.com/repos/directembedding/directembedding/issues{/number}","pulls_url":"https://api.github.com/repos/directembedding/directembedding/pulls{/number}","milestones_url":"https://api.github.com/repos/directembedding/directembedding/milestones{/number}","notifications_url":"https://api.github.com/repos/directembedding/directembedding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/directembedding/directembedding/labels{/name}","releases_url":"https://api.github.com/repos/directembedding/directembedding/releases{/id}","created_at":"2014-10-20T13:53:30Z","updated_at":"2015-03-25T09:23:23Z","pushed_at":"2015-04-01T11:55:08Z","git_url":"git://github.com/directembedding/directembedding.git","ssh_url":"git@github.com:directembedding/directembedding.git","clone_url":"https://github.com/directembedding/directembedding.git","svn_url":"https://github.com/directembedding/directembedding","homepage":null,"size":285,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":6,"forks":4,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/directembedding/directembedding/pulls/23"},"html":{"href":"https://github.com/directembedding/directembedding/pull/23"},"issue":{"href":"https://api.github.com/repos/directembedding/directembedding/issues/23"},"comments":{"href":"https://api.github.com/repos/directembedding/directembedding/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/directembedding/directembedding/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/directembedding/directembedding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/directembedding/directembedding/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/directembedding/directembedding/statuses/c228d2c5ab4de256aadf47587ab38dd4102ec450"}}}}