Search code examples
mps

MPS: Defining baseLanguage predicate in DSL


I want to have as part of my DSL's concept filed which will contain java predicate with following signature (string -> boolean). Which type should I import from baseLanguage to do this?


Solution

  • Looks like you need to import the closures language. FunctionType and ClosureLiteral are the concepts that you are most likely looking for.