/* OK, so I am trying some of the examples in the slides http://www.cs.ucla.edu/~awarth/ometa/dls07-slides.pdf */ /* Lets try this: put the cursor on the next line, then do 'print it' */ 2 + 2 /* You can have C style comments, or just write something anywhere. */ /* Strings, JavaScript syntax */ "abc".length /* http://lambda-the-ultimate.org/node/2477#comment-38367 says: (There's also a Smalltalk in there, and you can use both languages in a Squeak-style workspace user interface.) Now that's what I'd like to try, but no luck ;-/ */ "abc" size. /* No luck with brackets for message sends */ [2 negated] [2 negated]; /* this works, just a string, I guess you use double quotes on the 'Smalltalk' side? */ ["abc"] /* A simple message send? */ ["abc" at: 2] /* How about some grammar? I get parse errors when trying to evaluate all or part of it. */ meta E { dig ::= '0' | '1' | '2'; num ::= +; }