Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JEquation.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3
4
5#
6# \author mdejong
7#
8# ------------------------------------------------------------------------------------------
9#
10# Utility script to test JEquation.
11#
12# ------------------------------------------------------------------------------------------
13
14
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
17 exit
18fi
19
20
21source $JPP_DIR/setenv.sh $JPP_DIR
22
23
24set_variable DEBUG 2
25set_variable WORKDIR ${TMPDIR:-/tmp}/
26
27if do_usage $*; then
28 usage "$script [working directory]"
29fi
30
31case $# in
32 1) set_variable WORKDIR $1;;
33esac
34
35
36set_variable INPUT_FILE $WORKDIR/equation.txt
37
38cat > $INPUT_FILE << EOF
39#aap.noot.mies=123;
40 aap . noot . mies = { 123.123} ;
41#aap.noot.mies=;
42#aap.noot.;mies=1010101;
43EOF
44
45echo "\ninput:\n"
46cat $INPUT_FILE
47
48echo "\noutput:\n"
49$JPP_DIR/examples/JLang/JEquation -f $INPUT_FILE
50
51