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
0 answers

Error about torch tensor precision on gpu

I tried to finetune a Bert model on GPU using PyTorch-Lightning's class Trainer using the following code: from pytorch_lightning import Trainer from models import LitAdModel, AdModel from dataloaders import train_dataloader,…
0
votes
1 answer

Is it possible to convert pasted text to node(s)

I have a user that wants to be able to copy a comma separated list of values and paste them into the editor in MPS. When pasting, the text would need to be split and each item in the list would need to be inserted as a separate node. The structure…
Matthew
  • 3
  • 3
0
votes
0 answers

JetBrains MPS editor with polymorphic list?

I'm working with MPS for the first time, and hitting some interesting problems. One has stumped me. I'm trying to create a simple DSL for music notation. I have a concept called TemporalUnit (something that occupies time), with sub-concepts of Note…
jgshurts
  • 709
  • 5
  • 7
0
votes
1 answer

nsys profile multiple processes

I'd like to experiment with MPS on Nvidia GPUs, therefore I'd like to be able to profile two process running in parallel. With the, now deprecated, nvprof, there used to be an option "--profile-all-processes". Is there a equivalent for nsys ? I…
Blaizz
  • 21
  • 1
  • 5
0
votes
1 answer

TextGen generate different programming langugages code from one concept

I have a concept (let's call it A) that is being generated into a Ruby class using TextGen. I want to have the possibility to generate the same concept into other languages e.g Python. Could someone describe how to do it or some hint?
TomKo1
  • 214
  • 2
  • 14
0
votes
1 answer

JetBrains MPS just to create highlighting?

Is it true that MPS was made not to create a programming language, but to create syntax for an already created language (highlight)?
Swimer
  • 47
  • 6
0
votes
1 answer

MPS error when rebuilding projects: "no output location for x@descriptor"

I am new to JetBrains MPS and am trying to get a feel for Jetbrains MPS applications that others have built. However, I am finding that I am unable to build most applications I download from GitHub. Mostly, I get errors when trying to rebuild the…
Paul Spencer
  • 860
  • 5
  • 14
0
votes
1 answer

Custom editor in MPS

I have an concept in Jetbrains MPS which I would like to create a custom editor for. The concept have a number of children. For each child I would like to display the child's own editor but with a "-" in front of it. I'm not completely sure I'm…
Kirilian
  • 55
  • 5
0
votes
2 answers

What approach graphical DSL workbenches use: Parsers or projections?

To my knowledge there are 2 approches that DSL editors use: 1- Parser based approach to develop textual DSLs: The user specifies a grammar and the workbench generates a parser that recognize this grammar. The parser builds an Abstract Syntax Tree…
Abdelhakim
  • 815
  • 1
  • 5
  • 19
0
votes
2 answers

How can I Import Java Code into MPS-BaseLang?

I'd like to import existing Java code (say, an Eclipse project) into MPS. The code should be parsed into MPS' BaseLang, so that I can analyze and transform it. How can I do that?
Christoph Walesch
  • 2,337
  • 2
  • 32
  • 44
0
votes
1 answer

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?
Igor Konoplyanko
  • 9,176
  • 6
  • 57
  • 100
0
votes
1 answer

Copy code from text editor and past into Jetbrains MPS

I would like to copy a json fragment from a text editor and past that into my json language. So, I have to parse that fragment and create AST from it, not a problem. But, how do I integrate that action into MPS? Paste Wrappers and Copy and Paste…
Peter
  • 4,752
  • 2
  • 20
  • 32
0
votes
1 answer

What is the Java library to popup an AzureAD browser for user login user then and output a token?

I am developing a solution that needs an token to request a rest API. I want in the beginning of my code to popup a window to user and receive an answer with a token. I am developing an intention at JetBrains MPS that demands permission from the…
0
votes
1 answer

Is there a way to store a sequence of bytes/binary data in an MPS concept instance?

MPS has the possibility of storing Java strings in concept properties. Is there a builtin possibility to store an equivalent of a byte[] into a concept property?
Laurent LA RIZZA
  • 2,905
  • 1
  • 23
  • 41
0
votes
1 answer

How to add a specific generation phase that would do Model-To-MS Word?

Assume that I have developed a set of behaviours in MPS that allow me to convert an instance of a WordDocumentconcept (and children), which describes a Word processor document, into a MS Word document using POI and that I have been able to implement…
Laurent LA RIZZA
  • 2,905
  • 1
  • 23
  • 41