You're going to implement a sample language for specifying graphical shapes. (BTW, the sample also contains additional features explained in the Building an interpreter cookbook, which you can have some fun with later.) Goal Try to avoid copy-pasting, though, since you wouldn't learn much that way. ![]() If you get stuck at any moment, feel free to open it from your home folder/MPSSamples in MPS and look at the implementation. The result of this tutorial has been bundled as a sample project with MPS distributions. We also assume you've installed MPS and you have it running in front of you. Tab - to navigate around editable elements in the editor Especially these keyboard shortcuts are key to your survival:Ĭtrl+Space - to complete an incomplete word or to turn an invalid (red) identifier into a correct (black) oneĪlt+Enter - to display a menu with handy options applicable at the current editor positionĬtrl+Up - Expand the region of selected textĬtrl+Down - Shrink the region of selected text If not, consider spending the first 30 minutes or so of your time to check it out. We'll assume you've gone through the initial parts of the Fast Track to MPS Tutorial and so are familiar with the MPS environment, understand the concept of a language and a solution and can command the MPS projectional editor. You may also watch this tutorial on-line as a screen-cast. At the end you'll know what MPS is all about and what principles it builds on. We'll avoid advanced concepts, complicated constructs and dark corners in order to get to the finish line quickly. In the tutorial you'll start from scratch and by walking along a safe and a convenient path you'll design the core elements of a new language. Within two hours you'll get a new language and functional code that uses that language. ![]() If you're new to MPS and want to try it out quickly, this is the right tutorial for you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |