-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
72 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
org.uqbar.project.wollok/src/org/uqbar/project/wollok/adapter/mumuki/MumukiAdapter.xtend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.uqbar.project.wollok.adapter.mumuki | ||
|
||
import org.uqbar.project.wollok.wollokDsl.WProgram | ||
|
||
/** | ||
* This adapter is enabled when running a mumuki program and disables the "void" expression validation. | ||
* This is a hack and should be removed when we provide a better way of integration with external REPLs | ||
* or query runners. | ||
*/ | ||
class MumukiAdapter { | ||
boolean enabled = false | ||
|
||
def programStarted(WProgram it) { | ||
if (name == "mumuki") enabled = true | ||
} | ||
|
||
def boolean ignoreVoidValidation() { enabled } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters