Have either of you looked at PetitParser or OMeta? They might make managing your grammar and semantics a bit cleaner.<br><br><div class="gmail_quote">On Mon, Jul 11, 2011 at 7:30 PM, Adam <span dir="ltr"><<a href="mailto:adam.spitz@gmail.com">adam.spitz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<u></u>










<div style="background-color:#fff">
<span> </span>


<div>
  <div>


    <div>
      
      
      <p>Awesome!<br>
<br>
Do you have any interest in integrating this with Avocado? (<a href="http://avocadojs.com" target="_blank">http://avocadojs.com</a> - it's a Self-like environment I've been building for JavaScript.)<br>
<br>
I've been sticking with standard JavaScript syntax so far, but I think it'd be really cool (and maybe make me feel a bit less homesick ;) if I could write real Self code inside Self-like outliners running on top of my web browser's Self-inspired JavaScript VM.<br>

<br>
Adam</p><div><div></div><div class="h5"><br>
<br>
--- In <a href="mailto:self-interest%40yahoogroups.com" target="_blank">self-interest@yahoogroups.com</a>, David Goehrig <dave@...> wrote:<br>
><br>
> As some of you may know, I've been working on implementing Self in<br>
> Javascript (in addition to some build system improvements), and I'd like to<br>
> let the list know about the progress.  Today I put together a little demo of<br>
> what is currently working and a bit of a post on what is not:<br>
> <br>
> <a href="http://blog.dloh.org/Self-in-Javascript-Video" target="_blank">http://blog.dloh.org/Self-in-Javascript-Video</a><br>
> <br>
> The video is 720p so don't bother trying to watch it on your iPhone :)<br>
> <br>
> It is not a fully functional system yet, it is about 40% of the way there,<br>
> and the compiler will require a rewrite before it is ready for actual use.<br>
>  But the bones are there and for certain simple statements which invoke<br>
> built-in functions you can make little things happen.  The way this thing<br>
> works currently is it parses a string into a set of tokens, and then<br>
> translates them into a rather LISPish variant of standard JavaScript.  If<br>
> you look here:<br>
> <br>
> <a href="https://github.com/cthulhuology/Self.js" target="_blank">https://github.com/cthulhuology/Self.js</a><br>
> <br>
> you will see that I'm seriously abusing some little used features of the<br>
> JavaScript language to make it do some rather interesting backflips. In<br>
> effect, the entire program consists of lists of strings passed to a self<br>
> evaluating function object.  This makes it possible to generate a rather<br>
> simple transformation engine which rewrites the self code into a highly<br>
> regular form of Javascript that is devoid of the syntatic complexity of its<br>
> language family.<br>
> <br>
> The current code base is ~206 lines of JavaScript, and once you work through<br>
> how it works in your head, it is surprisingly legible.<br>
> <br>
> If anyone would like to comment, contribute, or recommend some better parser<br>
> techniques for the full self syntax, I'd appreciate the guidance.  Mostly I<br>
> am working through a set of test cases I extracted by looking at my own Self<br>
> objects and bits of the system.  I'm not too concerned about being 100%<br>
> compliant at the moment, but simply want to trend towards completeness.<br>
> <br>
> Dave Goehrig<br>
> <br>
> -- <br>
> -=-=-=-=-=-=-=-=-=-=- <a href="http://blog.dloh.org/" target="_blank">http://blog.dloh.org/</a><br>
><br>
<br>
</div></div><p></p>

    </div>
     

    
    <div style="color:#fff;min-height:0"></div>


</div>



  






</blockquote></div><br><br clear="all"><br>-- <br>Casey Ransberger<br>