Comment by rscho

5 years ago

Here you are:

https://code.jsoftware.com/wiki/Scripts/Scheme

http://tangentstorm.github.io/apljk/bjonas-scheme.ijs.html

However, in my understanding this code is clear but is just an exercise to use J. A real Scheme parser in J would go through the use of ;: which is a primitive defining a state machine. Given the appropriate state table, it would yield a Scheme tokenizer (with the whole thing amounting to state_table ;: string). Here be dragons, though! You can find a J parser in J (not up to date with current J) using it here:

https://www.jsoftware.com/help/dictionary/d332.htm