10 comments
Comment actions Permalink

Hi,

Great. Thanks.

Are you serious about the default settings in runMPS.bat. That "-Xmx1224m" prevented it from starting on my computer which still has only 1 GB. I changed it to 512 and MPS at least starts. Don't know how it will get around with that amount of memory when in real use, yet.

Some other things I also noticed:

  • The MPS-button in the file browser that is opened for "Open Project" doesn't open the installation directory. It doesn't do anything.

  • The quickstart tutorial referenced in MPS/docs/help/index.html does not exist

How do you compile and deploy an application from MPS without using IDEA and the plugin? MPS still tells me now and then that it cannot connect to IDEA. I somehow still miss a simple walk through from creating a simple language with editors and generators, using that language and finally creating some kind of application that I can run.

Cheers,

  Robert

0
Comment actions Permalink

Well, MPS is still lacking in a useful documentation. We only have old  How to which is obsolete in many details but basic principals are hold.

In b.504 this tutorial can be done without running IDEA and MPS plugin. Language can be defined, generated and compiled in MPS. So can the solution. You can also “run” the solution’s main class using its popup menu.

Thus, the mirror IDEA project is now optional (at least for toy projects).

Edited by: Igor Alshannikov on Mar 28, 2008 2:12 PM

0
Comment actions Permalink

Trying to go through the old how to. I get stuck at the property macro. Can't figure out how to set it to read the right value. If I figure it out I'll publish an updated version.

0
Comment actions Permalink

Hello Tracy,

To add property macro, you should press controlaltM. Then press alt+I or press on the splitter at the bottom of the editor to go to inspector. In inspector you can type your code.

0
Comment actions Permalink

Got that far and I'm stuck. See the attached image. Doesn't match up with anything in the current sample and I can't figure out how to reference myText. I would expect 'node . myText' to work but it says 'no variants for myText'.

Edited by: Tracy Snell on Apr 1, 2008 10:06 PM



Attachment(s):
Picture 6.png
0
Comment actions Permalink

Hi,

Select the template class (or just set caret in class name, which is "HelloWorld").

Then, press ctrl-shift-H to add 'root template annotation' (there is defect in current 504 build because MPS should add the 'root template annotation' automatically, upon the class creation).

Choose source - TheSimplestConcept (as shown on screenshot) .

Now you should be able to enter the code 'node.myText' in the property macro's inspector.

Then you must generate you generator (you can press shift-F9 after you finish typing the code above).

After that you can skip the rest of tutorial and generate text form your solution right away.

In the case you get generation errors, open the message view, navigate to source of error and fix it. Otherwise just enjoy the generated output in the output view.



Attachment(s):
theSimplest.PNG
0
Comment actions Permalink

Awesome! I wondered how to get that to show up.

I'll go rewrite the tutorial on my copy of confluence then if you guys want it will give it to you to put on your site.

Thanks

0
Comment actions Permalink

Great! Everyone will appreciate it! Thank you.

0
Comment actions Permalink

Got everything working but it was a copy with a lot of goofing around in it. So started fresh and took screen shots to redo the how to. This time I got stuck when I tried to create a root node in my module. It's blank. Tagged the screen shot onto the end of my work in progress. The solution has TheSimplestLanguage set in the UsedLanguages property.

0
Comment actions Permalink

I've taken a look at place where you stuck. You were unable to create a node because your concept has property is root set to false. Set it to true, and everything will work great.

0

Please sign in to leave a comment.