I think you want this:
#lang racket
(define *lex*
'((cat gato katze)
(dog perro hund)
(eats come frisst)
(jumps salte springt)
(the el die)))
;; I also took the liberty of cleaning up your original code,
;; using full Racket because it is what your teacher/
Surely this is homework.
I am not giving you all detauils, just some hints.
First of all: Look in HtDP.
Your translator works for single words.
Let translate-sentence be the procedure for translating a list of words.
Following HtDP it can look like:
(define (translate-sentence sentence lexicon sp
2 matches
Mail list logo