SLinkOperations import
jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations
Am not able to import the above language. how do i do it?
Am not able to import the above language. how do i do it?
Please sign in to leave a comment.
http://forum.jetbrains.com/thread/Meta-Programming-System-943
I am still dealing with the above problem. From samples, its seems that it is easy to get a node's value in auto completion menu through reference(as in calculator example). But is there any way to generate a DSL's node from the same DSL's script? Like, say when i add a movie i give all its attributes(name,actors,year, etc.). I should be able to generate respective nodes(commands - 'actor <actor name>' for example) in a seperate script, when i add them in the database through add command. So that i could use the generated list as a reference in auto-completion.
Thanks.
What do you mean with DSL script?
I have no experiences with persistence loading models but if you want to add advanced auto completion entries node substitute actions should help you. But I can't see the relation to your initial question!?
Sample Code:
Say i insert a new Question to a question Bank. The code in newLanguage will be like this
create question
Question : qq111
type : t111
Answer : a111
Subject : s111
Difficulty : 111
These Questions are inserted in a Question Bank which is an XML file. I can retrieve all the subjects from the XML file.
Now, when i have to access the available list, say
VIEW QUESTIONS ON : <no subject>
I must be able to get the list of subjects in the auto-completion at the '|<no subject>' part.
For now, i have a predefined list of Subjects which i have it in a node in my solution as
Subject subjectA
Subject subjectB
Subject subjectC
<<...>>
I am able to get this list in my auto completion using references.
I need to know if there is any way for me to generate the node(the one that contains the list of subjects). So that I can insert a node wenever i insert a question. This in a way, can solve my problem.
When i tried creating a node from generator, I got errors in SLinkOperations. When i tried to import smodelAdapter java_stub, I couldnt. And moreover it says node creation in generator is Invalid. Maybe i took a wrong path.
Any suggestions on how to approach this issue would be a great help.
Sorry for making it lengthy.
Thanks.
Thanks :)