Note that there are some explanatory texts on larger screens.

plurals
  1. POSimplest real-world language
    text
    copied!<p>I am in the process of writing interpreters for a couple of languages, in <a href="http://en.wikipedia.org/wiki/TeX" rel="nofollow">TeX</a>, which would allow TeX users to insert some code from their favorite language (if supported), and have TeX run it when producing the pdf result.</p> <p>I started by writing an interpreter for <a href="http://en.wikipedia.org/wiki/Brainfuck" rel="nofollow">Brainfuck</a>, since it is a very simple language. I thought <a href="http://en.wikipedia.org/wiki/GolfScript" rel="nofollow">GolfScript</a> would be a piece of cake, but it is richer than I had expected (mostly because it is based on the rather elaborate Ruby). I'll probably do <a href="http://en.wikipedia.org/wiki/Whitespace" rel="nofollow">Whitespace</a> for the sake of it. But none of those is actually used by people, so up to now the whole process is mostly an exercise to see how to best write interpreters in TeX.</p> <p>My question is: what real-world language should I consider? It should have the following qualities:</p> <ul> <li>simple (I'm not ready for Python),</li> <li>typically be used as one-liners (if possible),</li> <li>and have a reasonably large user base.</li> </ul> <p>I'm assuming that every language can have an interpreter (compiling only enhances the speed), please mention if you think of technical hurdles for the proposed language.</p> <p>EDIT: I am also interested in comments such as "implement Perl 2, then gradually add support for later versions" (no idea if that particular scenario is a good idea, though). I've already coded some support for regular expressions.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload