Re: [racket-users] I can translate a word but how can I translate a setence with drrakket

2017-06-25 Thread Matthias Felleisen
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/

RE: [racket-users] I can translate a word but how can I translate a setence with drrakket

2017-06-25 Thread Jos Koot
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