Add expression mode for Haskell and JS
This commit is contained in:
parent
4b73ece01c
commit
d16942c0a7
5 changed files with 38 additions and 10 deletions
|
@ -1,5 +1,11 @@
|
|||
if [ "$EVAL_HARMONY" = "true" ]; then
|
||||
node --harmony -e "$1"
|
||||
if [ "$EVAL_EXPR" = "true" ]; then
|
||||
flag="-p"
|
||||
else
|
||||
node -e "$1"
|
||||
flag="-e"
|
||||
fi
|
||||
|
||||
if [ "$EVAL_HARMONY" = "true" ]; then
|
||||
node --harmony "$flag" "$1"
|
||||
else
|
||||
node "$flag" "$1"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue