Let’s make a (very rudimentary) language!
Make an interpreter for the trigram language, which looks like this:
1
12 & AB
You decide how the notation works. Two requirements, however:
You must treat the source as comprising at least two distinct pieces (aka tokens).
The result of the program must depend meaningfully on the source.
Here’s some code to get you started:
1 2 3 4
#lang racket (define str (file->string "sample.txt")) ;; ···
Hint: Muddle through this problem with whatever level of Racketeering is available to you. You can also just write out the steps in pseudocode.
The eye of the beholder.