3.0 Examples, Where are they located?

Hi,

In the new 3.0 generator tutorial it states examples are located in

$HOME/MPSSamples3.0/samples/sampleXML

I'm on a mac, and I don't see any examples?  Where do I get this directory of examples?  The install for mac was basically a drag and drop into Applications, and the dmg had no other assets inside.

thanks,
j
14 comments
nevermind, it magically appeared, so I guess MPS created it.
0
By the source code, it seems that MPS installs samples when application is launched.
0
This step is known as 'parsing' or a combination of 'lexing' and 'parsing'. This is what all compilers as first step do. To write your own parser is often surprisingly simple as a DSL should be focused and simple. In your case it should be enough to read the file line by line and create an AST node for every line

ileatherworld    [url=http://www.ileatherworld.com/]ileatherworld bomber jackethttp://forum.jetbrains.com/url
thejacketsmall    [url=http://www.thejacketsmall.com/]thejacketsmall bomber jacketshttp://forum.jetbrains.com/url
iseeq    [url=http://www.iseeq.com/]http://www.iseeq.com http://forum.jetbrains.com/url
0
It would be nice to see some examples for IDEA integration, particularly referencing java project classes from DSL and using build language to write build 'scripts' for IDEA projects. Still dreaming of better ant/gradle replacement.
0
I did not get any example (also on the mac). Should I re-install MPS to get them?
0
Just start up MPS, and the examples are then created.
0
not in my case... I will try to navigate inside the Mps 3.0.app dir and look for them
0
It created them in directly in my home directory in a folder called MPSSamples.3.0
0
No MPSSamples.3.0 in my homedir after first startup too :( (build 129.189)
But then I closed the (converted) open project and choose Open Sample Project from Quick Start section. That worked. :)
0
Where is Constants language example? It was stated somewhere — i believe in Fast Track — that it is distributed with other examples.
0
Wow! I would never think it's there — it does not associates with
extensions to Java in my mind anyhow :)
--
Андрей Забавников
0

Please sign in to leave a comment.