#!/bin/csh -f  
#
#  Run translator on an Esperanto sentence 
# 
# this inputs a parsed sentence, and outputs a list of morphemes
# this is a filter
# this one shows the lisp session
#

# -- !! do not modify the following line by hand.  Makefile takes care of this
set LISP_BIN=lisp


set SRC=../src
set ESP=../esp

set STR="---fred---"

# -- output of lisp session
set TMP=/usr/tmp/fred.lisp.sess


set S1=`cat - `

set S2=' (in-package :user) (setq *esp-sentence* '"'"'('"$S1"')) '
# echo "$S2"

echo "$S2" | cat - $ESP/run | ( cd $ESP ; $LISP_BIN ) | tee $TMP
echo " "
echo "result"
echo " "


cat $TMP | /bin/grep -e $STR | sed "s/$STR//"   


