Questions tagged [mps]

JetBrains MPS is a language workbench to create Domain Specific Languages (DSL).

With MPS you can design your own extensible DSLs and start using them right away to build end-user applications. The unique ability of the projectional editing technology is that it allows you to overcome the limits of language parsers, for building richer DSL editors with tables and diagrams. Still puzzled? Watch our video.

Useful Links:

108 questions
0
votes
1 answer

How to run an undo action on a node in Jetbrains MPS?

I am creating a plugin which will have two buttons to perform Undo and Redo operation on a particular node. I want to know if it is possible to execute the IDE undo and redo operation problematically?
Sanjit Kumar Mishra
  • 1,153
  • 13
  • 32
0
votes
2 answers

How to invoke whatever generator rule is configured for a concrete instance of an abstract concept?

I have a collection of nodes of concept Command that I'm iterating over with a $LOOP$ macro. Command is an abstract concept. I have defined templates and reduction rules for concrete subconcepts, such as Outline: template tpl_Outline input …
Tomas Mikula
  • 6,537
  • 25
  • 39
0
votes
2 answers

SWITCH macro's initValue

In a template, I want to use a $SWITCH$ macro. It requires me to specify an : What's the role of this ? What should/can I pass in as ? Note that no autocomplete suggestions appear on Ctrl+Space. Below is the…
Tomas Mikula
  • 6,537
  • 25
  • 39
0
votes
1 answer

MPS: abstract (generatorless?) language and it's implementations

I used MPS in the past in a small project (like a lab-project), so I have basic understandings of how to use MPS (though it was version 2.4 or something alike). Now I'm trying to introduce some utility software (ideally, plugin for IntelliJ) built…
Askar Kalykov
  • 2,553
  • 1
  • 22
  • 43
0
votes
2 answers

how to convert cplex *.mod file to glpk *.mod file on command line?

I want to convert cplex .mod and .dat file to glpk .mod and .dat (separate model and data files) using any open source solver, and then compile the model with different data files with preferably glpsol. As far as I know, glpsol does not provide a…
tina_rzvn
  • 21
  • 1
0
votes
1 answer

Mps set Breakpoint in Language Definition

How do you correctly debug your language creation ? In particular i want to test a scoping-constraint and look at the content of the nodes. You can set Breakpoint in the constraint-file but they are never triggerd. Same goes for print messages.
fehrlich
  • 2,497
  • 2
  • 26
  • 44
0
votes
0 answers

MPS error: can't find model: java.awt, java.io, etc

I wanted to open the mpscmindstorms project (created with MPS 1.5) in current MPS 3.2. After opening it I get a big lot of Errors: "Can't find model: java.awt" / java.io, java.lang etc. Where is the problem? In my project or in my MPS…
Achim Stuy
  • 53
  • 8
0
votes
1 answer

Is it possible to use JetBrains MPS, or part of it, inside another application as JIT Compiler/Translator?

Does JetBrains MPS provide an JIT compiler which can be used inside other applications? We have a legacy application with its on script language. Because this script language is very difficult to use to our customer, we would like to provide a new…
Ben1980
  • 186
  • 1
  • 3
  • 15
0
votes
1 answer

JetBrains MPS - Constrain ClassifierType reference to subclasses of a given type

I'm writing a DSL in MPS to define event producer/consumers, like this: on FooEventProducer then FooEventConsumer where: class FooEventProducer implements Producer {} class FooEventConsumer implements Consumer {} I have an…
Matt Roper
  • 111
  • 2
  • 8
0
votes
1 answer

MPS way of attaching additional attributes to concept's properties/references

I've a set of concepts that represent types of entities Hrrr. Sample concepts: Loop with children loopCount: IntegerProperty[1] HttpRequest with children url: StringProperty[1], hostName: StringProperty[1] Both concepts extend AbstractTestElement…
Vladimir Sitnikov
  • 1,467
  • 12
  • 31
0
votes
1 answer

JetBrains MPS-Building from source code

Has Anyone tried building MPS source code from build scripts instead running from IntelliJ IDE. I tried but I am getting a build failure with below error message "class jetbrains.sign.JetSignTask not found".Any Idea? Thanks in Advance Kunal
0
votes
1 answer

MPS Many to Many model transformation

I'm planning to migrate a tool I build some time ago to Jetbrains Mps, I'm evaluating it but have some doubts. The main one is if model transformation in Mps is only 1 model to 1 model. Or can I combine several models to generate some others. Think…
0
votes
2 answers

How to attach jar file source in JetBrains MPS while debugging a java code?

I am trying to debug my java class in Jetbrains MPS, but it is calling one jar file, hence i am not able to see the code implementation. I am having the source jar file for it, if anyone can help me with how to attach the same so that i can debug…
user2444443
0
votes
1 answer

The value of integer property of a concept is not linked or received when used through property macro in a template

I am very much new to MPS Jetbrains. And, though I followed the shapes tutorial and tried to implement something on the same lines, I am getting a weird bug. A concept named "print" has an integer property named "data". In the generator file, I…
user2730066
  • 133
  • 5
0
votes
1 answer

MPS Double values as Concect propterties

Trying to add a double property to my Concept: concept Location extends BaseConcept .... properties: longitude : double latitude : double I know that properties is looking for PrimitiveDataTypeDeclaration, but I just find there integer,…
Ghashange
  • 1,027
  • 1
  • 10
  • 20