Reputation: 346
How can I use Pharo VM for my own programming language realization ? Where can I found tutorial on Slang and/or making my own .image from scratch ?
Upvotes: 1
Views: 96
Reputation: 801
You can make your own language using things like Helvetia. https://github.com/UMMISCO/Helvetia
For CLI support, there are command line handlers that can deliver something like the Scale DSL https://github.com/guillep/Scale
Moose provides support for doing something like https://ummisco.github.io/kendrick/
Now, I understand you may be looking for Slang, which is actually the code generator bit of VMMaker. This is available as a single package at http://www.smalltalkhub.com/#!/~PavelKrivanek/CCodeGenerator
I think that you can get this adjusted to use whatever compiler.
Upvotes: 1
Reputation: 346
Some intros on lowlevel compiling in SmallTalk:
http://www.mirandabanda.org/cogblog/2011/03/01/build-me-a-jit-as-fast-as-you-can/
Upvotes: 1
Reputation: 14858
As a matter of fact, in Smalltalk you don't build a .image
from scratch. What you do instead is to build your own programming language inside an existent Smalltalk dialect until you get something that is able to run independently. One example of this is Newspeak. Another is Cuis. Also, Pharo itself took that pathway when it forked from Squeak.
Of course, all these are major projects. If your motivation is to provide your own syntax and programming rules (e.g., type declaration, etc.), then you don't need to build a full .image
from scratch but to build your language (Compiler
and UI) inside Pharo, which in any case would be the way to go.
Upvotes: 1