<div dir="ltr">Thanks Matthias, I'll give this a shot.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 4, 2014 at 10:49 PM, Matthias Felleisen <span dir="ltr"><<a href="mailto:matthias@ccs.neu.edu" target="_blank">matthias@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>You will need to implement a class that satisfies the interface. The methods are specified here: </div>
<div><br></div><div> <a href="http://docs.racket-lang.org/tools/drracket_language.html?q=sgn#%28def._%28%28lib._drracket%2Ftool-lib..rkt%29._drracket~3alanguage~3alanguage~3c~25~3e%29%29" target="_blank">http://docs.racket-lang.org/tools/drracket_language.html?q=sgn#%28def._%28%28lib._drracket%2Ftool-lib..rkt%29._drracket~3alanguage~3alanguage~3c~25~3e%29%29</a></div>
<div><br></div><div>(see all the indented specs). For some of them, it's probably okay to give no-action implementations. </div><div><br></div><div>[[ I am not the author of any of these docs; I am working through them with you, on the list. ]]</div>
<div><div class="h5"><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div><div>On Jun 4, 2014, at 9:47 PM, Daniel Brady wrote:</div><br><blockquote type="cite">
<div dir="ltr">After re-reading that section more closely, I realize that I understand what it's saying; the part that I'm unsure about is how to actually go about implementing the <font face="courier new, monospace">drracket:language:language<%></font><font face="arial, helvetica, sans-serif"> interface. It would be nice if a small example was shown (like the examples shown when implementing a reader language). I am also unsure of where this implementation should go in my language directory: should it be in its own file? in the same file as the language module? The documentation suggests that I might be interested in the predefined simple implementation of the interface, </font><font face="courier new, monospace">drracket:language:simple-module-based-language%</font><font face="arial, helvetica, sans-serif">, and I think that is what I am looking for, but again there is the question of where I should be using this in my language implementation.</font></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 4, 2014 at 9:37 PM, Matthias Felleisen <span dir="ltr"><<a href="mailto:matthias@ccs.neu.edu" target="_blank">matthias@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div><div><div>On Jun 4, 2014, at 9:26 PM, Daniel Brady wrote:</div>
<br></div></div><blockquote type="cite"><div><div><div dir="ltr">Hi all,<div>I've decided to undertake the project of creating a small language, and then model the HtDP teaching languages by creating a hierarchical series of versions of that language. My current approach is to just make each of them a #lang language, but grouped together in a collection, and that's working out fine. But I would like to see if I can do it in a similar way to the HtDP languages, such that the user chooses the language from a group in the Choose Language menu, and doesn't use #lang syntax.</div>
<div><br></div><div>(I'm already asking about how to add a group of languages to that menu in a different thread.)</div><div><br></div><div>So I guess the question boils down to: <b>How can I take a group of #lang languages and convert them to the teaching-language 'style', if you will?</b></div>
<div>~Daniel.</div><div>
<div><br></div>-- <br><div dir="ltr"><i><font face="garamond, serif">SEE YOU SPACE COWBOY...</font></i></div>
</div></div></div></div>
____________________<br> Racket Users list:<br> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br></blockquote></div><br><div><br></div><div>So you read </div><div><br>
</div><div> <a href="http://docs.racket-lang.org/tools/adding-languages.html?q=drracket%20language%20menu#%28part._.Adding_.Arbitrary_.Languages_to_.Dr.Racket%29" target="_blank">http://docs.racket-lang.org/tools/adding-languages.html?q=drracket%20language%20menu#%28part._.Adding_.Arbitrary_.Languages_to_.Dr.Racket%29</a></div>
<div><br></div><div>Can you explain where you get stuck and (if possible) why you're stuck there? This would help us improve the docs and we can answer your question(s). I think it is safe to conflate the two threads here. </div>
<div><br></div><div>-- Matthias</div><div><br></div><div>(p.s. I have done this language-menu thing only once, for The Little Lisper languages, but never released it.) </div></div></blockquote></div><br><br clear="all"><div>
<br></div>-- <br><div dir="ltr"><i><font face="garamond, serif">SEE YOU SPACE COWBOY...</font></i></div>
</div>
</blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><i><font face="garamond, serif">SEE YOU SPACE COWBOY...</font></i></div>
</div>