reg-test refactor iterate: promote go u/* tests to reg-test framework

This commit is contained in:
John Kerl 2020-11-22 11:32:51 -05:00
parent a93a171c5f
commit 955d149420
228 changed files with 12441 additions and 13559 deletions

View file

@ -1,4 +1,4 @@
# Intended to be invoked by "." from reg_test/run
# Intended to be invoked by "." from reg-test/run
run_mlr cat $indir/abixy
run_mlr cat /dev/null

View file

@ -1,4 +1,4 @@
# Intended to be invoked by "." from reg_test/run
# Intended to be invoked by "." from reg-test/run
run_mlr cut -f a,x $indir/abixy
run_mlr cut --complement -f a,x $indir/abixy

View file

@ -96,7 +96,7 @@ mlr_expect_fail --from $indir/abixy put '
var b = a[2]; # cannot index localvar declared non-map
'
# This one is intended to particularly look at freeing, e.g. with './reg_test/run --valgrind'.
# This one is intended to particularly look at freeing, e.g. with './reg-test/run --valgrind'.
run_mlr --oxtab --from $indir/abixy-het put '
$* = mapdiff(
mapsum($*, {"a": "newval"}),

View file

@ -1,5 +1,5 @@
# cat reg_test/input/capture.dkvp
# cat reg-test/input/capture.dkvp
# FIELD=ABC123
# FIELD=ABC..123
# FIELD=..ABC..123..
@ -11,7 +11,7 @@ run_mlr --opprint put '$FIELD =~ "([A-Z]+)[^0-9]*([0-9]+)"; $F1="\1"; $F2="\2";
run_mlr --opprint put '$FIELD =~ "([A-Z]+)([0-9]+)"' then put '$F1="\1"; $F2="\2"; $F3="\3"' $indir/capture.dkvp
run_mlr --opprint put '$FIELD =~ "([A-Z]+)[^0-9]*([0-9]+)"' then put '$F1="\1"; $F2="\2"; $F3="\3"' $indir/capture.dkvp
# cat reg_test/input/capture-lengths.dkvp
# cat reg-test/input/capture-lengths.dkvp
# FIELD=
# FIELD=a
# FIELD=ab

View file

@ -1,4 +1,4 @@
# Intended to be invoked by "." from reg_test/run
# Intended to be invoked by "." from reg-test/run
run_mlr having-fields --at-least a,b $indir/abixy
run_mlr having-fields --at-least a,c $indir/abixy

View file

@ -1,4 +1,4 @@
# Intended to be invoked by "." from reg_test/run
# Intended to be invoked by "." from reg-test/run
run_mlr sort -f a $indir/abixy
run_mlr sort -r a $indir/abixy

View file

@ -0,0 +1,3 @@
run_mlr --idkvp --opprint cat then tac $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint cat -n then tac $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint cat -n then tac then cat -n $indir/s.dkvp $indir/t.dkvp

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,62 @@
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$j=$i+$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$j=$i+$x'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$j=$y+$x'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$j=$y+$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$j=$y+$y'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$j=$i+$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$y=$x*1e6'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$y=$x+1e6'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$y=$x+1'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$y=FILENAME'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$y=FILENUM'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$y=NF'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$y=NR'
run_mlr --idkvp --opprint put '$y=FNR' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$y=NR' $indir/s.dkvp $indir/t.dkvp
run_mlr --icsv --opprint put '$y=FNR' $indir/s.csv $indir/t.csv
run_mlr --idkvp --opprint put '$y=FNR+1' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$y=FNR+$i' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$y=FNR+3' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$y=FNR+3+$i' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$y=$i+$y' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$y=$i+$x' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$z=$x+$y' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$z=$x+$i' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$z=NR+$i' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$z=NR-$i' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$z=4-1' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$z=NR' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$z=$i' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$z=100*NR-$i' $indir/s.dkvp $indir/t.dkvp
run_mlr --idkvp --opprint put '$z=100*$i+$x' $indir/s.dkvp $indir/t.dkvp
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100*$i+$x'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100*$i/$x'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=NR/$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100/$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100//$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100//$x'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100.0//$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100.0//$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100.0/$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100.0'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100.4'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=1.2'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100.0/$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=100.0//$i'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=0x7fffffffffffffff + 0x7fffffffffffffff'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=0x7fffffffffffffff .+ 0x7fffffffffffffff'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=0x7fffffffffffffff * 0x7fffffffffffffff'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z=0x7fffffffffffffff .* 0x7fffffffffffffff'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z= (~ $i) + 1'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z= $i == 2'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z= $i != 2'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z= $i > 2'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z= $i >= 2'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z= $i < 2'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z= $i >= 2'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z = $i < 5 ? "low" : "high"'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z = $i ** 3'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$z = $x ** 0.5'

View file

@ -0,0 +1 @@
run_mlr --from $indir/s.dkvp --idkvp --opprint put ''

View file

@ -0,0 +1,92 @@
# ----------------------------------------------------------------
run_mlr --json --from $indir/for-multi.json put -q '
@data = $*;
for (k in @*) {
print "k: ".k
}
'
run_mlr --json --from $indir/for-multi.json put -q '
@data = $*;
for (k,v in @*) {
print
"k: ".k." ".
"v:".v;
}
'
run_mlr --json --from $indir/for-multi.json put -q '
@data = $*;
for (k,v in @data) {
print
"k: ".k." ".
"v:".v;
}
'
mlr_expect_fail --json --from $indir/for-multi.json put -q '
@data = $*;
for (k,v in @data["a"]) {
print
"k: ".k." ".
"v:".v;
}
'
run_mlr --json --from $indir/for-multi.json put -q '
@data = $*;
for ((k1,k2),v in @*) {
print
"k1: ".k1." ".
"k2: ".k2." ".
"v:".v;
}
'
run_mlr --json --from $indir/for-multi.json put -q '
@data = $*;
for ((k1,k2),v in @data) {
print
"k1: ".k1." ".
"k2: ".k2." ".
"v:".v;
}
'
run_mlr --json --from $indir/for-multi.json put -q '
@data = $*;
for ((k1,k2,k3),v in @*) {
print
"k1: ".k1." ".
"k2: ".k2." ".
"k3: ".k3." ".
"v:".v;
}
'
run_mlr --json --from $indir/for-multi.json put -q '
@data = $*;
for ((k1,k2,k3),v in @*) {
print
"k1: ".k1." ".
"k2: ".k2." ".
"k3: ".k3." ".
"v:".v;
if (v == 5) {
break
}
}
'
mlr_expect_fail --json --from $indir/for-multi.json put -q '
@data = $*;
for ((k1,k2,k3),v in @data) {
print
"k1: ".k1." ".
"k2: ".k2." ".
"k3: ".k3." ".
"v:".v;
}
'

View file

@ -0,0 +1,8 @@
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$x=1; $y=2'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '$x=1; $y=2;'
run_mlr --from $indir/s.dkvp --idkvp --opprint put '; $x=1'
run_mlr --from $indir/s.dkvp --idkvp --opprint put ';;;;;'
run_mlr --from $indir/s.dkvp --idkvp --opprint put 'begin{} $x=1; end{}'
run_mlr --from $indir/s.dkvp --idkvp --opprint put 'begin{}; $x=1; end{}'
run_mlr --from $indir/s.dkvp --idkvp --opprint put 'begin{} $x=1;;; end{}'
run_mlr --from $indir/s.dkvp --idkvp --opprint put ';;;begin{} ;;; end{};;'

View file

@ -0,0 +1,46 @@
# ----------------------------------------------------------------
run_mlr -n put 'end { print joink({}, ",") }'
run_mlr -n put 'end { print joinv({}, ",") }'
run_mlr -n put 'end { print joinkv({}, "=", ",") }'
run_mlr -n put 'end { print joink([], ",") }'
run_mlr -n put 'end { print joinv([], ",") }'
run_mlr -n put 'end { print joinkv([], "=", ",") }'
run_mlr -n put 'end {print joink([1,2,3], ",")}'
run_mlr -n put 'end {print joink({"a":3,"b":4,"c":5}, ",")}'
run_mlr -n put 'end {print joinv([3,4,5], ",")}'
run_mlr -n put 'end {print joinv({"a":3,"b":4,"c":5}, ",")}'
run_mlr -n put 'end {print joinkv([3,4,5], "=", ",")}'
run_mlr -n put 'end {print joinkv({"a":3,"b":4,"c":5}, "=", ",")}'
run_mlr -n put 'end {print splitkv("a=3,b=4,c=5", "=", ",")}'
run_mlr -n put 'end {print splitkvx("a=3,b=4,c=5", "=", ",")}'
run_mlr -n put 'end {print splitnv("a=3,b=4,c=5", "=", ",")}'
run_mlr -n put 'end {print splitnvx("a=3,b=4,c=5", "=", ",")}'
run_mlr -n put 'end {print splitkv("a,b,c", "=", ",")}'
run_mlr -n put 'end {print splitkvx("a,b,c", "=", ",")}'
run_mlr -n put 'end {print splitnv("a,b,c", "=", ",")}'
run_mlr -n put 'end {print splitnvx("a,b,c", "=", ",")}'
run_mlr -n put 'end {print splitak("a=3,b=4,c=5", "=", ",")}'
run_mlr -n put 'end {print splitav("a=3,b=4,c=5", "=", ",")}'
run_mlr -n put 'end {print splitavx("a=3,b=4,c=5", "=", ",")}'
run_mlr -n put 'end {print splitak("a,b,c", "=", ",")}'
run_mlr -n put 'end {print splitav("a,b,c", "=", ",")}'
run_mlr -n put 'end {print splitavx("a,b,c", "=", ",")}'
run_mlr -n put 'end {print splita("3,4,5", ",")}'
run_mlr -n put 'end {print splitax("3,4,5", ",")}'
run_mlr --ojson --from $indir/s.dkvp put '$keys = keys($*)'
run_mlr --ojson --from $indir/s.dkvp put '$values = values($*)'
run_mlr --ojson --from $indir/s.dkvp put '$keys = keys([7,8,9])'
run_mlr --ojson --from $indir/s.dkvp put '$values = values([7,8,9])'
run_mlr --ojson --from $indir/s.dkvp put 'begin{@v=[]} @v = append(@v, NR); $v=@v'

View file

@ -0,0 +1,296 @@
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
@is_absent_a = is_absent ($a);
@is_present_a = is_present ($a);
@is_empty_a = is_empty ($a);
@is_not_empty_a = is_not_empty ($a);
@is_null_a = is_null ($a);
@is_not_null_a = is_not_null ($a);
@is_bool_a = is_bool ($a);
@is_boolean_a = is_boolean ($a);
@is_float_a = is_float ($a);
@is_int_a = is_int ($a);
@is_numeric_a = is_numeric ($a);
@is_string_a = is_string ($a);
@is_map_a = is_map ($a);
@is_not_map_a = is_not_map ($a);
@is_empty_map_a = is_empty_map ($a);
@is_nonempty_map_a = is_nonempty_map ($a);
@is_array_a = is_array ($a);
@is_not_array_a = is_not_array ($a);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
@is_absent_x = is_absent ($x);
@is_present_x = is_present ($x);
@is_empty_x = is_empty ($x);
@is_not_empty_x = is_not_empty ($x);
@is_null_x = is_null ($x);
@is_not_null_x = is_not_null ($x);
@is_bool_x = is_bool ($x);
@is_boolean_x = is_boolean ($x);
@is_float_x = is_float ($x);
@is_int_x = is_int ($x);
@is_numeric_x = is_numeric ($x);
@is_string_x = is_string ($x);
@is_map_x = is_map ($x);
@is_not_map_x = is_not_map ($x);
@is_empty_map_x = is_empty_map ($x);
@is_nonempty_map_x = is_nonempty_map ($x);
@is_array_x = is_array ($x);
@is_not_array_x = is_not_array ($x);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
@is_absent_i = is_absent ($i);
@is_present_i = is_present ($i);
@is_empty_i = is_empty ($i);
@is_not_empty_i = is_not_empty ($i);
@is_null_i = is_null ($i);
@is_not_null_i = is_not_null ($i);
@is_bool_i = is_bool ($i);
@is_boolean_i = is_boolean ($i);
@is_float_i = is_float ($i);
@is_int_i = is_int ($i);
@is_numeric_i = is_numeric ($i);
@is_string_i = is_string ($i);
@is_map_i = is_map ($i);
@is_not_map_i = is_not_map ($i);
@is_empty_map_i = is_empty_map ($i);
@is_nonempty_map_i = is_nonempty_map ($i);
@is_array_i = is_array ($i);
@is_not_array_i = is_not_array ($i);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
@is_absent_nonesuch = is_absent ($nonesuch);
@is_present_nonesuch = is_present ($nonesuch);
@is_empty_nonesuch = is_empty ($nonesuch);
@is_not_empty_nonesuch = is_not_empty ($nonesuch);
@is_null_nonesuch = is_null ($nonesuch);
@is_not_null_nonesuch = is_not_null ($nonesuch);
@is_bool_nonesuch = is_bool ($nonesuch);
@is_boolean_nonesuch = is_boolean ($nonesuch);
@is_float_nonesuch = is_float ($nonesuch);
@is_int_nonesuch = is_int ($nonesuch);
@is_numeric_nonesuch = is_numeric ($nonesuch);
@is_string_nonesuch = is_string ($nonesuch);
@is_map_nonesuch = is_map ($nonesuch);
@is_not_map_nonesuch = is_not_map ($nonesuch);
@is_empty_map_nonesuch = is_empty_map ($nonesuch);
@is_nonempty_map_nonesuch = is_nonempty_map ($nonesuch);
@is_array_nonesuch = is_array ($nonesuch);
@is_not_array_nonesuch = is_not_array ($nonesuch);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
@is_absent_dollar_star = is_absent ($*);
@is_present_dollar_star = is_present ($*);
@is_empty_dollar_star = is_empty ($*);
@is_not_empty_dollar_star = is_not_empty ($*);
@is_null_dollar_star = is_null ($*);
@is_not_null_dollar_star = is_not_null ($*);
@is_bool_dollar_star = is_bool ($*);
@is_boolean_dollar_star = is_boolean ($*);
@is_float_dollar_star = is_float ($*);
@is_int_dollar_star = is_int ($*);
@is_numeric_dollar_star = is_numeric ($*);
@is_string_dollar_star = is_string ($*);
@is_map_dollar_star = is_map ($*);
@is_not_map_dollar_star = is_not_map ($*);
@is_empty_map_dollar_star = is_empty_map ($*);
@is_nonempty_map_dollar_star = is_nonempty_map ($*);
@is_array_dollar_star = is_array ($*);
@is_not_array_dollar_star = is_not_array ($*);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
@is_absent_empty_map = is_absent ({});
@is_present_empty_map = is_present ({});
@is_empty_empty_map = is_empty ({});
@is_not_empty_empty_map = is_not_empty ({});
@is_null_empty_map = is_null ({});
@is_not_null_empty_map = is_not_null ({});
@is_bool_empty_map = is_bool ({});
@is_boolean_empty_map = is_boolean ({});
@is_float_empty_map = is_float ({});
@is_int_empty_map = is_int ({});
@is_numeric_empty_map = is_numeric ({});
@is_string_empty_map = is_string ({});
@is_map_empty_map = is_map ({});
@is_not_map_empty_map = is_not_map ({});
@is_empty_map_empty_map = is_empty_map ({});
@is_nonempty_map_empty_map = is_nonempty_map ({});
@is_array_empty_map = is_array ({});
@is_not_array_empty_map = is_not_array ({});
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
@is_absent_empty_map = is_absent ({});
@is_present_empty_map = is_present ({});
@is_empty_empty_map = is_empty ({});
@is_not_empty_empty_map = is_not_empty ({});
@is_null_empty_map = is_null ({});
@is_not_null_empty_map = is_not_null ({});
@is_bool_empty_map = is_bool ({});
@is_boolean_empty_map = is_boolean ({});
@is_float_empty_map = is_float ({});
@is_int_empty_map = is_int ({});
@is_numeric_empty_map = is_numeric ({});
@is_string_empty_map = is_string ({});
@is_map_empty_map = is_map ({});
@is_not_map_empty_map = is_not_map ({});
@is_empty_map_empty_map = is_empty_map ({});
@is_nonempty_map_empty_map = is_nonempty_map ({});
@is_array_empty_map = is_array ({});
@is_not_array_empty_map = is_not_array ({});
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
$a = "";
@is_absent_empty = is_absent ($a);
@is_present_empty = is_present ($a);
@is_empty_empty = is_empty ($a);
@is_not_empty_empty = is_not_empty ($a);
@is_null_empty = is_null ($a);
@is_not_null_empty = is_not_null ($a);
@is_bool_empty = is_bool ($a);
@is_boolean_empty = is_boolean ($a);
@is_float_empty = is_float ($a);
@is_int_empty = is_int ($a);
@is_numeric_empty = is_numeric ($a);
@is_string_empty = is_string ($a);
@is_map_empty = is_map ($a);
@is_not_map_empty = is_not_map ($a);
@is_empty_map_empty = is_empty_map ($a);
@is_nonempty_map_empty = is_nonempty_map ($a);
@is_array_empty = is_array ($a);
@is_not_array_empty = is_not_array ($a);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
@is_absent_array = is_absent ([1,2,3]);
@is_present_array = is_present ([1,2,3]);
@is_empty_array = is_empty ([1,2,3]);
@is_not_empty_array = is_not_empty ([1,2,3]);
@is_null_array = is_null ([1,2,3]);
@is_not_null_array = is_not_null ([1,2,3]);
@is_bool_array = is_bool ([1,2,3]);
@is_boolean_array = is_boolean ([1,2,3]);
@is_float_array = is_float ([1,2,3]);
@is_int_array = is_int ([1,2,3]);
@is_numeric_array = is_numeric ([1,2,3]);
@is_string_array = is_string ([1,2,3]);
@is_map_array = is_map ([1,2,3]);
@is_not_map_array = is_not_map ([1,2,3]);
@is_empty_map_array = is_empty_map ([1,2,3]);
@is_nonempty_map_array = is_nonempty_map ([1,2,3]);
@is_array_array = is_array ([1,2,3]);
@is_not_array_array = is_not_array ([1,2,3]);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
v = [1,2,3];
@is_absent_array_in_bounds = is_absent (v[1]);
@is_present_array_in_bounds = is_present (v[1]);
@is_empty_array_in_bounds = is_empty (v[1]);
@is_not_empty_array_in_bounds = is_not_empty (v[1]);
@is_null_array_in_bounds = is_null (v[1]);
@is_not_null_array_in_bounds = is_not_null (v[1]);
@is_bool_array_in_bounds = is_bool (v[1]);
@is_boolean_array_in_bounds = is_boolean (v[1]);
@is_float_array_in_bounds = is_float (v[1]);
@is_int_array_in_bounds = is_int (v[1]);
@is_numeric_array_in_bounds = is_numeric (v[1]);
@is_string_array_in_bounds = is_string (v[1]);
@is_map_array_in_bounds = is_map (v[1]);
@is_not_map_array_in_bounds = is_not_map (v[1]);
@is_empty_map_array_in_bounds = is_empty_map (v[1]);
@is_nonempty_map_array_in_bounds = is_nonempty_map (v[1]);
@is_array_in_bounds_array = is_array (v[1]);
@is_not_array_in_bounds_array = is_not_array (v[1]);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
v = [1,2,3];
@is_absent_array_out_of_bounds = is_absent (v[4]);
@is_present_array_out_of_bounds = is_present (v[4]);
@is_empty_array_out_of_bounds = is_empty (v[4]);
@is_not_empty_array_out_of_bounds = is_not_empty (v[4]);
@is_null_array_out_of_bounds = is_null (v[4]);
@is_not_null_array_out_of_bounds = is_not_null (v[4]);
@is_bool_array_out_of_bounds = is_bool (v[4]);
@is_boolean_array_out_of_bounds = is_boolean (v[4]);
@is_float_array_out_of_bounds = is_float (v[4]);
@is_int_array_out_of_bounds = is_int (v[4]);
@is_numeric_array_out_of_bounds = is_numeric (v[4]);
@is_string_array_out_of_bounds = is_string (v[4]);
@is_map_array_out_of_bounds = is_map (v[4]);
@is_not_map_array_out_of_bounds = is_not_map (v[4]);
@is_empty_map_array_out_of_bounds = is_empty_map (v[4]);
@is_nonempty_map_array_out_of_bounds = is_nonempty_map (v[4]);
@is_array_out_of_bounds_array = is_array (v[4]);
@is_not_array_out_of_bounds_array = is_not_array (v[4]);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
v = [1,2,3];
@is_absent_array_out_of_bounds = is_absent (v[0]);
@is_present_array_out_of_bounds = is_present (v[0]);
@is_empty_array_out_of_bounds = is_empty (v[0]);
@is_not_empty_array_out_of_bounds = is_not_empty (v[0]);
@is_null_array_out_of_bounds = is_null (v[0]);
@is_not_null_array_out_of_bounds = is_not_null (v[0]);
@is_bool_array_out_of_bounds = is_bool (v[0]);
@is_boolean_array_out_of_bounds = is_boolean (v[0]);
@is_float_array_out_of_bounds = is_float (v[0]);
@is_int_array_out_of_bounds = is_int (v[0]);
@is_numeric_array_out_of_bounds = is_numeric (v[0]);
@is_string_array_out_of_bounds = is_string (v[0]);
@is_map_array_out_of_bounds = is_map (v[0]);
@is_not_map_array_out_of_bounds = is_not_map (v[0]);
@is_empty_map_array_out_of_bounds = is_empty_map (v[0]);
@is_nonempty_map_array_out_of_bounds = is_nonempty_map (v[0]);
@is_array_out_of_bounds_array = is_array (v[0]);
@is_not_array_out_of_bounds_array = is_not_array (v[0]);
dump;
'
run_mlr --from $indir/s.dkvp head -n 1 then put -q '
@asserting_present_x = asserting_present ($x);
@asserting_not_empty_x = asserting_not_empty ($x);
@asserting_not_null_x = asserting_not_null ($x);
@asserting_float_x = asserting_float ($x);
@asserting_int_i = asserting_int ($i);
@asserting_numeric_x = asserting_numeric ($x);
@asserting_numeric_i = asserting_numeric ($i);
@asserting_string_b = asserting_string ($b);
@asserting_map_dollar_star = asserting_map ($*);
@asserting_not_map_x = asserting_not_map ($x);
@asserting_empty_map_curlies = asserting_empty_map ({});
@asserting_nonempty_map_dollar_star = asserting_nonempty_map ($*);
@asserting_array_braces = asserting_array ([]);
@asserting_not_array_x = asserting_not_array ($x);
dump;
'
mlr_expect_fail --from $indir/s.dkvp head -n 1 then put -q '
@asserting_absent_x = asserting_absent($x);
'
mlr_expect_fail --from $indir/s.dkvp head -n 1 then put -q '
@asserting_empty_x = asserting_empty($x);
dump;
'

View file

@ -0,0 +1 @@
run_mlr --help-all-verbs

108
go/reg-test/cases/case-go-io.sh Executable file
View file

@ -0,0 +1,108 @@
ofmt=pprint
for ifmt in csv dkvp nidx json; do
run_mlr --i$ifmt --o$ofmt put '
$nf=NF;
$nr=NR;
$fnr=FNR;
$filename=FILENAME;
$filenum=FILENUM;
' $indir/s.$ifmt $indir/t.$ifmt
done
ifmt=dkvp
for ofmt in pprint csv dkvp nidx json; do
run_mlr --i$ifmt --o$ofmt put '
$nf=NF;
$nr=NR;
$fnr=FNR;
$filename=FILENAME;
$filenum=FILENUM;
' $indir/s.$ifmt $indir/t.$ifmt
done
run_mlr --ocsv cat $indir/het.dkvp
run_mlr --opprint cat $indir/het.dkvp
run_mlr --opprint cat << EOF
EOF
run_mlr --opprint cat << EOF
a=1,b=2,c=3
EOF
run_mlr --opprint cat << EOF
a=1,b=2,c=3
a=2,b=2,c=3
EOF
run_mlr --opprint cat << EOF
a=1,b=2,c=3
a=2,b=2,c=3
d=3,e=5,f=6
EOF
run_mlr --opprint cat << EOF
a=1,b=2,c=3
d=2,e=5,f=6
d=3,e=5,f=6
EOF
run_mlr --opprint --barred cat $indir/s.dkvp
run_mlr --opprint --barred cat $indir/het.dkvp
# To-do: port format-specific default separators from C.
# E.g. NIDX's IFS should default to space.
echo 'a,b,c,d,e,f' | run_mlr --inidx --oxtab cat
echo 'a b c d e f' | run_mlr --inidx --oxtab cat
echo 'a,b,c,d,e,f' | run_mlr --inidx --ifs , --oxtab cat
echo 'a b c d e f' | run_mlr --inidx --ifs , --oxtab cat
echo 'a,b,c,d,e,f' | run_mlr --inidx --ifs ' ' --oxtab cat
echo 'a b c d e f' | run_mlr --inidx --ifs ' ' --oxtab cat
echo 'a,b,c,d,e,f' | run_mlr --inidx --ifs comma --oxtab cat
echo 'a b c d e f' | run_mlr --inidx --ifs comma --oxtab cat
echo 'a,b,c,d,e,f' | run_mlr --inidx --ifs space --oxtab cat
echo 'a b c d e f' | run_mlr --inidx --ifs space --oxtab cat
run_mlr --itsv --ocsv cat $indir/s.tsv
run_mlr --icsv --otsv cat $indir/s.tsv
run_mlr --icsv --otsv cat $indir/s.csv
run_mlr --c2j cat $indir/s.csv
run_mlr --ocsv cat $indir/het.dkvp
run_mlr --ocsv --headerless-csv-output cat $indir/het.dkvp
run_mlr --icsv --ojson cat $indir/implicit.csv
run_mlr --implicit-csv-header --icsv --ojson cat $indir/implicit.csv
run_mlr --icsvlite --ojson cat $indir/s.csv
run_mlr --icsvlite --implicit-csv-header --ojson cat $indir/implicit.csv
run_mlr --icsvlite --opprint cat $indir/het-a1.csv $indir/het-a2.csv
run_mlr --icsvlite --opprint cat $indir/het-b1.csv $indir/het-b2.csv
run_mlr --icsvlite --opprint cat $indir/het-c1.csv
run_mlr --icsvlite --opprint cat $indir/het-d1.csv
run_mlr --icsvlite --ojson --allow-ragged-csv-input cat $indir/ragged-short.csv
run_mlr --icsvlite --ojson --allow-ragged-csv-input cat $indir/ragged-long.csv
run_mlr --icsv --ojson --allow-ragged-csv-input cat $indir/ragged-short.csv
run_mlr --icsv --ojson --allow-ragged-csv-input cat $indir/ragged-long.csv
run_mlr --ixtab --ojson cat $indir/test-1.xtab
run_mlr --ixtab --ojson cat $indir/test-2.xtab
run_mlr --ixtab --ojson cat $indir/test-3.xtab
run_mlr --ixtab --ojson cat $indir/test-1.xtab $indir/test-2.xtab
run_mlr --ixtab --ojson cat $indir/test-2.xtab $indir/test-1.xtab
run_mlr --ixtab --ojson cat $indir/test-1.xtab $indir/test-2.xtab $indir/test-3.xtab
run_mlr --ojson --from $indir/s.dkvp head -n 0
run_mlr --ojson --from $indir/s.dkvp head -n 1
run_mlr --ojson --from $indir/s.dkvp head -n 2
run_mlr --ojson --from $indir/s.dkvp head -n 3
run_mlr --jlistwrap --ojson --from $indir/s.dkvp head -n 0
run_mlr --jlistwrap --ojson --from $indir/s.dkvp head -n 1
run_mlr --jlistwrap --ojson --from $indir/s.dkvp head -n 2
run_mlr --jlistwrap --ojson --from $indir/s.dkvp head -n 3

View file

@ -0,0 +1,141 @@
# With mlr -n put v, we are only parsing the DSL expression into an AST and
# then CST, but not executing it
run_mlr -n put -v '$y = 1 || 2'
run_mlr -n put -v '$y = 1 || 2 || 3'
run_mlr -n put -v '$y = 1 || 2 && 3'
run_mlr -n put -v '$y = 1 && 2 || 3'
run_mlr -n put -v '$y = 1 ? 2 : 3'
run_mlr -n put -v '$y = $a + $b * $c'
run_mlr -n put -v '$y = $a * $b * $c'
run_mlr -n put -v '$y = $a ** $b ** $c'
run_mlr -n put -v '$[2] = 3'
run_mlr -n put -v '$[$y] = 4'
#run_mlr -n put -v '${1} = 4'
run_mlr -n put -v '$x = "abc"'
run_mlr -n put -v '$["abc"] = "def"'
run_mlr -n put -v '$[FILENAME] = FNR'
run_mlr -n put -v '$x = $a + $b + $c'
run_mlr -n put -v '$x = ($a + $b) + $c; $y = $a + ($b + $c); $z = $a + ($b)+ $c'
run_mlr -n put -v '$x = 2 * $a + $b . $c'
run_mlr -n put -v '$x = 2 * $a + ($b . $c)'
run_mlr -n put -v '$x = (NF + NR) * 7; $y = OFS . $y . "hello"'
run_mlr -n put -v '$x = 123. + 1e-2 / .2e3 + 1.e-3'
run_mlr -n put -v '$z=0x7fffffffffffffff + 0x7fffffffffffffff'
run_mlr -n put -v '$z=0x7fffffffffffffff .+ 0x7fffffffffffffff'
run_mlr -n put -v '$z=0x7fffffffffffffff * 0x7fffffffffffffff'
run_mlr -n put -v '$z=0x7fffffffffffffff .* 0x7fffffffffffffff'
run_mlr --opprint --from $indir/s.dkvp head -n 1 then put '$z=2.3'
run_mlr --opprint --from $indir/s.dkvp head -n 1 then put '$z=2.'
run_mlr --opprint --from $indir/s.dkvp head -n 1 then put '$z=.3'
run_mlr --opprint --from $indir/s.dkvp head -n 1 then put '$z=2.3e4'
run_mlr --opprint --from $indir/s.dkvp head -n 1 then put '$z=2.e4'
run_mlr --opprint --from $indir/s.dkvp head -n 1 then put '$z=.3e4'
run_mlr --opprint --from $indir/s.dkvp head -n 1 then put '$z=2.3e-4'
run_mlr --opprint --from $indir/s.dkvp head -n 1 then put '$z=2.e-4'
run_mlr --opprint --from $indir/s.dkvp head -n 1 then put '$z=.3e-4'
run_mlr -n put -v '$y = 1 * 2 ?? 3'
run_mlr -n put -v '$y = 1 ?? 2 * 3'
run_mlr -n put -v '$z = []'
run_mlr -n put -v '$z = [1,]'
run_mlr -n put -v '$z = [1,2]'
run_mlr -n put -v '$z = [1,2,]'
run_mlr -n put -v '$z = [1,2,3]'
run_mlr -n put -v '$z = [1,2,3,]'
run_mlr -n put -v '$z = {}'
run_mlr -n put -v '$z = {"a":"1"}'
run_mlr -n put -v '$z = {"a":"1",}'
run_mlr -n put -v '$z = {"a":"1", "b":2}'
run_mlr -n put -v '$z = {"a":"1", "b":2,}'
run_mlr -n put -v '$z = {"a":"1", "b":2, "c":3}'
run_mlr -n put -v '$z = {"a":"1", "b":2, "c":3,}'
run_mlr -n put -v '$z = $a[1]'
run_mlr -n put -v '$z = $a["index"]'
run_mlr -n put -v '$z = "abcde"[1]'
run_mlr -n put -v '$z = "abcde"["index"]'
run_mlr -n put -v '$z = $a[1:2]'
run_mlr -n put -v '$z = $a[:2]'
run_mlr -n put -v '$z = $a[1:]'
run_mlr -n put -v '$z = $a[:]'
run_mlr -n put -v '$z = [5,6,7,8,9][1]'
run_mlr -n put -v '$z = {"a":1, "b":2, "c":3}["b"]'
run_mlr -n put -v 'begin{}'
run_mlr -n put -v 'begin{@y=1}'
run_mlr -n put -v 'end{}'
run_mlr -n put -v 'end{@y=1}'
# disallowed run_mlr -n put -v 'begin{}; end {}'
# disallowed run_mlr -n put -v 'begin{@y=1}; $x=2'
run_mlr -n put -v '$x=2; end{@y=1}'
run_mlr -n put -v 'begin{@y=1} $x=2'
run_mlr -n put -v 'begin{} end {}'
run_mlr -n put -v '$x=1;'
run_mlr -n put -v '$x=1;$y=2;'
run_mlr -n put -v 'begin{@x=1;@y=2}'
run_mlr -n put -v 'begin{@x=1;@y=2;}'
run_mlr -n put -v 'begin{@x=1;@y=2;} $z=3'
run_mlr -n put -v 'begin{@x=1;@y=2;} $z=3;'
# disallow in the CST builder
# run_mlr -n put -v 'begin{end{}}'
run_mlr -n put -v 'if (NR == 1) { $z = 100 }'
run_mlr -n put -v 'if (NR == 1) { $z = 100 } else { $z = 900 }'
run_mlr -n put -v 'if (NR == 1) { $z = 100 } elif (NR == 2) { $z = 200 }'
run_mlr -n put -v 'if (NR == 1) { $z = 100 } elif (NR == 2) { $z = 200 } else { $z = 900 }'
run_mlr -n put -v 'if (NR == 1) { $z = 100 } elif (NR == 2) { $z = 200 } elif (NR == 3) { $z = 300 } else { $z = 900 }'
run_mlr -n put -v 'for (k in $*) { emit { k : k } }'
run_mlr -n put -v 'begin {}'
run_mlr -n put -v 'end {}'
run_mlr -n put -v 'if (1) {}'
run_mlr -n put -v 'if (1) {2}'
run_mlr -n put -v 'for (k in $*) {}'
run_mlr -n put -v 'for (k in $*) {2}'
run_mlr -n put -v 'while (false) {}'
run_mlr -n put -v 'do {} while (false)'
run_mlr -n put -v 'nr=NR; $nr=nr'
run_mlr -n put -v 'for (i = 0; i < 10; i += 1) { $x += i }'
run_mlr -n put -v 'for (;;) {}'
run_mlr -n put -v 'for (i = 0; i < NR; i += 1) { $i += i }'
run_mlr -n put -v 'for (i = 0; i < NR; i += 1) { if (i == 2) { continue} $i += i }'
run_mlr -n put -v 'for (i = 0; i < NR; i += 1) { if (i == 2) { break} $i += i }'
run_mlr -n put -v 'func f(){}'
run_mlr -n put -v 'func f(a){}'
run_mlr -n put -v 'func f(a,){}'
run_mlr -n put -v 'func f(a,b){}'
run_mlr -n put -v 'func f(a,b,){}'
run_mlr -n put -v 'func f(a,b,c){}'
run_mlr -n put -v 'func f(a,b,c,){}'
run_mlr -n put -v 'func f(){return 1}'
run_mlr -n put -v 'func f(a){return 1}'
run_mlr -n put -v 'func f(a,){return 1}'
run_mlr -n put -v 'func f(a,b){return 1}'
run_mlr -n put -v 'func f(a,b,){return 1}'
run_mlr -n put -v 'func f(a,b,c){return 1}'
run_mlr -n put -v 'func f(a,b,c,){return 1}'
run_mlr -n put -v 'func f(x, y) { z = 3}'
run_mlr -n put -v 'func f(var x, var y): var { var z = 3}'
run_mlr -n put -v 'unset $x'
run_mlr -n put -v 'unset $*'
run_mlr -n put -v 'unset @x'
run_mlr -n put -v 'unset @*'
run_mlr -n put -v 'unset x'
mlr_expect_fail -n put -v 'unset 3'
mlr_expect_fail -n put -f $indir/lex-error.mlr
mlr_expect_fail -n put -f $indir/parse-error.mlr

View file

@ -0,0 +1,114 @@
run_mlr --opprint cat $indir/s.dkvp
run_mlr --opprint cat -n $indir/s.dkvp
run_mlr --opprint cat -n -g a $indir/s.dkvp
run_mlr --opprint cat -n -g a,b $indir/s.dkvp
run_mlr --opprint cut -f x,a $indir/s.dkvp
run_mlr --opprint cut -o -f x,a $indir/s.dkvp
run_mlr --opprint cut -x -f x,a $indir/s.dkvp
run_mlr --opprint head -n 1 $indir/s.dkvp
run_mlr --opprint head -n 1 -g a $indir/s.dkvp
run_mlr --opprint head -n 1 -g a,b $indir/s.dkvp
run_mlr --opprint tail -n 1 $indir/medium.dkvp
run_mlr --opprint tail -n 1 -g a $indir/medium.dkvp
run_mlr --opprint tail -n 1 -g a,b $indir/medium.dkvp
run_mlr --opprint group-like $indir/het.dkvp
run_mlr --opprint group-by a $indir/medium.dkvp
run_mlr --opprint group-by a,b $indir/medium.dkvp
run_mlr --opprint rename a,AAA $indir/s.dkvp
run_mlr --opprint rename a,AAA,x,XXX $indir/s.dkvp
run_mlr --opprint rename none,such $indir/s.dkvp
run_mlr --opprint rename a,b $indir/s.dkvp
run_mlr --opprint rename i,j,a,b $indir/s.dkvp
run_mlr --opprint rename x,y,a,b $indir/s.dkvp
run_mlr --opprint label A,B,I $indir/s.dkvp
run_mlr --opprint label A,B,I,X,Y $indir/s.dkvp
run_mlr --opprint label A,B,I,X,Y,Z $indir/s.dkvp
run_mlr --opprint label b,i,x $indir/s.dkvp
run_mlr --opprint label x,i,b $indir/s.dkvp
run_mlr --opprint --from $indir/s.dkvp sort -f nonesuch
run_mlr --opprint --from $indir/s.dkvp sort -f a
run_mlr --opprint --from $indir/s.dkvp sort -f a,b
run_mlr --opprint --from $indir/s.dkvp sort -r a
run_mlr --opprint --from $indir/s.dkvp sort -r a,b
run_mlr --opprint --from $indir/s.dkvp sort -f a -r b
run_mlr --opprint --from $indir/s.dkvp sort -f b -n i
run_mlr --opprint --from $indir/s.dkvp sort -f b -nr i
run_mlr --json --from $indir/needs-sorting.json sort-within-records
run_mlr --json --from $indir/needs-regularize.json regularize
run_mlr --opprint --from $indir/needs-unsparsify.dkvp unsparsify
run_mlr --opprint --from $indir/needs-unsparsify.dkvp unsparsify --fill-with X
run_mlr --opprint --from $indir/abixy-het unsparsify
run_mlr --opprint --from $indir/abixy-het unsparsify -f a,b,i,x,y
run_mlr --opprint --from $indir/abixy-het unsparsify -f a,b,i,x,y then regularize
run_mlr --opprint --from $indir/abixy-het unsparsify -f aaa,bbb,iii,xxx,yyy
run_mlr --opprint --from $indir/abixy-het unsparsify -f aaa,bbb,iii,xxx,yyy then regularize
run_mlr --opprint --from $indir/abixy-het unsparsify -f a,b,i,x,y,aaa,bbb,iii,xxx,yyy
run_mlr --opprint --from $indir/abixy-het unsparsify -f a,b,i,x,y,aaa,bbb,iii,xxx,yyy then regularize
run_mlr --opprint --from $indir/medium.dkvp count
run_mlr --opprint --from $indir/medium.dkvp count -g a
run_mlr --opprint --from $indir/medium.dkvp count -g a,b
run_mlr --opprint --from $indir/medium.dkvp count -g a -n
run_mlr --opprint --from $indir/medium.dkvp count -g a,b -n
run_mlr --opprint --from $indir/medium.dkvp count -o NAME
run_mlr --opprint --from $indir/medium.dkvp count -g a -o NAME
run_mlr --opprint --from $indir/s.dkvp grep pan
run_mlr --opprint --from $indir/s.dkvp grep -v pan
run_mlr --opprint --from $indir/s.dkvp grep PAN
run_mlr --opprint --from $indir/s.dkvp grep -i PAN
run_mlr --opprint --from $indir/s.dkvp grep -i -v PAN
run_mlr --from $indir/s.dkvp skip-trivial-records
run_mlr --from $indir/skip-trivial-records.dkvp skip-trivial-records
echo 'a,b,c,d,e,f' | run_mlr --inidx --ifs comma altkv
echo 'a,b,c,d,e,f,g' | run_mlr --inidx --ifs comma altkv
run_mlr --from $indir/s.csv --icsv --opprint remove-empty-columns
run_mlr --from $indir/remove-empty-columns.csv --icsv --opprint cat
run_mlr --from $indir/remove-empty-columns.csv --icsv --opprint remove-empty-columns
run_mlr --icsv --opprint fill-down -f z $indir/remove-empty-columns.csv
run_mlr --icsv --opprint fill-down -f a,b,c,d $indir/remove-empty-columns.csv
run_mlr --icsv --opprint reorder -f x,i $indir/s.dkvp
run_mlr --icsv --opprint reorder -f x,i -e $indir/s.dkvp
run_mlr decimate -n 2 $indir/s.dkvp
run_mlr decimate -b -n 2 $indir/s.dkvp
run_mlr decimate -e -n 2 $indir/s.dkvp
run_mlr decimate -b -e -n 2 $indir/s.dkvp
run_mlr --opprint count-similar -g a $indir/s.dkvp
run_mlr --opprint count-similar -g b $indir/s.dkvp
run_mlr --opprint count-similar -g a,b $indir/s.dkvp
run_mlr --opprint count-similar -g a -o altnamehere $indir/s.dkvp
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt a,t
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt -1 a,t
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt -2 a,t
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt -3 a,t
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt -4 a,t
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt -5 a,t
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt -6 a,t
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt -7 a,t
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt -8 a,t
run_mlr --from $indir/s.dkvp --opprint put '$t = $i + 0.123456789' then sec2gmt -9 a,t
mlr_expect_fail --from $indir/ten.dkvp gap
run_mlr --from $indir/ten.dkvp gap -n 4
run_mlr --from $indir/ten.dkvp gap -g a
run_mlr --from $indir/ten.dkvp sort -f a then gap -g a
run_mlr --from $indir/ten.dkvp sort -f a,b then gap -g a,b

View file

@ -1,5 +1,5 @@
mlr --opprint bar -f x,y --lo 0 --hi 1 ./reg_test/input/abixy
mlr --opprint bar -f x,y --lo 0 --hi 1 ././reg-test/input/abixy
a b i x y
pan pan 1 *************........................... *****************************...........
eks pan 2 ******************************.......... ********************....................
@ -12,7 +12,7 @@ zee wye 8 ***********************................. ****************************
hat wye 9 *....................................... *****************************...........
pan wye 10 ********************.................... **************************************..
mlr --opprint bar -f x,y -c c -x x -b b --lo 0.1 --hi 0.9 -w 20 ./reg_test/input/abixy
mlr --opprint bar -f x,y -c c -x x -b b --lo 0.1 --hi 0.9 -w 20 ././reg-test/input/abixy
a b i x y
pan pan 1 ccccccbbbbbbbbbbbbbb cccccccccccccccbbbbb
eks pan 2 ccccccccccccccccbbbb ccccccccccbbbbbbbbbb
@ -25,7 +25,7 @@ zee wye 8 ccccccccccccbbbbbbbb cccccccccccccccccccx
hat wye 9 xbbbbbbbbbbbbbbbbbbb ccccccccccccccccbbbb
pan wye 10 ccccccccccbbbbbbbbbb cccccccccccccccccccx
mlr --opprint bar --auto -f x,y -w 10 ./reg_test/input/abixy
mlr --opprint bar --auto -f x,y -w 10 ././reg-test/input/abixy
a b i x y
pan pan 1 [0.0314419]****......[0.75868] [0.134189]*******...[0.976181]
eks pan 2 [0.0314419]*********#[0.75868] [0.134189]****......[0.976181]

View file

@ -1,5 +1,5 @@
mlr --opprint --barred cat ./reg_test/input/abixy
mlr --opprint --barred cat ././reg-test/input/abixy
+-----+-----+----+---------------------+---------------------+
| a | b | i | x | y |
+-----+-----+----+---------------------+---------------------+
@ -15,7 +15,7 @@ mlr --opprint --barred cat ./reg_test/input/abixy
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |
+-----+-----+----+---------------------+---------------------+
mlr --opprint --barred --right cat ./reg_test/input/abixy
mlr --opprint --barred --right cat ././reg-test/input/abixy
+-----+-----+----+---------------------+---------------------+
| a | b | i | x | y |
+-----+-----+----+---------------------+---------------------+
@ -31,7 +31,7 @@ mlr --opprint --barred --right cat ./reg_test/input/abixy
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |
+-----+-----+----+---------------------+---------------------+
mlr --opprint --barred cat ./reg_test/input/abixy-het
mlr --opprint --barred cat ././reg-test/input/abixy-het
+-----+-----+---+--------------------+--------------------+
| a | b | i | x | y |
+-----+-----+---+--------------------+--------------------+
@ -87,7 +87,7 @@ mlr --opprint --barred cat ./reg_test/input/abixy-het
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |
+-----+-----+----+--------------------+--------------------+
mlr --opprint --barred --right cat ./reg_test/input/abixy-het
mlr --opprint --barred --right cat ././reg-test/input/abixy-het
+-----+-----+---+--------------------+--------------------+
| a | b | i | x | y |
+-----+-----+---+--------------------+--------------------+

View file

@ -1,5 +1,5 @@
mlr --seed 12345 bootstrap ./reg_test/input/abixy-het
mlr --seed 12345 bootstrap ././reg-test/input/abixy-het
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
a=eks,bbb=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
@ -11,11 +11,11 @@ a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694
a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694
mlr --seed 12345 bootstrap -n 2 ./reg_test/input/abixy-het
mlr --seed 12345 bootstrap -n 2 ././reg-test/input/abixy-het
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
a=eks,bbb=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
mlr --seed 12345 bootstrap -n 20 ./reg_test/input/abixy-het
mlr --seed 12345 bootstrap -n 20 ././reg-test/input/abixy-het
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
a=eks,bbb=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797

View file

@ -1,5 +1,5 @@
mlr cat ./reg_test/input/abixy
mlr cat ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -13,7 +13,7 @@ a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr cat /dev/null
mlr cat -n ./reg_test/input/abixy-het
mlr cat -n ././reg-test/input/abixy-het
n=1,a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
n=2,a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
n=3,aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -25,7 +25,7 @@ n=8,a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
n=9,aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
n=10,a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr cat -N counter ./reg_test/input/abixy-het
mlr cat -N counter ././reg-test/input/abixy-het
counter=1,a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
counter=2,a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
counter=3,aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -37,7 +37,7 @@ counter=8,a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
counter=9,aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
counter=10,a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr cat -g a,b ./reg_test/input/abixy-het
mlr cat -g a,b ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -49,7 +49,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr cat -g a,b ./reg_test/input/abixy-het
mlr cat -g a,b ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -61,7 +61,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr cat -g a,b -n ./reg_test/input/abixy-het
mlr cat -g a,b -n ././reg-test/input/abixy-het
n=1,a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
n=1,a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
n=1,aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -73,7 +73,7 @@ n=1,a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
n=3,aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
n=1,a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr cat -g a,b -N counter ./reg_test/input/abixy-het
mlr cat -g a,b -N counter ././reg-test/input/abixy-het
counter=1,a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
counter=1,a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
counter=1,aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776

View file

@ -1,65 +1,65 @@
mlr cat then cat ./reg_test/input/short
mlr cat then cat ././reg-test/input/short
a=1
b=2
c=3
mlr cat then tac ./reg_test/input/short
mlr cat then tac ././reg-test/input/short
c=3
b=2
a=1
mlr tac then cat ./reg_test/input/short
mlr tac then cat ././reg-test/input/short
c=3
b=2
a=1
mlr tac then tac ./reg_test/input/short
mlr tac then tac ././reg-test/input/short
a=1
b=2
c=3
mlr cat then cat then cat ./reg_test/input/short
mlr cat then cat then cat ././reg-test/input/short
a=1
b=2
c=3
mlr cat then cat then tac ./reg_test/input/short
mlr cat then cat then tac ././reg-test/input/short
c=3
b=2
a=1
mlr cat then tac then cat ./reg_test/input/short
mlr cat then tac then cat ././reg-test/input/short
c=3
b=2
a=1
mlr cat then tac then tac ./reg_test/input/short
mlr cat then tac then tac ././reg-test/input/short
a=1
b=2
c=3
mlr tac then cat then cat ./reg_test/input/short
mlr tac then cat then cat ././reg-test/input/short
c=3
b=2
a=1
mlr tac then cat then tac ./reg_test/input/short
mlr tac then cat then tac ././reg-test/input/short
a=1
b=2
c=3
mlr tac then tac then cat ./reg_test/input/short
mlr tac then tac then cat ././reg-test/input/short
a=1
b=2
c=3
mlr tac then tac then tac ./reg_test/input/short
mlr tac then tac then tac ././reg-test/input/short
c=3
b=2
a=1
mlr then cat then head -n 2 -g a,b then tac ./reg_test/input/abixy-het
mlr then cat then head -n 2 -g a,b then tac ././reg-test/input/abixy-het
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694

View file

@ -1,5 +1,5 @@
mlr --icsv --ojson cat ./reg_test/input/clean-whitespace.csv
mlr --icsv --ojson cat ././reg-test/input/clean-whitespace.csv
{ "n": 1, "a": "xy", "b ": 2, " c": 3 }
{ "n": 2, "a": "xy ", "b ": 2, " c": 3 }
{ "n": 3, "a": "xy ", "b ": 2, " c": 3 }
@ -17,7 +17,7 @@ mlr --icsv --ojson cat ./reg_test/input/clean-whitespace.csv
{ "n": 15, "a": " ", "b ": 2, " c": 3 }
{ "n": 16, "a": " ", "b ": 2, " c": 3 }
mlr --icsv --ojson put $a = lstrip($a) ./reg_test/input/clean-whitespace.csv
mlr --icsv --ojson put $a = lstrip($a) ././reg-test/input/clean-whitespace.csv
{ "n": 1, "a": "xy", "b ": 2, " c": 3 }
{ "n": 2, "a": "xy ", "b ": 2, " c": 3 }
{ "n": 3, "a": "xy ", "b ": 2, " c": 3 }
@ -35,7 +35,7 @@ mlr --icsv --ojson put $a = lstrip($a) ./reg_test/input/clean-whitespace.csv
{ "n": 15, "a": "", "b ": 2, " c": 3 }
{ "n": 16, "a": "", "b ": 2, " c": 3 }
mlr --icsv --ojson put $a = rstrip($a) ./reg_test/input/clean-whitespace.csv
mlr --icsv --ojson put $a = rstrip($a) ././reg-test/input/clean-whitespace.csv
{ "n": 1, "a": "xy", "b ": 2, " c": 3 }
{ "n": 2, "a": "xy", "b ": 2, " c": 3 }
{ "n": 3, "a": "xy", "b ": 2, " c": 3 }
@ -53,7 +53,7 @@ mlr --icsv --ojson put $a = rstrip($a) ./reg_test/input/clean-whitespace.csv
{ "n": 15, "a": "", "b ": 2, " c": 3 }
{ "n": 16, "a": "", "b ": 2, " c": 3 }
mlr --icsv --ojson put $a = strip($a) ./reg_test/input/clean-whitespace.csv
mlr --icsv --ojson put $a = strip($a) ././reg-test/input/clean-whitespace.csv
{ "n": 1, "a": "xy", "b ": 2, " c": 3 }
{ "n": 2, "a": "xy", "b ": 2, " c": 3 }
{ "n": 3, "a": "xy", "b ": 2, " c": 3 }
@ -71,7 +71,7 @@ mlr --icsv --ojson put $a = strip($a) ./reg_test/input/clean-whitespace.csv
{ "n": 15, "a": "", "b ": 2, " c": 3 }
{ "n": 16, "a": "", "b ": 2, " c": 3 }
mlr --icsv --ojson put $a = collapse_whitespace($a) ./reg_test/input/clean-whitespace.csv
mlr --icsv --ojson put $a = collapse_whitespace($a) ././reg-test/input/clean-whitespace.csv
{ "n": 1, "a": "xy", "b ": 2, " c": 3 }
{ "n": 2, "a": "xy ", "b ": 2, " c": 3 }
{ "n": 3, "a": "xy ", "b ": 2, " c": 3 }
@ -89,7 +89,7 @@ mlr --icsv --ojson put $a = collapse_whitespace($a) ./reg_test/input/clean-white
{ "n": 15, "a": " ", "b ": 2, " c": 3 }
{ "n": 16, "a": " ", "b ": 2, " c": 3 }
mlr --icsv --ojson put $a = clean_whitespace($a) ./reg_test/input/clean-whitespace.csv
mlr --icsv --ojson put $a = clean_whitespace($a) ././reg-test/input/clean-whitespace.csv
{ "n": 1, "a": "xy", "b ": 2, " c": 3 }
{ "n": 2, "a": "xy", "b ": 2, " c": 3 }
{ "n": 3, "a": "xy", "b ": 2, " c": 3 }
@ -107,7 +107,7 @@ mlr --icsv --ojson put $a = clean_whitespace($a) ./reg_test/input/clean-whitespa
{ "n": 15, "a": "", "b ": 2, " c": 3 }
{ "n": 16, "a": "", "b ": 2, " c": 3 }
mlr --icsv --ojson clean-whitespace -k ./reg_test/input/clean-whitespace.csv
mlr --icsv --ojson clean-whitespace -k ././reg-test/input/clean-whitespace.csv
{ "n": 1, "a": "xy", "b": 2, "c": 3 }
{ "n": 2, "a": "xy ", "b": 2, "c": 3 }
{ "n": 3, "a": "xy ", "b": 2, "c": 3 }
@ -125,7 +125,7 @@ mlr --icsv --ojson clean-whitespace -k ./reg_test/input/clean-whitespace.csv
{ "n": 15, "a": " ", "b": 2, "c": 3 }
{ "n": 16, "a": " ", "b": 2, "c": 3 }
mlr --icsv --ojson clean-whitespace -v ./reg_test/input/clean-whitespace.csv
mlr --icsv --ojson clean-whitespace -v ././reg-test/input/clean-whitespace.csv
{ "n": 1, "a": "xy", "b ": 2, " c": 3 }
{ "n": 2, "a": "xy", "b ": 2, " c": 3 }
{ "n": 3, "a": "xy", "b ": 2, " c": 3 }
@ -143,7 +143,7 @@ mlr --icsv --ojson clean-whitespace -v ./reg_test/input/clean-whitespace.csv
{ "n": 15, "a": "", "b ": 2, " c": 3 }
{ "n": 16, "a": "", "b ": 2, " c": 3 }
mlr --icsv --ojson clean-whitespace ./reg_test/input/clean-whitespace.csv
mlr --icsv --ojson clean-whitespace ././reg-test/input/clean-whitespace.csv
{ "n": 1, "a": "xy", "b": 2, "c": 3 }
{ "n": 2, "a": "xy", "b": 2, "c": 3 }
{ "n": 3, "a": "xy", "b": 2, "c": 3 }

View file

@ -1,11 +1,11 @@
mlr --csv --prepipe cat cat ./reg_test/input/rfc-csv/simple.csv-crlf
mlr --csv --prepipe cat cat ././reg-test/input/rfc-csv/simple.csv-crlf
a,b,c
1,x,3
4,5,6
x,"y""yy",z
mlr --dkvp --prepipe cat cat ./reg_test/input/abixy
mlr --dkvp --prepipe cat cat ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776

View file

@ -1,12 +1,12 @@
mlr count-distinct -f a ./reg_test/input/small ./reg_test/input/abixy
mlr count-distinct -f a ././reg-test/input/small ././reg-test/input/abixy
a=pan,count=4
a=eks,count=6
a=wye,count=4
a=zee,count=4
a=hat,count=2
mlr count-distinct -f a,b ./reg_test/input/small ./reg_test/input/abixy
mlr count-distinct -f a,b ././reg-test/input/small ././reg-test/input/abixy
a=pan,b=pan,count=2
a=eks,b=pan,count=2
a=wye,b=wye,count=2
@ -18,7 +18,7 @@ a=zee,b=wye,count=2
a=hat,b=wye,count=2
a=pan,b=wye,count=2
mlr count-distinct -f a,b -u ./reg_test/input/small ./reg_test/input/abixy
mlr count-distinct -f a,b -u ././reg-test/input/small ././reg-test/input/abixy
field=a,value=pan,count=4
field=a,value=eks,count=6
field=a,value=wye,count=4
@ -28,20 +28,20 @@ field=b,value=pan,count=8
field=b,value=wye,count=10
field=b,value=zee,count=2
mlr count-distinct -f a -n ./reg_test/input/small ./reg_test/input/abixy
mlr count-distinct -f a -n ././reg-test/input/small ././reg-test/input/abixy
count=5
mlr count-distinct -f a,b -n ./reg_test/input/small ./reg_test/input/abixy
mlr count-distinct -f a,b -n ././reg-test/input/small ././reg-test/input/abixy
count=10
mlr count-distinct -f a -o foo ./reg_test/input/small ./reg_test/input/abixy
mlr count-distinct -f a -o foo ././reg-test/input/small ././reg-test/input/abixy
a=pan,foo=4
a=eks,foo=6
a=wye,foo=4
a=zee,foo=4
a=hat,foo=2
mlr count-distinct -f a,b -o foo ./reg_test/input/small ./reg_test/input/abixy
mlr count-distinct -f a,b -o foo ././reg-test/input/small ././reg-test/input/abixy
a=pan,b=pan,foo=2
a=eks,b=pan,foo=2
a=wye,b=wye,foo=2
@ -53,9 +53,9 @@ a=zee,b=wye,foo=2
a=hat,b=wye,foo=2
a=pan,b=wye,foo=2
mlr count-distinct -f a -n -o foo ./reg_test/input/small ./reg_test/input/abixy
mlr count-distinct -f a -n -o foo ././reg-test/input/small ././reg-test/input/abixy
count=5
mlr count-distinct -f a,b -n -o foo ./reg_test/input/small ./reg_test/input/abixy
mlr count-distinct -f a,b -n -o foo ././reg-test/input/small ././reg-test/input/abixy
count=10

View file

@ -1,5 +1,5 @@
mlr --opprint --from ./reg_test/input/abixy count-similar -g a
mlr --opprint --from ././reg-test/input/abixy count-similar -g a
a b i x y count
pan pan 1 0.3467901443380824 0.7268028627434533 2
pan wye 10 0.5026260055412137 0.9526183602969864 2
@ -12,7 +12,7 @@ zee pan 6 0.5271261600918548 0.49322128674835697 2
zee wye 8 0.5985540091064224 0.976181385699006 2
hat wye 9 0.03144187646093577 0.7495507603507059 1
mlr --opprint --from ./reg_test/input/abixy count-similar -g b,i
mlr --opprint --from ././reg-test/input/abixy count-similar -g b,i
a b i x y count
pan pan 1 0.3467901443380824 0.7268028627434533 1
eks pan 2 0.7586799647899636 0.5221511083334797 1
@ -25,7 +25,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 1
hat wye 9 0.03144187646093577 0.7495507603507059 1
pan wye 10 0.5026260055412137 0.9526183602969864 1
mlr --opprint --from ./reg_test/input/abixy count-similar -g a,b,i -o other_name_for_counter
mlr --opprint --from ././reg-test/input/abixy count-similar -g a,b,i -o other_name_for_counter
a b i x y other_name_for_counter
pan pan 1 0.3467901443380824 0.7268028627434533 1
eks pan 2 0.7586799647899636 0.5221511083334797 1

View file

@ -3,19 +3,19 @@
================================================================
CSV/RS ENVIRONMENT DEFAULTS
mlr --csv cut -f a ./reg_test/input/rfc-csv/simple.csv-crlf
mlr --csv cut -f a ././reg-test/input/rfc-csv/simple.csv-crlf
a
1
4
x
mlr --csv --rs crlf cut -f a ./reg_test/input/rfc-csv/simple.csv-crlf
mlr --csv --rs crlf cut -f a ././reg-test/input/rfc-csv/simple.csv-crlf
a
1
4
x
mlr --csv --rs lf cut -f a ./reg_test/input/rfc-csv/simple.csv-crlf
mlr --csv --rs lf cut -f a ././reg-test/input/rfc-csv/simple.csv-crlf
a
1
4

View file

@ -1,5 +1,5 @@
mlr cut -f a,x ./reg_test/input/abixy
mlr cut -f a,x ././reg-test/input/abixy
a=pan,x=0.3467901443380824
a=eks,x=0.7586799647899636
a=wye,x=0.20460330576630303
@ -11,7 +11,7 @@ a=zee,x=0.5985540091064224
a=hat,x=0.03144187646093577
a=pan,x=0.5026260055412137
mlr cut --complement -f a,x ./reg_test/input/abixy
mlr cut --complement -f a,x ././reg-test/input/abixy
b=pan,i=1,y=0.7268028627434533
b=pan,i=2,y=0.5221511083334797
b=wye,i=3,y=0.33831852551664776
@ -23,7 +23,7 @@ b=wye,i=8,y=0.976181385699006
b=wye,i=9,y=0.7495507603507059
b=wye,i=10,y=0.9526183602969864
mlr cut -r -f c,e ./reg_test/input/having-fields-regex.dkvp
mlr cut -r -f c,e ././reg-test/input/having-fields-regex.dkvp
abc=1,def=11
abcd=3
@ -31,7 +31,7 @@ abcd=3
abcde=5
mlr cut -r -f "C","E" ./reg_test/input/having-fields-regex.dkvp
mlr cut -r -f "C","E" ././reg-test/input/having-fields-regex.dkvp
ABC=2,DEF=12
@ -39,7 +39,7 @@ ABCD=4
ABCDE=6
mlr cut -r -f "c"i,"e" ./reg_test/input/having-fields-regex.dkvp
mlr cut -r -f "c"i,"e" ././reg-test/input/having-fields-regex.dkvp
abc=1,def=11
ABC=2
abcd=3
@ -47,7 +47,7 @@ ABCD=4
abcde=5
ABCDE=6
mlr cut -r -f "C"i,"E" ./reg_test/input/having-fields-regex.dkvp
mlr cut -r -f "C"i,"E" ././reg-test/input/having-fields-regex.dkvp
abc=1
ABC=2,DEF=12
abcd=3
@ -55,7 +55,7 @@ ABCD=4
abcde=5
ABCDE=6
mlr cut -r -x -f c,e ./reg_test/input/having-fields-regex.dkvp
mlr cut -r -x -f c,e ././reg-test/input/having-fields-regex.dkvp
ABC=2,DEF=12
ghi=13
@ -63,7 +63,7 @@ ABCD=4,GHI=14
ghi=15
ABCDE=6,GHI=16
mlr cut -r -x -f "C","E" ./reg_test/input/having-fields-regex.dkvp
mlr cut -r -x -f "C","E" ././reg-test/input/having-fields-regex.dkvp
abc=1,def=11
abcd=3,ghi=13
@ -71,7 +71,7 @@ GHI=14
abcde=5,ghi=15
GHI=16
mlr cut -r -x -f "C","E"i ./reg_test/input/having-fields-regex.dkvp
mlr cut -r -x -f "C","E"i ././reg-test/input/having-fields-regex.dkvp
abc=1
abcd=3,ghi=13
@ -79,7 +79,7 @@ GHI=14
ghi=15
GHI=16
mlr cut -r -x -f "c","e"i ./reg_test/input/having-fields-regex.dkvp
mlr cut -r -x -f "c","e"i ././reg-test/input/having-fields-regex.dkvp
ABC=2
ghi=13
@ -87,7 +87,7 @@ ABCD=4,GHI=14
ghi=15
GHI=16
mlr --csvlite cut -r -f ^Name$,^Date_[0-9].*$ ./reg_test/input/date1.csv ./reg_test/input/date2.csv
mlr --csvlite cut -r -f ^Name$,^Date_[0-9].*$ ././reg-test/input/date1.csv ././reg-test/input/date2.csv
Name,Date_201505
Alice,2015-05-14
Bob,2015-05-11

View file

@ -1,24 +1,24 @@
mlr decimate -n 4 ./reg_test/input/abixy
mlr decimate -n 4 ././reg-test/input/abixy
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
mlr decimate -b -n 4 ./reg_test/input/abixy
mlr decimate -b -n 4 ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
mlr decimate -e -n 4 ./reg_test/input/abixy
mlr decimate -e -n 4 ././reg-test/input/abixy
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
mlr decimate -g a -n 2 ./reg_test/input/abixy
mlr decimate -g a -n 2 ././reg-test/input/abixy
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr decimate -g a -b -n 2 ./reg_test/input/abixy
mlr decimate -g a -b -n 2 ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -26,7 +26,7 @@ a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
mlr decimate -g a -e -n 2 ./reg_test/input/abixy
mlr decimate -g a -e -n 2 ././reg-test/input/abixy
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006

View file

@ -1,15 +1,15 @@
mlr put -q @sum += $x; end{emitp @sum} ./reg_test/input/abixy
mlr put -q @sum += $x; end{emitp @sum} ././reg-test/input/abixy
sum=4.536294
mlr put -q @sum[$a] += $x; end{emitp @sum, "a"} ./reg_test/input/abixy
mlr put -q @sum[$a] += $x; end{emitp @sum, "a"} ././reg-test/input/abixy
a=pan,sum=0.849416
a=eks,sum=1.751863
a=wye,sum=0.777892
a=zee,sum=1.125680
a=hat,sum=0.031442
mlr put $nonesuch = @nonesuch ./reg_test/input/abixy
mlr put $nonesuch = @nonesuch ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -21,15 +21,15 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr put -q @sum += $x; end{emitp @sum} ./reg_test/input/abixy-het
mlr put -q @sum += $x; end{emitp @sum} ././reg-test/input/abixy-het
sum=3.963005
mlr put -q @sum[$a] += $x; end{emitp @sum, "a"} ./reg_test/input/abixy-het
mlr put -q @sum[$a] += $x; end{emitp @sum, "a"} ././reg-test/input/abixy-het
a=pan,sum=0.849416
a=eks,sum=1.751863
a=zee,sum=1.125680
mlr put $nonesuch = @nonesuch ./reg_test/input/abixy-het
mlr put $nonesuch = @nonesuch ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -41,7 +41,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr put -q @sum += $x; @sumtype = typeof(@sum); @xtype = typeof($x); emitf @sumtype, @xtype, @sum; end{emitp @sum} ./reg_test/input/abixy
mlr put -q @sum += $x; @sumtype = typeof(@sum); @xtype = typeof($x); emitf @sumtype, @xtype, @sum; end{emitp @sum} ././reg-test/input/abixy
sumtype=float,xtype=float,sum=0.346790
sumtype=float,xtype=float,sum=1.105470
sumtype=float,xtype=float,sum=1.310073
@ -54,7 +54,7 @@ sumtype=float,xtype=float,sum=4.033668
sumtype=float,xtype=float,sum=4.536294
sum=4.536294
mlr put -q @sum += $x; @sumtype = typeof(@sum); @xtype = typeof($x); emitf @sumtype, @xtype, @sum; end{emitp @sum} ./reg_test/input/abixy-het
mlr put -q @sum += $x; @sumtype = typeof(@sum); @xtype = typeof($x); emitf @sumtype, @xtype, @sum; end{emitp @sum} ././reg-test/input/abixy-het
sumtype=float,xtype=float,sum=0.346790
sumtype=float,xtype=float,sum=1.105470
sumtype=float,xtype=float,sum=1.310073
@ -67,7 +67,7 @@ sumtype=float,xtype=float,sum=3.460379
sumtype=float,xtype=float,sum=3.963005
sum=3.963005
mlr put $z = $x + $y ./reg_test/input/typeof.dkvp
mlr put $z = $x + $y ././reg-test/input/typeof.dkvp
x=1,y=2,z=3
x=1,y=,z=
x=,y=2,z=
@ -81,7 +81,7 @@ x=1,b=,z=1
x=,b=2
x=,b=
mlr put $z = $x + $u ./reg_test/input/typeof.dkvp
mlr put $z = $x + $u ././reg-test/input/typeof.dkvp
x=1,y=2,z=1
x=1,y=,z=1
x=,y=2
@ -95,7 +95,7 @@ x=1,b=,z=1
x=,b=2
x=,b=
mlr put @s = @s + $y; emitp @s ./reg_test/input/typeof.dkvp
mlr put @s = @s + $y; emitp @s ././reg-test/input/typeof.dkvp
s=2
x=1,y=2
s=
@ -121,7 +121,7 @@ x=,b=2
s=
x=,b=
mlr put @s = @s + $u; emitp @s ./reg_test/input/typeof.dkvp
mlr put @s = @s + $u; emitp @s ././reg-test/input/typeof.dkvp
x=1,y=2
x=1,y=
x=,y=2
@ -135,7 +135,7 @@ x=1,b=
x=,b=2
x=,b=
mlr put $z = $x + $y; $x=typeof($x);$y=typeof($y);$z=typeof($z) ./reg_test/input/typeof.dkvp
mlr put $z = $x + $y; $x=typeof($x);$y=typeof($y);$z=typeof($z) ././reg-test/input/typeof.dkvp
x=int,y=int,z=int
x=int,y=empty,z=empty
x=empty,y=int,z=empty
@ -149,7 +149,7 @@ x=int,b=,z=int,y=absent
x=empty,b=2,y=absent,z=absent
x=empty,b=,y=absent,z=absent
mlr put $z = $x + $u; $x=typeof($x);$y=typeof($y);$z=typeof($z) ./reg_test/input/typeof.dkvp
mlr put $z = $x + $u; $x=typeof($x);$y=typeof($y);$z=typeof($z) ././reg-test/input/typeof.dkvp
x=int,y=int,z=int
x=int,y=empty,z=int
x=empty,y=int,z=absent
@ -163,7 +163,7 @@ x=int,b=,z=int,y=absent
x=empty,b=2,y=absent,z=absent
x=empty,b=,y=absent,z=absent
mlr put @s = @s + $y; $x=typeof($x);$y=typeof($y);$z=typeof($z);$s=typeof(@s) ./reg_test/input/typeof.dkvp
mlr put @s = @s + $y; $x=typeof($x);$y=typeof($y);$z=typeof($z);$s=typeof(@s) ././reg-test/input/typeof.dkvp
x=int,y=int,z=absent,s=int
x=int,y=empty,z=absent,s=empty
x=empty,y=int,z=absent,s=empty
@ -177,7 +177,7 @@ x=int,b=,y=absent,z=absent,s=empty
x=empty,b=2,y=absent,z=absent,s=empty
x=empty,b=,y=absent,z=absent,s=empty
mlr put @s = @s + $u; $x=typeof($x);$y=typeof($y);$z=typeof($z);$s=typeof(@s) ./reg_test/input/typeof.dkvp
mlr put @s = @s + $u; $x=typeof($x);$y=typeof($y);$z=typeof($z);$s=typeof(@s) ././reg-test/input/typeof.dkvp
x=int,y=int,z=absent,s=absent
x=int,y=empty,z=absent,s=absent
x=empty,y=int,z=absent,s=absent

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(int i) {
return i+3;
}
@ -16,7 +16,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,c=11
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,c=12
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,c=13
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(int i) {
return i+3;
}
@ -24,7 +24,7 @@ mlr --from ./reg_test/input/abixy put
mlr: int type assertion for variable i unmet by value 0.346790 with type float.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(num i): int {
return i+3.45;
}
@ -32,7 +32,7 @@ mlr --from ./reg_test/input/abixy put
mlr: function f returned type float, not matching typedecl int.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(num i): int {
return i+3.45;
}
@ -40,7 +40,7 @@ mlr --from ./reg_test/input/abixy put
mlr: function f returned type float, not matching typedecl int.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(num i): int {
i = "a";
return 2;
@ -49,7 +49,7 @@ mlr --from ./reg_test/input/abixy put
mlr: numeric type assertion for variable i unmet by value "a" with type string.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
subr s(int i) {
print i+3;
}
@ -76,7 +76,7 @@ a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
13
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
subr s(int i) {
print i+3;
}
@ -84,7 +84,7 @@ mlr --from ./reg_test/input/abixy put
mlr: int type assertion for variable i unmet by value 0.346790 with type float.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
subr s(num i) {
i = "a";
print 2;

View file

@ -1,5 +1,5 @@
mlr --opprint put $f=asserting_absent($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_absent($nosuch) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -7,7 +7,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $f=asserting_absent(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_absent(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -15,25 +15,25 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $f=asserting_absent($x) ./reg_test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_absent($x) ././reg-test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_absent($y) ./reg_test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_absent($y) ././reg-test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_absent($z) ./reg_test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_absent($z) ././reg-test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_absent(@somesuch) ./reg_test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_absent(@somesuch) ././reg-test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put foo=asserting_absent($*) ./reg_test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put foo=asserting_absent($*) ././reg-test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put foo=asserting_absent({1:2}) ./reg_test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put foo=asserting_absent({1:2}) ././reg-test/input/nullvals.dkvp
mlr: absent type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - -
b 3 4 - -
@ -41,31 +41,31 @@ b 5 - - -
b - 6 - -
b - - - -
mlr --opprint put $f=asserting_empty($x) ./reg_test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty($x) ././reg-test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty($y) ./reg_test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty($y) ././reg-test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty($nosuch) ./reg_test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty($nosuch) ././reg-test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty(@nosuch) ./reg_test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty(@nosuch) ././reg-test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty({1:2}) ./reg_test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty({1:2}) ././reg-test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_empty(@somesuch) ./reg_test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_empty(@somesuch) ././reg-test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put foo=asserting_empty($*) ./reg_test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put foo=asserting_empty($*) ././reg-test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put foo=asserting_empty({1:2}) ./reg_test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put foo=asserting_empty({1:2}) ././reg-test/input/nullvals.dkvp
mlr: empty type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map({}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map({}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - (error)
b 3 4 - (error)
@ -73,31 +73,31 @@ b 5 - - (error)
b - 6 - (error)
b - - - (error)
mlr --opprint put $f=asserting_empty_map($*) ./reg_test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map($*) ././reg-test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map($x) ./reg_test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map($x) ././reg-test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map($y) ./reg_test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map($y) ././reg-test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map($z) ./reg_test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map($z) ././reg-test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map($nosuch) ./reg_test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map($nosuch) ././reg-test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map(@nosuch) ./reg_test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map(@nosuch) ././reg-test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map({1:2}) ./reg_test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_empty_map({1:2}) ././reg-test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_empty_map(@somesuch) ./reg_test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_empty_map(@somesuch) ././reg-test/input/nullvals.dkvp
mlr: empty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - (error)
b 3 4 - (error)
@ -105,7 +105,7 @@ b 5 - - (error)
b - 6 - (error)
b - - - (error)
mlr --opprint put $f=asserting_map({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - (error)
b 3 4 - (error)
@ -113,7 +113,7 @@ b 5 - - (error)
b - 6 - (error)
b - - - (error)
mlr --opprint put $f=asserting_map({}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map({}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - (error)
b 3 4 - (error)
@ -121,25 +121,25 @@ b 5 - - (error)
b - 6 - (error)
b - - - (error)
mlr --opprint put $f=asserting_map($x) ./reg_test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map($x) ././reg-test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map($y) ./reg_test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map($y) ././reg-test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map($z) ./reg_test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map($z) ././reg-test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map($nosuch) ./reg_test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map($nosuch) ././reg-test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map(@nosuch) ./reg_test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_map(@nosuch) ././reg-test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_map(@somesuch) ./reg_test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_map(@somesuch) ././reg-test/input/nullvals.dkvp
mlr: map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - (error)
b 3 4 - (error)
@ -147,7 +147,7 @@ b 5 - - (error)
b - 6 - (error)
b - - - (error)
mlr --opprint put $f=asserting_nonempty_map({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - (error)
b 3 4 - (error)
@ -155,28 +155,28 @@ b 5 - - (error)
b - 6 - (error)
b - - - (error)
mlr --opprint put $f=asserting_nonempty_map($x) ./reg_test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map($x) ././reg-test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map($y) ./reg_test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map($y) ././reg-test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map($z) ./reg_test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map($z) ././reg-test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map($nosuch) ./reg_test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map($nosuch) ././reg-test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map(@nosuch) ./reg_test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map(@nosuch) ././reg-test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map({}) ./reg_test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_nonempty_map({}) ././reg-test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_nonempty_map(@somesuch) ./reg_test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_nonempty_map(@somesuch) ././reg-test/input/nullvals.dkvp
mlr: nonempty_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $*=asserting_not_empty($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_not_empty($*) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -184,7 +184,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $f=asserting_not_empty($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_empty($nosuch) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -192,7 +192,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $f=asserting_not_empty(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_empty(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -200,7 +200,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $f=asserting_not_empty({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_empty({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - (error)
b 3 4 - (error)
@ -208,7 +208,7 @@ b 5 - - (error)
b - 6 - (error)
b - - - (error)
mlr --opprint put $nosuch=asserting_not_empty($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $nosuch=asserting_not_empty($nosuch) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -216,7 +216,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put @somesuch=1;$f=asserting_not_empty(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_not_empty(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - 1
b 3 4 - 1
@ -224,7 +224,7 @@ b 5 - - 1
b - 6 - 1
b - - - 1
mlr --opprint put $*=asserting_not_empty($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_not_empty($*) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -232,7 +232,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $*=asserting_not_empty({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_not_empty({1:2}) ././reg-test/input/nullvals.dkvp
1
2
2
@ -240,16 +240,16 @@ mlr --opprint put $*=asserting_not_empty({1:2}) ./reg_test/input/nullvals.dkvp
2
2
mlr --opprint put $f=asserting_not_empty($x) ./reg_test/input/nullvals.dkvp
mlr: not_empty type-assertion failed at NR=4 FNR=4 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_empty($x) ././reg-test/input/nullvals.dkvp
mlr: not_empty type-assertion failed at NR=4 FNR=4 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_empty($y) ./reg_test/input/nullvals.dkvp
mlr: not_empty type-assertion failed at NR=3 FNR=3 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_empty($y) ././reg-test/input/nullvals.dkvp
mlr: not_empty type-assertion failed at NR=3 FNR=3 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_empty($z) ./reg_test/input/nullvals.dkvp
mlr: not_empty type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_empty($z) ././reg-test/input/nullvals.dkvp
mlr: not_empty type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - 1
b 3 4 - 3
@ -257,7 +257,7 @@ b 5 - - 5
b - 6 - -
b - - - -
mlr --opprint put $f=asserting_not_map($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - 2
b 3 4 - 4
@ -265,7 +265,7 @@ b 5 - - -
b - 6 - 6
b - - - -
mlr --opprint put $f=asserting_not_map($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - -
b 3 4 - -
@ -273,7 +273,7 @@ b 5 - - -
b - 6 - -
b - - - -
mlr --opprint put $f=asserting_not_map($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map($nosuch) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -281,7 +281,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $f=asserting_not_map(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -289,7 +289,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put @somesuch=1;$f=asserting_not_map(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_not_map(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - 1
b 3 4 - 1
@ -297,16 +297,16 @@ b 5 - - 1
b - 6 - 1
b - - - 1
mlr --opprint put $f=asserting_not_map($*) ./reg_test/input/nullvals.dkvp
mlr: not_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map($*) ././reg-test/input/nullvals.dkvp
mlr: not_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map({1:2}) ./reg_test/input/nullvals.dkvp
mlr: not_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map({1:2}) ././reg-test/input/nullvals.dkvp
mlr: not_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map({}) ./reg_test/input/nullvals.dkvp
mlr: not_map type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_map({}) ././reg-test/input/nullvals.dkvp
mlr: not_map type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_not_null(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_not_null(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - 1
b 3 4 - 1
@ -314,7 +314,7 @@ b 5 - - 1
b - 6 - 1
b - - - 1
mlr --opprint put $*=asserting_not_null($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_not_null($*) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -322,7 +322,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $*=asserting_not_null({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_not_null({1:2}) ././reg-test/input/nullvals.dkvp
1
2
2
@ -330,22 +330,22 @@ mlr --opprint put $*=asserting_not_null({1:2}) ./reg_test/input/nullvals.dkvp
2
2
mlr --opprint put $f=asserting_not_null($x) ./reg_test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=4 FNR=4 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_null($x) ././reg-test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=4 FNR=4 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_null($y) ./reg_test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=3 FNR=3 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_null($y) ././reg-test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=3 FNR=3 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_null($z) ./reg_test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_null($z) ././reg-test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_null($nosuch) ./reg_test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_null($nosuch) ././reg-test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_null(@nosuch) ./reg_test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_not_null(@nosuch) ././reg-test/input/nullvals.dkvp
mlr: not_null type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_null($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_null($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - -
b 3 4 - -
@ -353,7 +353,7 @@ b 5 - - -
b - 6 - -
b - - - -
mlr --opprint put $f=asserting_null($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_null($nosuch) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -361,7 +361,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $f=asserting_null(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_null(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -369,40 +369,40 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $f=asserting_null($x) ./reg_test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_null($x) ././reg-test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_null($y) ./reg_test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_null($y) ././reg-test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_null(@somesuch) ./reg_test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_null(@somesuch) ././reg-test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $*=asserting_null($*) ./reg_test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_null($*) ././reg-test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $*=asserting_null({1:2}) ./reg_test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_null({1:2}) ././reg-test/input/nullvals.dkvp
mlr: null type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_numeric($x) ./reg_test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=4 FNR=4 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_numeric($x) ././reg-test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=4 FNR=4 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_numeric($y) ./reg_test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=3 FNR=3 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_numeric($y) ././reg-test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=3 FNR=3 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_numeric($z) ./reg_test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_numeric($z) ././reg-test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $*=asserting_numeric($*) ./reg_test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_numeric($*) ././reg-test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $*=asserting_numeric({1:2}) ./reg_test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_numeric({1:2}) ././reg-test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_numeric($nosuch) ./reg_test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_numeric($nosuch) ././reg-test/input/nullvals.dkvp
mlr: numeric type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_present($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_present($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - 1
b 3 4 - 3
@ -410,7 +410,7 @@ b 5 - - 5
b - 6 - -
b - - - -
mlr --opprint put $f=asserting_present($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_present($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - 2
b 3 4 - 4
@ -418,7 +418,7 @@ b 5 - - -
b - 6 - 6
b - - - -
mlr --opprint put $f=asserting_present($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_present($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - -
b 3 4 - -
@ -426,7 +426,7 @@ b 5 - - -
b - 6 - -
b - - - -
mlr --opprint put @somesuch=1;$f=asserting_present(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=asserting_present(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - 1
b 3 4 - 1
@ -434,7 +434,7 @@ b 5 - - 1
b - 6 - 1
b - - - 1
mlr --opprint put $*=asserting_present($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_present($*) ././reg-test/input/nullvals.dkvp
a x y z
b 1 2 -
b 3 4 -
@ -442,7 +442,7 @@ b 5 - -
b - 6 -
b - - -
mlr --opprint put $*=asserting_present({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_present({1:2}) ././reg-test/input/nullvals.dkvp
1
2
2
@ -450,13 +450,13 @@ mlr --opprint put $*=asserting_present({1:2}) ./reg_test/input/nullvals.dkvp
2
2
mlr --opprint put $f=asserting_present($nosuch) ./reg_test/input/nullvals.dkvp
mlr: present type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_present($nosuch) ././reg-test/input/nullvals.dkvp
mlr: present type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_present(@nosuch) ./reg_test/input/nullvals.dkvp
mlr: present type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_present(@nosuch) ././reg-test/input/nullvals.dkvp
mlr: present type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_string($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_string($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - -
b 3 4 - -
@ -464,18 +464,18 @@ b 5 - - -
b - 6 - -
b - - - -
mlr --opprint put $*=asserting_string($*) ./reg_test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_string($*) ././reg-test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $*=asserting_string({1:2}) ./reg_test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $*=asserting_string({1:2}) ././reg-test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_string($x) ./reg_test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_string($x) ././reg-test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_string($y) ./reg_test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_string($y) ././reg-test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp
mlr --opprint put $f=asserting_string($nosuch) ./reg_test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=./reg_test/input/nullvals.dkvp
mlr --opprint put $f=asserting_string($nosuch) ././reg-test/input/nullvals.dkvp
mlr: string type-assertion failed at NR=1 FNR=1 FILENAME=././reg-test/input/nullvals.dkvp

View file

@ -3,7 +3,7 @@
================================================================
DSL BREAK/CONTINUE IN SINGLE WHILE/DO-WHILE
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
while ($i < 5) {
$i += 1;
break;
@ -22,7 +22,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
while ($i < 5) {
$i += 1;
continue;
@ -41,7 +41,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
do {
$i += 1;
break;
@ -60,7 +60,7 @@ zee wye 9 0.5985540091064224 0.976181385699006
hat wye 10 0.03144187646093577 0.7495507603507059
pan wye 11 0.5026260055412137 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
do {
$i += 1;
continue;
@ -79,7 +79,7 @@ zee wye 9 0.5985540091064224 0.976181385699006
hat wye 10 0.03144187646093577 0.7495507603507059
pan wye 11 0.5026260055412137 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$NR = NR;
while ($i < 5) {
$i += 1;
@ -101,7 +101,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$NR = NR;
while ($i < 5) {
$i += 1;
@ -123,7 +123,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$NR = NR;
do {
$i += 1;
@ -145,7 +145,7 @@ reached wye 9 0.5985540091064224 0.976181385699006 8
reached wye 10 0.03144187646093577 0.7495507603507059 9
reached wye 11 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$NR = NR;
do {
$i += 1;
@ -171,7 +171,7 @@ reached wye 11 0.5026260055412137 0.9526183602969864 10
================================================================
DSL BREAK/CONTINUE IN NESTED WHILE/DO-WHILE
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
while ($j < 4) {
$k = NR;
@ -196,7 +196,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
while ($j < 4) {
$k = NR;
@ -221,7 +221,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
while ($j < 4) {
$k = NR;
@ -247,7 +247,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
while ($j < 4) {
$k = NR;
@ -273,7 +273,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
while ($j < 4) {
$k = NR;
@ -300,7 +300,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
while ($j < 4) {
$k = NR;
@ -327,7 +327,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
while ($j < 4) {
$k = NR;
@ -355,7 +355,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
while ($j < 4) {
$k = NR;
@ -383,7 +383,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
do {
$k = NR;
@ -406,7 +406,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9 8
hat wye 9 0.03144187646093577 0.7495507603507059 10 9
pan wye 10 0.5026260055412137 0.9526183602969864 11 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
do {
$k = NR;
@ -429,7 +429,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9 8
hat wye 9 0.03144187646093577 0.7495507603507059 10 9
pan wye 10 0.5026260055412137 0.9526183602969864 11 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
do {
$k = NR;
@ -453,7 +453,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9 9
hat wye 9 0.03144187646093577 0.7495507603507059 10 10
pan wye 10 0.5026260055412137 0.9526183602969864 11 11
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
do {
$k = NR;
@ -477,7 +477,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9 9
hat wye 9 0.03144187646093577 0.7495507603507059 10 10
pan wye 10 0.5026260055412137 0.9526183602969864 11 11
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
do {
$k = NR;
@ -502,7 +502,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9 8
hat wye 9 0.03144187646093577 0.7495507603507059 10 10
pan wye 10 0.5026260055412137 0.9526183602969864 11 11
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
do {
$k = NR;
@ -527,7 +527,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9 8
hat wye 9 0.03144187646093577 0.7495507603507059 10 10
pan wye 10 0.5026260055412137 0.9526183602969864 11 11
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
do {
$k = NR;
@ -553,7 +553,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9 9
hat wye 9 0.03144187646093577 0.7495507603507059 10 10010
pan wye 10 0.5026260055412137 0.9526183602969864 11 10011
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$j = NR;
do {
$k = NR;
@ -583,7 +583,7 @@ pan wye 10 0.5026260055412137 0.9526183602969864 11 10011
================================================================
DSL BREAK/CONTINUE IN SINGLE FOR-SREC
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k,v in $*) {
@logging1[NR][k] = v;
if (k == "x") {
@ -636,7 +636,7 @@ NR k logging1
10 i 10
10 x 0.502626
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k,v in $*) {
if (k == "x") {
break;
@ -679,7 +679,7 @@ NR k logging2
10 b wye
10 i 10
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k,v in $*) {
@logging3[NR][k] = v;
if (k == "x") {
@ -742,7 +742,7 @@ NR k logging3
10 x 0.502626
10 y 0.952618
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k,v in $*) {
if (k == "x") {
continue;
@ -795,7 +795,7 @@ NR k logging4
10 i 10
10 y 0.952618
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k,v in $*) {
@logging1[NR][k] = v;
if (k == "x") {
@ -1003,7 +1003,7 @@ NR k logging4
================================================================
DSL BREAK/CONTINUE IN NESTED FOR-SREC
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
break;
@ -1030,7 +1030,7 @@ NR name output1
9 a before
10 a before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
continue;
@ -1097,7 +1097,7 @@ NR name output1
10 x before
10 y before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
@output1[NR][k1] = v1;
@ -1216,7 +1216,7 @@ NR names output2
10 x_a before
10 y_a before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
@output1[NR][k1] = v1;
@ -1535,7 +1535,7 @@ NR names output2
10 y_x before
10 y_y before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
break;
@ -1563,7 +1563,7 @@ NR name output1
9 a before
10 a before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
continue;
@ -1631,7 +1631,7 @@ NR name output1
10 x before
10 y before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
break;
@ -1659,7 +1659,7 @@ NR name output1
9 a before
10 a before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
continue;
@ -1727,7 +1727,7 @@ NR name output1
10 x before
10 y before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
if (k1 == "b") {
@ -1818,7 +1818,7 @@ NR names output2
10 a_x 0.502626
10 a_y 0.952618
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
if (k1 == "b") {
@ -2089,7 +2089,7 @@ NR names output2
10 y_x 0.502626
10 y_y 0.952618
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
@output1[NR][k1] = v1;
@ -2210,7 +2210,7 @@ NR names output2
10 x_a before
10 y_a before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
@output1[NR][k1] = v1;
@ -2531,7 +2531,7 @@ NR names output2
10 y_x 0.502626
10 y_y 0.952618
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
if (k1 == "b") {
@ -2585,7 +2585,7 @@ NR names output2
9 a_a before
10 a_a before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
if (k1 == "b") {
@ -2699,7 +2699,7 @@ NR names output2
10 x_a before
10 y_a before
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
if (k1 == "b") {
@ -2793,7 +2793,7 @@ NR names output2
10 a_x 0.502626
10 a_y 0.952618
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
for (k1, v1 in $*) {
@output1[NR][k1] = "before";
if (k1 == "b") {
@ -3073,7 +3073,7 @@ DSL BREAK/CONTINUE IN SINGLE FOR-OOSVAR
---------------------------------------------------------------- single-key tests, direct break/continue
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for (k1, v in @logging[2]) {
@ -3084,7 +3084,7 @@ mlr --opprint --from ./reg_test/input/abixy put -q
}
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for (k1, v in @logging[2]) {
@ -3098,7 +3098,7 @@ mlr --opprint --from ./reg_test/input/abixy put -q
NR output
a eks
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for (k1, v in @logging[2]) {
@ -3109,7 +3109,7 @@ mlr --opprint --from ./reg_test/input/abixy put -q
}
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for (k1, v in @logging[2]) {
@ -3129,7 +3129,7 @@ y 0.5221511083334797
---------------------------------------------------------------- single-key tests, indirect break/continue
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for (k1, v in @logging[2]) {
@ -3145,7 +3145,7 @@ NR output
a eks
b pan
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for (k1, v in @logging[2]) {
@ -3162,7 +3162,7 @@ a eks
b pan
i 2
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for (k1, v in @logging[2]) {
@ -3180,7 +3180,7 @@ b pan
x 0.7586799647899636
y 0.5221511083334797
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for (k1, v in @logging[2]) {
@ -3202,7 +3202,7 @@ y reached
---------------------------------------------------------------- multiple-key tests, direct break/continue
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3213,7 +3213,7 @@ mlr --opprint --from ./reg_test/input/abixy put -q
}
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3227,7 +3227,7 @@ mlr --opprint --from ./reg_test/input/abixy put -q
NR name output
1 a pan
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3238,7 +3238,7 @@ mlr --opprint --from ./reg_test/input/abixy put -q
}
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3303,7 +3303,7 @@ NR name output
---------------------------------------------------------------- multiple-key tests, indirect break/continue
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3337,7 +3337,7 @@ NR name output
4 x 0.38139939387114097
4 y 0.13418874328430463
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3353,7 +3353,7 @@ NR name output
1 a pan
1 b pan
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3388,7 +3388,7 @@ NR name output
4 y 0.13418874328430463
5 a wye
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3405,7 +3405,7 @@ NR name output
1 b pan
1 i 1
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3464,7 +3464,7 @@ NR name output
10 x 0.5026260055412137
10 y 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3518,7 +3518,7 @@ NR name output
10 x 0.5026260055412137
10 y 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3583,7 +3583,7 @@ NR name output
10 x 0.5026260055412137
10 y 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {
@ -3652,7 +3652,7 @@ NR name output
================================================================
DSL BREAK/CONTINUE IN NESTED FOR-OOSVAR
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@logging[NR] = $*;
end {
for ((k1, k2), v in @logging) {

View file

@ -3,7 +3,7 @@
================================================================
DSL COMMENTS
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
$s = 1;
#$t = 2;
$u = 3;
@ -19,7 +19,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,s=1,u=3
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,s=1,u=3
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,s=1,u=3
mlr --from ./reg_test/input/abixy filter
mlr --from ././reg-test/input/abixy filter
NR == 1 ||
#NR == 2 ||
NR == 3
@ -27,7 +27,7 @@ mlr --from ./reg_test/input/abixy filter
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
$s = "here is a pound#sign"; # but this is a comment
#$t = 2;
$u = 3;

View file

@ -389,7 +389,7 @@ mlr: filter expressions must end in a final boolean statement.
---------------------------------------------------------------- expanded filter
mlr --from ./reg_test/input/abixy filter
mlr --from ././reg-test/input/abixy filter
begin {
@avoid = 3
}
@ -405,7 +405,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy filter -x
mlr --from ././reg-test/input/abixy filter -x
begin {
@avoid = 3
}
@ -413,7 +413,7 @@ mlr --from ./reg_test/input/abixy filter -x
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
mlr --from ./reg_test/input/abixy filter
mlr --from ././reg-test/input/abixy filter
func f(n) {
return n - 1
}
@ -421,7 +421,7 @@ mlr --from ./reg_test/input/abixy filter
a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
mlr --from ./reg_test/input/abixy filter
mlr --from ././reg-test/input/abixy filter
subr s(n) {
print "NR is ".n
}
@ -439,7 +439,7 @@ NR is 8
NR is 9
NR is 10
mlr --from ./reg_test/input/abixy filter
mlr --from ././reg-test/input/abixy filter
int a = 5;
int b = 7;
a <= NR && NR <= b
@ -448,9 +448,9 @@ a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
mlr --from ./reg_test/input/abixy filter filter false
mlr --from ././reg-test/input/abixy filter filter false
mlr filter: expressions must not also contain the "filter" keyword.
mlr --from ./reg_test/input/abixy filter filter false; true
mlr --from ././reg-test/input/abixy filter filter false; true
mlr filter: expressions must not also contain the "filter" keyword.

View file

@ -1,5 +1,5 @@
mlr put -v while($i < 5) { $i += 1} ./reg_test/input/abixy
mlr put -v while($i < 5) { $i += 1} ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -41,7 +41,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr put -v do {$i += 1} while($i < 5) ./reg_test/input/abixy
mlr put -v do {$i += 1} while($i < 5) ././reg-test/input/abixy
RAW AST:
AST ROOT:

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/xyz2 --oxtab put
mlr --from ././reg-test/input/xyz2 --oxtab put
a = {1:2, 3:4};
b = {1: {2:3, 4:5}};
@c = {1:2, 3:4};

View file

@ -1,5 +1,5 @@
mlr --opprint put $x > 0.5; $z = "flag" ./reg_test/input/abixy
mlr --opprint put $x > 0.5; $z = "flag" ././reg-test/input/abixy
a b i x y z
pan pan 1 0.3467901443380824 0.7268028627434533 flag
eks pan 2 0.7586799647899636 0.5221511083334797 flag
@ -12,7 +12,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 flag
hat wye 9 0.03144187646093577 0.7495507603507059 flag
pan wye 10 0.5026260055412137 0.9526183602969864 flag
mlr --opprint put !($x > 0.5); $z = "flag" ./reg_test/input/abixy
mlr --opprint put !($x > 0.5); $z = "flag" ././reg-test/input/abixy
a b i x y z
pan pan 1 0.3467901443380824 0.7268028627434533 flag
eks pan 2 0.7586799647899636 0.5221511083334797 flag
@ -25,7 +25,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 flag
hat wye 9 0.03144187646093577 0.7495507603507059 flag
pan wye 10 0.5026260055412137 0.9526183602969864 flag
mlr --opprint put filter $x > 0.5; $z = "flag" ./reg_test/input/abixy
mlr --opprint put filter $x > 0.5; $z = "flag" ././reg-test/input/abixy
a b i x y z
eks pan 2 0.7586799647899636 0.5221511083334797 flag
wye pan 5 0.5732889198020006 0.8636244699032729 flag
@ -34,7 +34,7 @@ eks zee 7 0.6117840605678454 0.1878849191181694 flag
zee wye 8 0.5985540091064224 0.976181385699006 flag
pan wye 10 0.5026260055412137 0.9526183602969864 flag
mlr --opprint put $x > 0.5 {$z = "flag"} ./reg_test/input/abixy
mlr --opprint put $x > 0.5 {$z = "flag"} ././reg-test/input/abixy
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
@ -57,14 +57,14 @@ hat wye 9 0.03144187646093577 0.7495507603507059
a b i x y z
pan wye 10 0.5026260055412137 0.9526183602969864 flag
mlr --opprint put filter !($x > 0.5); $z = "flag" ./reg_test/input/abixy
mlr --opprint put filter !($x > 0.5); $z = "flag" ././reg-test/input/abixy
a b i x y z
pan pan 1 0.3467901443380824 0.7268028627434533 flag
wye wye 3 0.20460330576630303 0.33831852551664776 flag
eks wye 4 0.38139939387114097 0.13418874328430463 flag
hat wye 9 0.03144187646093577 0.7495507603507059 flag
mlr --opprint put !($x > 0.5) {$z = "flag"} ./reg_test/input/abixy
mlr --opprint put !($x > 0.5) {$z = "flag"} ././reg-test/input/abixy
a b i x y z
pan pan 1 0.3467901443380824 0.7268028627434533 flag
@ -91,70 +91,70 @@ pan wye 10 0.5026260055412137 0.9526183602969864
================================================================
DSL SUB/GSUB/REGEX_EXTRACT
mlr --opprint put $y = sub($x, "e.*l", "") ./reg_test/input/sub.dat
mlr --opprint put $y = sub($x, "e.*l", "") ././reg-test/input/sub.dat
x y
hello ho
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = sub($x, "e.*l"i, "") ./reg_test/input/sub.dat
mlr --opprint put $y = sub($x, "e.*l"i, "") ././reg-test/input/sub.dat
x y
hello ho
HELLO HO
world world
WORLD WORLD
mlr --opprint put $y = sub($x, "e.*"."l", "") ./reg_test/input/sub.dat
mlr --opprint put $y = sub($x, "e.*"."l", "") ././reg-test/input/sub.dat
x y
hello ho
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = sub($x, "e.*l", "y123y") ./reg_test/input/sub.dat
mlr --opprint put $y = sub($x, "e.*l", "y123y") ././reg-test/input/sub.dat
x y
hello hy123yo
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = sub($x, "e.*l"i, "y123y") ./reg_test/input/sub.dat
mlr --opprint put $y = sub($x, "e.*l"i, "y123y") ././reg-test/input/sub.dat
x y
hello hy123yo
HELLO Hy123yO
world world
WORLD WORLD
mlr --opprint put $y = sub($x, "e.*"."l", "y123y") ./reg_test/input/sub.dat
mlr --opprint put $y = sub($x, "e.*"."l", "y123y") ././reg-test/input/sub.dat
x y
hello hy123yo
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = sub($x, "([hg])e.*l(.)", "y\1y123\2y") ./reg_test/input/sub.dat
mlr --opprint put $y = sub($x, "([hg])e.*l(.)", "y\1y123\2y") ././reg-test/input/sub.dat
x y
hello yhy123oy
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = sub($x, "([hg])e.*l.", "y\1y123\2y") ./reg_test/input/sub.dat
mlr --opprint put $y = sub($x, "([hg])e.*l.", "y\1y123\2y") ././reg-test/input/sub.dat
x y
hello yhy123y
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = sub($x, "([hg])e.*l(.)", "y\1y123.y") ./reg_test/input/sub.dat
mlr --opprint put $y = sub($x, "([hg])e.*l(.)", "y\1y123.y") ././reg-test/input/sub.dat
x y
hello yhy123.y
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = sub($x, "a", "aa") ./reg_test/input/gsub.dat
mlr --opprint put $y = sub($x, "a", "aa") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg aabcdefg
@ -163,7 +163,7 @@ LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA
mlr --opprint put $y = gsub($x, "a", "aa") ./reg_test/input/gsub.dat
mlr --opprint put $y = gsub($x, "a", "aa") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg aabcdefg
@ -172,7 +172,7 @@ LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA
mlr --opprint put $y = gsub($x, "A", "Aa") ./reg_test/input/gsub.dat
mlr --opprint put $y = gsub($x, "A", "Aa") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg abcdefg
@ -181,7 +181,7 @@ LMNOP LMNOP
ABCDEFG AaBCDEFG
ABABBABBBA AaBAaBBAaBBBAa
mlr --opprint put $y = gsub($x, "a"i, "Aa") ./reg_test/input/gsub.dat
mlr --opprint put $y = gsub($x, "a"i, "Aa") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg Aabcdefg
@ -190,7 +190,7 @@ LMNOP LMNOP
ABCDEFG AaBCDEFG
ABABBABBBA AaBAaBBAaBBBAa
mlr --opprint put $y = gsub($x, "A"i, "Aa") ./reg_test/input/gsub.dat
mlr --opprint put $y = gsub($x, "A"i, "Aa") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg Aabcdefg
@ -199,7 +199,7 @@ LMNOP LMNOP
ABCDEFG AaBCDEFG
ABABBABBBA AaBAaBBAaBBBAa
mlr --opprint put $y = gsub($x, "a(.)", "aa\1\1\1") ./reg_test/input/gsub.dat
mlr --opprint put $y = gsub($x, "a(.)", "aa\1\1\1") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg aabbbcdefg
@ -208,7 +208,7 @@ LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA
mlr --opprint put $y = sub($x, "a", "") ./reg_test/input/gsub.dat
mlr --opprint put $y = sub($x, "a", "") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg bcdefg
@ -217,7 +217,7 @@ LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA
mlr --opprint put $y = gsub($x, "a", "") ./reg_test/input/gsub.dat
mlr --opprint put $y = gsub($x, "a", "") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg bcdefg
@ -226,7 +226,7 @@ LMNOP LMNOP
ABCDEFG ABCDEFG
ABABBABBBA ABABBABBBA
mlr --opprint put $y = gsub($x, "A", "") ./reg_test/input/gsub.dat
mlr --opprint put $y = gsub($x, "A", "") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg abcdefg
@ -235,7 +235,7 @@ LMNOP LMNOP
ABCDEFG BCDEFG
ABABBABBBA BBBBBB
mlr --opprint put $y = gsub($x, "a"i, "") ./reg_test/input/gsub.dat
mlr --opprint put $y = gsub($x, "a"i, "") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg bcdefg
@ -244,7 +244,7 @@ LMNOP LMNOP
ABCDEFG BCDEFG
ABABBABBBA BBBBBB
mlr --opprint put $y = gsub($x, "A"i, "") ./reg_test/input/gsub.dat
mlr --opprint put $y = gsub($x, "A"i, "") ././reg-test/input/gsub.dat
x y
lmnop lmnop
abcdefg bcdefg
@ -253,7 +253,7 @@ LMNOP LMNOP
ABCDEFG BCDEFG
ABABBABBBA BBBBBB
mlr --oxtab cat ./reg_test/input/subtab.dkvp
mlr --oxtab cat ././reg-test/input/subtab.dkvp
x afoob
x a\tb
@ -266,7 +266,7 @@ z
x
mlr --oxtab put -f ./reg_test/input/subtab1.mlr ./reg_test/input/subtab.dkvp
mlr --oxtab put -f ././reg-test/input/subtab1.mlr ././reg-test/input/subtab.dkvp
x afoob
y afoob
@ -284,7 +284,7 @@ z
x
y
mlr --oxtab put -f ./reg_test/input/subtab2.mlr ./reg_test/input/subtab.dkvp
mlr --oxtab put -f ././reg-test/input/subtab2.mlr ././reg-test/input/subtab.dkvp
x afoob
y afoob
@ -302,7 +302,7 @@ z
x
y
mlr --oxtab put -f ./reg_test/input/subtab3.mlr ./reg_test/input/subtab.dkvp
mlr --oxtab put -f ././reg-test/input/subtab3.mlr ././reg-test/input/subtab.dkvp
x afoob
y afoob
@ -320,7 +320,7 @@ z
x
y
mlr --oxtab put -f ./reg_test/input/subtab4.mlr ./reg_test/input/subtab.dkvp
mlr --oxtab put -f ././reg-test/input/subtab4.mlr ././reg-test/input/subtab.dkvp
x afoob
y afoob
@ -338,126 +338,126 @@ z
x
y
mlr --opprint put $y = ssub($x, "HE", "") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "HE", "") ././reg-test/input/sub.dat
x y
hello hello
HELLO LLO
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "HE", "HE") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "HE", "HE") ././reg-test/input/sub.dat
x y
hello hello
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "HE", "12345") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "HE", "12345") ././reg-test/input/sub.dat
x y
hello hello
HELLO 12345LLO
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "LL", "1") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "LL", "1") ././reg-test/input/sub.dat
x y
hello hello
HELLO HE1O
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "LL", "12") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "LL", "12") ././reg-test/input/sub.dat
x y
hello hello
HELLO HE12O
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "LL", "12345") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "LL", "12345") ././reg-test/input/sub.dat
x y
hello hello
HELLO HE12345O
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "LLO", "") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "LLO", "") ././reg-test/input/sub.dat
x y
hello hello
HELLO HE
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "LLO", "12") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "LLO", "12") ././reg-test/input/sub.dat
x y
hello hello
HELLO HE12
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "LLO", "123") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "LLO", "123") ././reg-test/input/sub.dat
x y
hello hello
HELLO HE123
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "LLO", "123456") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "LLO", "123456") ././reg-test/input/sub.dat
x y
hello hello
HELLO HE123456
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "HELLO", "") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "HELLO", "") ././reg-test/input/sub.dat
x y
hello hello
HELLO -
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "HELLO", "1234") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "HELLO", "1234") ././reg-test/input/sub.dat
x y
hello hello
HELLO 1234
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "HELLO", "12345") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "HELLO", "12345") ././reg-test/input/sub.dat
x y
hello hello
HELLO 12345
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "HELLO", "1234678") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "HELLO", "1234678") ././reg-test/input/sub.dat
x y
hello hello
HELLO 1234678
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "nonesuch", "") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "nonesuch", "") ././reg-test/input/sub.dat
x y
hello hello
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "nonesuch", "1234") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "nonesuch", "1234") ././reg-test/input/sub.dat
x y
hello hello
HELLO HELLO
world world
WORLD WORLD
mlr --opprint put $y = ssub($x, "nonesuch", "1234567890") ./reg_test/input/sub.dat
mlr --opprint put $y = ssub($x, "nonesuch", "1234567890") ././reg-test/input/sub.dat
x y
hello hello
HELLO HELLO
world world
WORLD WORLD
mlr --oxtab put $y = regextract($x, "[A-Z]+") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[A-Z]+") ././reg-test/input/sub.dat
x hello
x HELLO
@ -468,7 +468,7 @@ x world
x WORLD
y WORLD
mlr --oxtab put $y = regextract($x, "[A-Z]*") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[A-Z]*") ././reg-test/input/sub.dat
x hello
y
@ -481,7 +481,7 @@ y
x WORLD
y WORLD
mlr --oxtab put $y = regextract($x, "[a-z]+") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[a-z]+") ././reg-test/input/sub.dat
x hello
y hello
@ -492,7 +492,7 @@ y world
x WORLD
mlr --oxtab put $y = regextract($x, "[a-z]*") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[a-z]*") ././reg-test/input/sub.dat
x hello
y hello
@ -505,7 +505,7 @@ y world
x WORLD
y
mlr --oxtab put $y = regextract($x, "[0-9]+") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[0-9]+") ././reg-test/input/sub.dat
x hello
x HELLO
@ -514,7 +514,7 @@ x world
x WORLD
mlr --oxtab put $y = regextract($x, "[0-9]*") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[0-9]*") ././reg-test/input/sub.dat
x hello
y
@ -527,7 +527,7 @@ y
x WORLD
y
mlr --oxtab put $y = regextract($x, "[ef]+") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[ef]+") ././reg-test/input/sub.dat
x hello
y e
@ -537,7 +537,7 @@ x world
x WORLD
mlr --oxtab put $y = regextract($x, "[ef]*") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[ef]*") ././reg-test/input/sub.dat
x hello
y
@ -550,7 +550,7 @@ y
x WORLD
y
mlr --oxtab put $y = regextract($x, "[hi]+") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[hi]+") ././reg-test/input/sub.dat
x hello
y h
@ -560,7 +560,7 @@ x world
x WORLD
mlr --oxtab put $y = regextract($x, "[hi]*") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[hi]*") ././reg-test/input/sub.dat
x hello
y h
@ -573,7 +573,7 @@ y
x WORLD
y
mlr --oxtab put $y = regextract($x, "[op]+") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[op]+") ././reg-test/input/sub.dat
x hello
y o
@ -584,7 +584,7 @@ y o
x WORLD
mlr --oxtab put $y = regextract($x, "[op]*") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract($x, "[op]*") ././reg-test/input/sub.dat
x hello
y
@ -597,7 +597,7 @@ y
x WORLD
y
mlr --oxtab put $y = regextract_or_else($x, "[A-Z]+", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[A-Z]+", "DEFAULT") ././reg-test/input/sub.dat
x hello
y DEFAULT
@ -610,7 +610,7 @@ y DEFAULT
x WORLD
y WORLD
mlr --oxtab put $y = regextract_or_else($x, "[A-Z]*", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[A-Z]*", "DEFAULT") ././reg-test/input/sub.dat
x hello
y
@ -623,7 +623,7 @@ y
x WORLD
y WORLD
mlr --oxtab put $y = regextract_or_else($x, "[a-z]+", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[a-z]+", "DEFAULT") ././reg-test/input/sub.dat
x hello
y hello
@ -636,7 +636,7 @@ y world
x WORLD
y DEFAULT
mlr --oxtab put $y = regextract_or_else($x, "[a-z]*", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[a-z]*", "DEFAULT") ././reg-test/input/sub.dat
x hello
y hello
@ -649,7 +649,7 @@ y world
x WORLD
y
mlr --oxtab put $y = regextract_or_else($x, "[0-9]+", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[0-9]+", "DEFAULT") ././reg-test/input/sub.dat
x hello
y DEFAULT
@ -662,7 +662,7 @@ y DEFAULT
x WORLD
y DEFAULT
mlr --oxtab put $y = regextract_or_else($x, "[0-9]*", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[0-9]*", "DEFAULT") ././reg-test/input/sub.dat
x hello
y
@ -675,7 +675,7 @@ y
x WORLD
y
mlr --oxtab put $y = regextract_or_else($x, "[ef]+", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[ef]+", "DEFAULT") ././reg-test/input/sub.dat
x hello
y e
@ -688,7 +688,7 @@ y DEFAULT
x WORLD
y DEFAULT
mlr --oxtab put $y = regextract_or_else($x, "[ef]*", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[ef]*", "DEFAULT") ././reg-test/input/sub.dat
x hello
y
@ -701,7 +701,7 @@ y
x WORLD
y
mlr --oxtab put $y = regextract_or_else($x, "[hi]+", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[hi]+", "DEFAULT") ././reg-test/input/sub.dat
x hello
y h
@ -714,7 +714,7 @@ y DEFAULT
x WORLD
y DEFAULT
mlr --oxtab put $y = regextract_or_else($x, "[hi]*", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[hi]*", "DEFAULT") ././reg-test/input/sub.dat
x hello
y h
@ -727,7 +727,7 @@ y
x WORLD
y
mlr --oxtab put $y = regextract_or_else($x, "[op]+", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[op]+", "DEFAULT") ././reg-test/input/sub.dat
x hello
y o
@ -740,7 +740,7 @@ y o
x WORLD
y DEFAULT
mlr --oxtab put $y = regextract_or_else($x, "[op]*", "DEFAULT") ./reg_test/input/sub.dat
mlr --oxtab put $y = regextract_or_else($x, "[op]*", "DEFAULT") ././reg-test/input/sub.dat
x hello
y

View file

@ -1,7 +1,7 @@
---------------------------------------------------------------- key-only fors
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
ab = $a . "_" . $b;
xy = $x . "_" . $y;
map o = {};
@ -31,7 +31,7 @@ aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
k is pan_wye
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
ab = $a . "_" . $b;
xy = $x . "_" . $y;
unset @o;
@ -61,7 +61,7 @@ aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
k is pan_wye
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
ab = $a . "_" . $b;
xy = $x . "_" . $y;
for (k in {ab : xy}) {
@ -89,7 +89,7 @@ aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
k is pan_wye
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
func f(a, b, x, y): map {
ab = $a . "_" . $b;
xy = $x . "_" . $y;
@ -122,7 +122,7 @@ a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
---------------------------------------------------------------- key-value fors with scalar values
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
ab = $a . "_" . $b;
xy = $x . "_" . $y;
map o = {};
@ -152,7 +152,7 @@ aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
k is pan_wye v is 0.502626_0.952618
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
ab = $a . "_" . $b;
xy = $x . "_" . $y;
unset @o;
@ -182,7 +182,7 @@ aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
k is pan_wye v is 0.502626_0.952618
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
ab = $a . "_" . $b;
xy = $x . "_" . $y;
for (k, v in {ab : xy}) {
@ -210,7 +210,7 @@ aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
k is pan_wye v is 0.502626_0.952618
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
func f(a, b, x, y): map {
ab = $a . "_" . $b;
xy = $x . "_" . $y;
@ -243,7 +243,7 @@ a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
---------------------------------------------------------------- key-value fors with map values
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
ab = $a . "_" . $b;
xy = $x . "_" . $y;
map o = {};
@ -304,7 +304,7 @@ k is pan_wye v is
}
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
ab = $a . "_" . $b;
xy = $x . "_" . $y;
unset @o;
@ -365,7 +365,7 @@ k is pan_wye v is
}
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
ab = $a . "_" . $b;
xy = $x . "_" . $y;
for (k, v in {ab : {"foo": xy}}) {
@ -424,7 +424,7 @@ k is pan_wye v is
}
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy-het put
mlr --from ././reg-test/input/abixy-het put
func f(a, b, x, y): map {
ab = $a . "_" . $b;
xy = $x . "_" . $y;

View file

@ -1,7 +1,7 @@
---------------------------------------------------------------- for full oosvar
mlr --from ./reg_test/input/abixy put @o[1][2] = 7; for(k1,v in @*) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put @o[1][2] = 7; for(k1,v in @*) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -13,7 +13,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put @o[1][2] = 7; for((k1),v in @*) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put @o[1][2] = 7; for((k1),v in @*) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -25,7 +25,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put @o[1][2] = 7; for((k1,k2),v in @*) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put @o[1][2] = 7; for((k1,k2),v in @*) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -37,7 +37,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put @o[1][2] = 7; for((k1,k2,k3),v in @*) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put @o[1][2] = 7; for((k1,k2,k3),v in @*) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -51,7 +51,7 @@ a=pan,b=wye,i=10,x=10.502626,y=100.952618
---------------------------------------------------------------- for oosvar submap
mlr --from ./reg_test/input/abixy put @o[1][2][3] = 7; for(k1,v in @o[1][2]) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put @o[1][2][3] = 7; for(k1,v in @o[1][2]) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -63,7 +63,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put @o[1][2][3] = 7; for((k1),v in @o[1][2]) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put @o[1][2][3] = 7; for((k1),v in @o[1][2]) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -75,7 +75,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put @o[1][2][3] = 7; for((k1,k2),v in @o[1][2]) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put @o[1][2][3] = 7; for((k1,k2),v in @o[1][2]) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -87,7 +87,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put @o[1][2][3] = 7; for((k1,k2,k3),v in @o[1][2]) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put @o[1][2][3] = 7; for((k1,k2,k3),v in @o[1][2]) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -101,7 +101,7 @@ a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
---------------------------------------------------------------- for local
mlr --from ./reg_test/input/abixy put o[1][2] = 7; for(k1,v in o) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put o[1][2] = 7; for(k1,v in o) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -113,7 +113,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put o[1][2] = 7; for((k1),v in o) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put o[1][2] = 7; for((k1),v in o) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -125,7 +125,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put o[1][2] = 7; for((k1,k2),v in o) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put o[1][2] = 7; for((k1,k2),v in o) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -137,7 +137,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put o[1][2] = 7; for((k1,k2,k3),v in o) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put o[1][2] = 7; for((k1,k2,k3),v in o) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -151,7 +151,7 @@ a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
---------------------------------------------------------------- for map-literal
mlr --from ./reg_test/input/abixy put for(k1,v in {1:{2:7}}) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put for(k1,v in {1:{2:7}}) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -163,7 +163,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put for((k1),v in {1:{2:7}}) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put for((k1),v in {1:{2:7}}) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -175,7 +175,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put for((k1,k2),v in {1:{2:7}}) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put for((k1,k2),v in {1:{2:7}}) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=10.346790,y=100.726803
a=eks,b=pan,i=2,x=10.758680,y=100.522151
a=wye,b=wye,i=3,x=10.204603,y=100.338319
@ -187,7 +187,7 @@ a=zee,b=wye,i=8,x=10.598554,y=100.976181
a=hat,b=wye,i=9,x=10.031442,y=100.749551
a=pan,b=wye,i=10,x=10.502626,y=100.952618
mlr --from ./reg_test/input/abixy put for((k1,k2,k3),v in {1:{2:7}}) {$x+=10;$y+=100}
mlr --from ././reg-test/input/abixy put for((k1,k2,k3),v in {1:{2:7}}) {$x+=10;$y+=100}
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776

View file

@ -137,7 +137,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
text="v", type=NONINDEXED_LOCAL_VARIABLE. vardef_subframe_relative_index=2 vardef_subframe_index=1 vardef_frame_relative_index=3
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@o[1][1]["text1"][NR] = $a;
@o[1][2]["text2"][NR] = $b;
@o[1][2][$a][$i*100] = $x;
@ -170,7 +170,7 @@ a b c d n
3 4 10 text2 wye
3 4 1000 pan 0.502626
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@sum[$a][$b] += $x;
@count[$a][$b] += 1;
end {
@ -218,7 +218,7 @@ zee pan 0.527126
zee wye 0.598554
hat wye 0.031442
mlr --opprint --from ./reg_test/input/abixy-wide put -q
mlr --opprint --from ././reg-test/input/abixy-wide put -q
@value["sum"][$a][$b] += $x;
@value["count"][$a][$b] += 1;
end {
@ -472,27 +472,27 @@ text="block", type=STATEMENT_BLOCK:
text="for_full_oosvar_block", type=STATEMENT_BLOCK:
mlr: redefinition of variable c in the same scope.
mlr --from ./reg_test/input/xyz2 put -q func f() { return {"a"."b":"c"."d",3:4}}; for (k,v in f()){print "k=".k.",v=".v}
mlr --from ././reg-test/input/xyz2 put -q func f() { return {"a"."b":"c"."d",3:4}}; for (k,v in f()){print "k=".k.",v=".v}
k=ab,v=cd
k=3,v=4
k=ab,v=cd
k=3,v=4
mlr --from ./reg_test/input/xyz2 put -q for (k,v in {"a"."b":"c"."d",3:"c"}) {print "k=".k.",v=".v}
mlr --from ././reg-test/input/xyz2 put -q for (k,v in {"a"."b":"c"."d",3:"c"}) {print "k=".k.",v=".v}
k=ab,v=cd
k=3,v=c
k=ab,v=cd
k=3,v=c
mlr --from ./reg_test/input/xyz2 put -q o["a"."b"]="c"."d"; for (k,v in o) {print "k=".k.",v=".v}
mlr --from ././reg-test/input/xyz2 put -q o["a"."b"]="c"."d"; for (k,v in o) {print "k=".k.",v=".v}
k=ab,v=cd
k=ab,v=cd
mlr --from ./reg_test/input/xyz2 put -q @o["a"."b"]="c"."d"; for (k,v in @o) {print "k=".k.",v=".v}
mlr --from ././reg-test/input/xyz2 put -q @o["a"."b"]="c"."d"; for (k,v in @o) {print "k=".k.",v=".v}
k=ab,v=cd
k=ab,v=cd
mlr --from ./reg_test/input/xyz2 put for (k in $*) { print k}
mlr --from ././reg-test/input/xyz2 put for (k in $*) { print k}
x
y
z
@ -502,7 +502,7 @@ y
u
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put m=$*; for (k in m) { print k}
mlr --from ././reg-test/input/xyz2 put m=$*; for (k in m) { print k}
x
y
z

View file

@ -1,7 +1,7 @@
---------------------------------------------------------------- empty for-srec
mlr --from ./reg_test/input/abixy put -v for(k,v in $*) { }
mlr --from ././reg-test/input/abixy put -v for(k,v in $*) { }
RAW AST:
AST ROOT:
@ -35,7 +35,7 @@ a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
---------------------------------------------------------------- for-srec without boundvars
mlr --from ./reg_test/input/abixy put -v for(k,v in $*) {$nr= NR}
mlr --from ././reg-test/input/abixy put -v for(k,v in $*) {$nr= NR}
RAW AST:
AST ROOT:
@ -75,7 +75,7 @@ a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,nr=10
---------------------------------------------------------------- for-srec modifying the srec
mlr --from ./reg_test/input/abixy put -v for(k,v in $*) {unset $[k]}; $j = NR
mlr --from ././reg-test/input/abixy put -v for(k,v in $*) {unset $[k]}; $j = NR
RAW AST:
AST ROOT:
@ -119,7 +119,7 @@ j=8
j=9
j=10
mlr --from ./reg_test/input/abixy put -v for(k,v in $*) {if (k != "x") {unset $[k]}}; $j = NR
mlr --from ././reg-test/input/abixy put -v for(k,v in $*) {if (k != "x") {unset $[k]}}; $j = NR
RAW AST:
AST ROOT:
@ -175,7 +175,7 @@ x=0.5985540091064224,j=8
x=0.03144187646093577,j=9
x=0.5026260055412137,j=10
mlr --from ./reg_test/input/abixy --opprint put -S -v for(k,v in $*) {$[k."_orig"]=v; $[k] = "other"}
mlr --from ././reg-test/input/abixy --opprint put -S -v for(k,v in $*) {$[k."_orig"]=v; $[k] = "other"}
RAW AST:
AST ROOT:
@ -224,7 +224,7 @@ other other other other other zee wye 8 0.5985540091064224 0.9761813
other other other other other hat wye 9 0.03144187646093577 0.7495507603507059
other other other other other pan wye 10 0.5026260055412137 0.9526183602969864
mlr --from ./reg_test/input/abixy put -S -v for(k,v in $*) {$[v]=k}
mlr --from ././reg-test/input/abixy put -S -v for(k,v in $*) {$[v]=k}
RAW AST:
AST ROOT:
@ -262,7 +262,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,zee=a,wye=b,8=i,0.59855
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,hat=a,wye=b,9=i,0.03144187646093577=x,0.7495507603507059=y
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,pan=a,wye=b,10=i,0.5026260055412137=x,0.9526183602969864=y
mlr --from ./reg_test/input/abixy put -v
mlr --from ././reg-test/input/abixy put -v
$sum = 0;
for(k,v in $*) {
if (k =~ "^[xy]$") {
@ -330,7 +330,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,sum=1.574735
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,sum=0.780993
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,sum=1.455244
mlr --from ./reg_test/input/abixy put -S -v
mlr --from ././reg-test/input/abixy put -S -v
$sum = float(0);
for(k,v in $*) {
if (k =~ "^[xy]$") {

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
for (int i = 0; i < $i; i += 1) {
$c = i * 10;
}
@ -15,14 +15,14 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,c=70
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,c=80
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,c=90
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
for (float i = 0; i < $i; i += 1) {
$c = i * 10;
}
mlr: float type assertion for variable i unmet by value 0 with type int.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
for (int i = 0; i < $i; i += 1) {
i += 2;
$c = i;
@ -39,7 +39,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,c=8
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,c=8
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,c=11
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
for (int i = 0; i < $i; i += 1) {
i += 1.5;
$c = i;
@ -47,7 +47,7 @@ mlr --from ./reg_test/input/abixy put
mlr: int type assertion for variable i unmet by value 1.500000 with type float.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
for (int i = 0; i < $i; i += 1) {
i += 1.0;
$c = i;
@ -55,7 +55,7 @@ mlr --from ./reg_test/input/abixy put
mlr: int type assertion for variable i unmet by value 1.000000 with type float.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
for (num i = 0; i < $i; i += 1) {
i += 1.0;
$c = i;

View file

@ -1,5 +1,5 @@
mlr put -f ./reg_test/input/put-example.dsl ./reg_test/input/abixy
mlr put -f ././reg-test/input/put-example.dsl ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,xy=0.252048,ab=panpan
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,xy=0.396146,ab=ekspan
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,xy=0.069221,ab=wyewye
@ -11,7 +11,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,xy=0.584297,ab=zeewye
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,xy=0.023567,ab=hatwye
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,xy=0.478811,ab=panwye
mlr filter -f ./reg_test/input/filter-example.dsl ./reg_test/input/abixy
mlr filter -f ././reg-test/input/filter-example.dsl ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
@ -19,7 +19,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put -f ./reg_test/input/put-example.dsl
mlr --from ././reg-test/input/abixy put -f ././reg-test/input/put-example.dsl
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,xy=0.252048,ab=panpan
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,xy=0.396146,ab=ekspan
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,xy=0.069221,ab=wyewye
@ -31,7 +31,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,xy=0.584297,ab=zeewye
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,xy=0.023567,ab=hatwye
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,xy=0.478811,ab=panwye
mlr --from ./reg_test/input/abixy filter -f ./reg_test/input/filter-example.dsl
mlr --from ././reg-test/input/abixy filter -f ././reg-test/input/filter-example.dsl
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
@ -39,7 +39,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy --from ./reg_test/input/abixy-het put -f ./reg_test/input/put-example.dsl
mlr --from ././reg-test/input/abixy --from ././reg-test/input/abixy-het put -f ././reg-test/input/put-example.dsl
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,xy=0.252048,ab=panpan
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,xy=0.396146,ab=ekspan
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,xy=0.069221,ab=wyewye
@ -61,7 +61,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,xy=0.598554,ab=zeewye
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,xy=0.023567
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,xy=0.478811,ab=panwye
mlr --from ./reg_test/input/abixy --from ./reg_test/input/abixy-het filter -f ./reg_test/input/filter-example.dsl
mlr --from ././reg-test/input/abixy --from ././reg-test/input/abixy-het filter -f ././reg-test/input/filter-example.dsl
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729

View file

@ -1,5 +1,5 @@
mlr filter $x>.3 ./reg_test/input/abixy
mlr filter $x>.3 ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
@ -9,7 +9,7 @@ a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr filter $x>.3; ./reg_test/input/abixy
mlr filter $x>.3; ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
@ -19,7 +19,7 @@ a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr filter $x>0.3 ./reg_test/input/abixy
mlr filter $x>0.3 ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
@ -29,7 +29,7 @@ a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr filter $x>0.3 && $y>0.3 ./reg_test/input/abixy
mlr filter $x>0.3 && $y>0.3 ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
@ -37,7 +37,7 @@ a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr filter $x>0.3 || $y>0.3 ./reg_test/input/abixy
mlr filter $x>0.3 || $y>0.3 ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -49,29 +49,29 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr filter NR>=4 && NR <= 7 ./reg_test/input/abixy
mlr filter NR>=4 && NR <= 7 ././reg-test/input/abixy
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
mlr filter -x $x>.3 ./reg_test/input/abixy
mlr filter -x $x>.3 ././reg-test/input/abixy
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
mlr filter -x $x>0.3 ./reg_test/input/abixy
mlr filter -x $x>0.3 ././reg-test/input/abixy
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
mlr filter -x $x>0.3 && $y>0.3 ./reg_test/input/abixy
mlr filter -x $x>0.3 && $y>0.3 ././reg-test/input/abixy
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
mlr filter -x $x>0.3 || $y>0.3 ./reg_test/input/abixy
mlr filter -x $x>0.3 || $y>0.3 ././reg-test/input/abixy
mlr filter -x NR>=4 && NR <= 7 ./reg_test/input/abixy
mlr filter -x NR>=4 && NR <= 7 ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -79,9 +79,9 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr filter $nosuchfield>.3 ./reg_test/input/abixy
mlr filter $nosuchfield>.3 ././reg-test/input/abixy
mlr put $x2 = $x**2 ./reg_test/input/abixy
mlr put $x2 = $x**2 ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x2=0.120263
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x2=0.575595
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,x2=0.041863
@ -93,7 +93,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,x2=0.358267
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,x2=0.000989
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x2=0.252633
mlr put $x2 = $x**2; ./reg_test/input/abixy
mlr put $x2 = $x**2; ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x2=0.120263
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x2=0.575595
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,x2=0.041863
@ -105,7 +105,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,x2=0.358267
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,x2=0.000989
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x2=0.252633
mlr put $z = -0.024*$x+0.13 ./reg_test/input/abixy
mlr put $z = -0.024*$x+0.13 ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,z=0.121677
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,z=0.111792
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,z=0.125090
@ -117,7 +117,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,z=0.115635
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,z=0.129245
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,z=0.117937
mlr put $c = $a . $b ./reg_test/input/abixy
mlr put $c = $a . $b ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,c=panpan
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,c=ekspan
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,c=wyewye
@ -129,7 +129,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,c=zeewye
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,c=hatwye
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,c=panwye
mlr put $ii = $i + $i ./reg_test/input/abixy
mlr put $ii = $i + $i ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,ii=2
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,ii=4
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,ii=6
@ -141,7 +141,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,ii=16
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,ii=18
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,ii=20
mlr put $emptytest = $i + $nosuch ./reg_test/input/abixy
mlr put $emptytest = $i + $nosuch ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,emptytest=1
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,emptytest=2
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,emptytest=3
@ -153,7 +153,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,emptytest=8
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,emptytest=9
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,emptytest=10
mlr --opprint put $nr=NR;$fnr=FNR;$nf=NF;$filenum=FILENUM ./reg_test/input/abixy ./reg_test/input/abixy
mlr --opprint put $nr=NR;$fnr=FNR;$nf=NF;$filenum=FILENUM ././reg-test/input/abixy ././reg-test/input/abixy
a b i x y nr fnr nf filenum
pan pan 1 0.3467901443380824 0.7268028627434533 1 1 7 1
eks pan 2 0.7586799647899636 0.5221511083334797 2 2 7 1
@ -176,7 +176,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 18 8 7 2
hat wye 9 0.03144187646093577 0.7495507603507059 19 9 7 2
pan wye 10 0.5026260055412137 0.9526183602969864 20 10 7 2
mlr --opprint put $y=madd($x,10,37) then put $z=msub($x,10,37) ./reg_test/input/modarith.dat
mlr --opprint put $y=madd($x,10,37) then put $z=msub($x,10,37) ././reg-test/input/modarith.dat
x y z
-37 10 27
-36 11 28
@ -290,7 +290,7 @@ x y z
72 8 25
73 9 26
mlr --opprint put $y=mexp($x,35,37) then put $z=mmul($x,$y,37) ./reg_test/input/modarith.dat
mlr --opprint put $y=mexp($x,35,37) then put $z=mmul($x,$y,37) ././reg-test/input/modarith.dat
x y z
-37 0 0
-36 1 1
@ -404,7 +404,7 @@ x y z
72 18 1
73 36 1
mlr put $z=min($x, $y) ./reg_test/input/minmax.dkvp
mlr put $z=min($x, $y) ././reg-test/input/minmax.dkvp
x=1,y=2,z=1
x=1,y=,z=1
x=,y=,z=
@ -414,7 +414,7 @@ x=3,y=,z=3
x=,y=,z=
x=,y=2,z=2
mlr put $z=max($x, $y) ./reg_test/input/minmax.dkvp
mlr put $z=max($x, $y) ././reg-test/input/minmax.dkvp
x=1,y=2,z=2
x=1,y=,z=1
x=,y=,z=
@ -457,7 +457,7 @@ x=a,y=2,u=2,v=a
mlr put $u=min($x,$y);$v=max($x,$y)
x=a,y=b,u=a,v=b
mlr --icsvlite --oxtab put ${x+y} = ${name.x} + ${name.y}; ${x*y} = ${name.x} * ${name.y} ./reg_test/input/braced.csv
mlr --icsvlite --oxtab put ${x+y} = ${name.x} + ${name.y}; ${x*y} = ${name.x} * ${name.y} ././reg-test/input/braced.csv
name.x 1
name.y 2
z 3
@ -470,12 +470,12 @@ z 5
x+y 10
x*y 24
mlr --icsvlite --oxtab filter ${name.y} < ${z} ./reg_test/input/braced.csv
mlr --icsvlite --oxtab filter ${name.y} < ${z} ././reg-test/input/braced.csv
name.x 1
name.y 2
z 3
mlr --opprint put $z = $x < 0.5 ? 0 : 1 ./reg_test/input/abixy
mlr --opprint put $z = $x < 0.5 ? 0 : 1 ././reg-test/input/abixy
a b i x y z
pan pan 1 0.3467901443380824 0.7268028627434533 0
eks pan 2 0.7586799647899636 0.5221511083334797 1
@ -488,53 +488,53 @@ zee wye 8 0.5985540091064224 0.976181385699006 1
hat wye 9 0.03144187646093577 0.7495507603507059 0
pan wye 10 0.5026260055412137 0.9526183602969864 1
mlr --csvlite filter true && true ./reg_test/input/b.csv
mlr --csvlite filter true && true ././reg-test/input/b.csv
d,e,f
5,6,7
mlr --csvlite filter true && false ./reg_test/input/b.csv
mlr --csvlite filter true && false ././reg-test/input/b.csv
mlr --csvlite filter false && true ./reg_test/input/b.csv
mlr --csvlite filter false && true ././reg-test/input/b.csv
mlr --csvlite filter false && false ./reg_test/input/b.csv
mlr --csvlite filter false && false ././reg-test/input/b.csv
mlr --csvlite filter true || true ./reg_test/input/b.csv
mlr --csvlite filter true || true ././reg-test/input/b.csv
d,e,f
5,6,7
mlr --csvlite filter true || false ./reg_test/input/b.csv
mlr --csvlite filter true || false ././reg-test/input/b.csv
d,e,f
5,6,7
mlr --csvlite filter false || true ./reg_test/input/b.csv
mlr --csvlite filter false || true ././reg-test/input/b.csv
d,e,f
5,6,7
mlr --csvlite filter false || false ./reg_test/input/b.csv
mlr --csvlite filter false || false ././reg-test/input/b.csv
mlr --csvlite filter true ^^ true ./reg_test/input/b.csv
mlr --csvlite filter true ^^ true ././reg-test/input/b.csv
mlr --csvlite filter true ^^ false ./reg_test/input/b.csv
mlr --csvlite filter true ^^ false ././reg-test/input/b.csv
d,e,f
5,6,7
mlr --csvlite filter false ^^ true ./reg_test/input/b.csv
mlr --csvlite filter false ^^ true ././reg-test/input/b.csv
d,e,f
5,6,7
mlr --csvlite filter false ^^ false ./reg_test/input/b.csv
mlr --csvlite filter false ^^ false ././reg-test/input/b.csv
mlr put $x==2 && $a =~ "....." { $y=4 } ./reg_test/input/short-circuit.dkvp
mlr put $x==2 && $a =~ "....." { $y=4 } ././reg-test/input/short-circuit.dkvp
x=1,a="hello"
x=2,a="there",y=4
x=3,a="world"
mlr put $x = ENV["X"]; $y = ENV[$name] ./reg_test/input/env-var.dkvp
mlr put $x = ENV["X"]; $y = ENV[$name] ././reg-test/input/env-var.dkvp
name=X,x=97,y=97
name=Y,x=97,y=98
x=97,y=6
mlr put $x = ENV["X"]; $y = ENV[$name] ./reg_test/input/env-var.dkvp
mlr put $x = ENV["X"]; $y = ENV[$name] ././reg-test/input/env-var.dkvp
name=X,x=,y=
name=Y,x=,y=
x=,y=6
@ -580,7 +580,7 @@ x=hello
---------------------------------------------------------------- LHS value on first record should result in ZYX for process creation
mlr --from ./reg_test/input/abixy put -q ENV["ZYX"]="CBA".NR; print | ENV["indir"]."/env-assign.sh" , "a is " . $a
mlr --from ././reg-test/input/abixy put -q ENV["ZYX"]="CBA".NR; print | ENV["indir"]."/env-assign.sh" , "a is " . $a
[ZYX]=[CBA1] a is pan
[ZYX]=[CBA1] a is eks
[ZYX]=[CBA1] a is wye

View file

@ -1,5 +1,5 @@
mlr --csvlite put $gmt = sec2gmt($sec) ./reg_test/input/sec2gmt
mlr --csvlite put $gmt = sec2gmt($sec) ././reg-test/input/sec2gmt
n,sec,gmt
1,0,1970-01-01T00:00:00Z
2,1,1970-01-01T00:00:01Z
@ -27,7 +27,7 @@ n,sec,gmt
24,x,x
25,123x,123x
mlr --csvlite put $gmt = sec2gmt($sec,1) ./reg_test/input/sec2gmt
mlr --csvlite put $gmt = sec2gmt($sec,1) ././reg-test/input/sec2gmt
n,sec,gmt
1,0,1970-01-01T00:00:00.0Z
2,1,1970-01-01T00:00:01.0Z
@ -55,7 +55,7 @@ n,sec,gmt
24,x,x
25,123x,123x
mlr --csvlite put $gmt = sec2gmt($sec,3) ./reg_test/input/sec2gmt
mlr --csvlite put $gmt = sec2gmt($sec,3) ././reg-test/input/sec2gmt
n,sec,gmt
1,0,1970-01-01T00:00:00.000Z
2,1,1970-01-01T00:00:01.000Z
@ -83,7 +83,7 @@ n,sec,gmt
24,x,x
25,123x,123x
mlr --csvlite put $gmt = sec2gmt($sec,6) ./reg_test/input/sec2gmt
mlr --csvlite put $gmt = sec2gmt($sec,6) ././reg-test/input/sec2gmt
n,sec,gmt
1,0,1970-01-01T00:00:00.000000Z
2,1,1970-01-01T00:00:01.000000Z
@ -111,7 +111,7 @@ n,sec,gmt
24,x,x
25,123x,123x
mlr --csvlite put $sec = gmt2sec($gmt) ./reg_test/input/gmt2sec
mlr --csvlite put $sec = gmt2sec($gmt) ././reg-test/input/gmt2sec
gmt,sec
1970-01-01T00:00:00Z,0.000000
1970-01-01T00:00:00.Z,0.000000
@ -142,7 +142,7 @@ gmt,sec
2033-05-18T03:33:20Z,2000000000.000000
2033-05-18T03:33:20.999999Z,2000000000.999999
mlr --csvlite put $gmtdate = sec2gmtdate($sec) ./reg_test/input/sec2gmt
mlr --csvlite put $gmtdate = sec2gmtdate($sec) ././reg-test/input/sec2gmt
n,sec,gmtdate
1,0,1970-01-01
2,1,1970-01-01
@ -170,7 +170,7 @@ n,sec,gmtdate
24,x,x
25,123x,123x
mlr --icsv --opprint put $gmt = strftime($sec, "%Y-%m-%dT%H:%M:%SZ") ./reg_test/input/sec2gmt
mlr --icsv --opprint put $gmt = strftime($sec, "%Y-%m-%dT%H:%M:%SZ") ././reg-test/input/sec2gmt
n sec gmt
1 0 1970-01-01T00:00:00Z
2 1 1970-01-01T00:00:01Z
@ -198,7 +198,7 @@ n sec gmt
24 x (error)
25 123x (error)
mlr --icsv --opprint put $gmt = strftime($sec, "%Y-%m-%dT%H:%M:%1SZ") ./reg_test/input/sec2gmt
mlr --icsv --opprint put $gmt = strftime($sec, "%Y-%m-%dT%H:%M:%1SZ") ././reg-test/input/sec2gmt
n sec gmt
1 0 1970-01-01T00:00:00.0Z
2 1 1970-01-01T00:00:01.0Z
@ -226,7 +226,7 @@ n sec gmt
24 x (error)
25 123x (error)
mlr --icsv --opprint put $gmt = strftime($sec, "%Y-%m-%dT%H:%M:%3SZ") ./reg_test/input/sec2gmt
mlr --icsv --opprint put $gmt = strftime($sec, "%Y-%m-%dT%H:%M:%3SZ") ././reg-test/input/sec2gmt
n sec gmt
1 0 1970-01-01T00:00:00.000Z
2 1 1970-01-01T00:00:01.000Z
@ -254,7 +254,7 @@ n sec gmt
24 x (error)
25 123x (error)
mlr --icsv --opprint put $gmt = strftime($sec, "%Y-%m-%dT%H:%M:%6SZ") ./reg_test/input/sec2gmt
mlr --icsv --opprint put $gmt = strftime($sec, "%Y-%m-%dT%H:%M:%6SZ") ././reg-test/input/sec2gmt
n sec gmt
1 0 1970-01-01T00:00:00.000000Z
2 1 1970-01-01T00:00:01.000000Z
@ -282,7 +282,7 @@ n sec gmt
24 x (error)
25 123x (error)
mlr --icsv --opprint put $sec = strptime($gmt, "%Y-%m-%dT%H:%M:%SZ") ./reg_test/input/gmt2sec
mlr --icsv --opprint put $sec = strptime($gmt, "%Y-%m-%dT%H:%M:%SZ") ././reg-test/input/gmt2sec
gmt sec
1970-01-01T00:00:00Z 0.000000
1970-01-01T00:00:00.Z 0.000000
@ -313,7 +313,7 @@ gmt sec
2033-05-18T03:33:20Z 2000000000.000000
2033-05-18T03:33:20.999999Z 2000000000.999999
mlr --csvlite sec2gmt sec ./reg_test/input/sec2gmt
mlr --csvlite sec2gmt sec ././reg-test/input/sec2gmt
n,sec
1,1970-01-01T00:00:00Z
2,1970-01-01T00:00:01Z
@ -341,7 +341,7 @@ n,sec
24,x
25,123x
mlr --opprint put $hms=sec2hms($sec); $resec=hms2sec($hms); $diff=$resec-$sec ./reg_test/input/sec2xhms
mlr --opprint put $hms=sec2hms($sec); $resec=hms2sec($hms); $diff=$resec-$sec ././reg-test/input/sec2xhms
sec hms resec diff
0 00:00:00 0 0
1 00:00:01 1 0
@ -371,7 +371,7 @@ sec hms resec diff
-864000 -240:00:00 -864000 0
-864001 -240:00:01 -864001 0
mlr --opprint put $hms=fsec2hms($sec); $resec=hms2fsec($hms); $diff=$resec-$sec ./reg_test/input/fsec2xhms
mlr --opprint put $hms=fsec2hms($sec); $resec=hms2fsec($hms); $diff=$resec-$sec ././reg-test/input/fsec2xhms
sec hms resec diff
0.25 0:00:00.250000 0.250000 0.000000
1.25 0:00:01.250000 1.250000 0.000000
@ -402,7 +402,7 @@ sec hms resec diff
-864000.25 -240:00:00.250000 -864000.250000 0.000000
-864001.25 -240:00:01.250000 -864001.250000 0.000000
mlr --opprint put $hms=sec2dhms($sec); $resec=dhms2sec($hms); $diff=$resec-$sec ./reg_test/input/sec2xhms
mlr --opprint put $hms=sec2dhms($sec); $resec=dhms2sec($hms); $diff=$resec-$sec ././reg-test/input/sec2xhms
sec hms resec diff
0 0s 0 0
1 1s 1 0
@ -432,7 +432,7 @@ sec hms resec diff
-864000 -10d00h00m00s -864000 0
-864001 -10d00h00m01s -864001 0
mlr --opprint put $hms=fsec2dhms($sec); $resec=dhms2fsec($hms); $diff=$resec-$sec ./reg_test/input/fsec2xhms
mlr --opprint put $hms=fsec2dhms($sec); $resec=dhms2fsec($hms); $diff=$resec-$sec ././reg-test/input/fsec2xhms
sec hms resec diff
0.25 0.250000s 0.250000 0.000000
1.25 1.250000s 1.250000 0.000000
@ -463,7 +463,7 @@ sec hms resec diff
-864000.25 -10d00h00m00.250000s -864000.250000 0.000000
-864001.25 -10d00h00m01.250000s -864001.250000 0.000000
mlr --csvlite sec2gmt sec ./reg_test/input/sec2gmt
mlr --csvlite sec2gmt sec ././reg-test/input/sec2gmt
n,sec
1,1970-01-01T00:00:00Z
2,1970-01-01T00:00:01Z
@ -491,7 +491,7 @@ n,sec
24,x
25,123x
mlr --csvlite sec2gmtdate sec ./reg_test/input/sec2gmt
mlr --csvlite sec2gmtdate sec ././reg-test/input/sec2gmt
n,sec
1,1970-01-01
2,1970-01-01

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy-het put $haskeya = haskey($*, "a")
mlr --from ././reg-test/input/abixy-het put $haskeya = haskey($*, "a")
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,haskeya=true
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,haskeya=true
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,haskeya=false
@ -11,7 +11,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,haskeya=true
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,haskeya=false
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,haskeya=true
mlr --from ./reg_test/input/abixy-het put $haskey3 = haskey($*, 3)
mlr --from ././reg-test/input/abixy-het put $haskey3 = haskey($*, 3)
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,haskey3=false
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,haskey3=false
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,haskey3=false
@ -23,51 +23,51 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,haskey3=false
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,haskey3=false
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,haskey3=false
mlr --from ./reg_test/input/xyz2 put $haskeya = haskey({3:4}, "a")
mlr --from ././reg-test/input/xyz2 put $haskeya = haskey({3:4}, "a")
x=3,y=4,z=5,haskeya=false
x=6,y=7,u=8,haskeya=false
mlr --from ./reg_test/input/xyz2 put $haskey3 = haskey({3:4}, 3)
mlr --from ././reg-test/input/xyz2 put $haskey3 = haskey({3:4}, 3)
x=3,y=4,z=5,haskey3=true
x=6,y=7,u=8,haskey3=true
mlr --from ./reg_test/input/xyz2 put $haskey3 = haskey({3:4}, 4)
mlr --from ././reg-test/input/xyz2 put $haskey3 = haskey({3:4}, 4)
x=3,y=4,z=5,haskey3=false
x=6,y=7,u=8,haskey3=false
mlr --from ./reg_test/input/xyz2 put o = {3:4}; $haskeya = haskey(o, "a")
mlr --from ././reg-test/input/xyz2 put o = {3:4}; $haskeya = haskey(o, "a")
x=3,y=4,z=5,haskeya=false
x=6,y=7,u=8,haskeya=false
mlr --from ./reg_test/input/xyz2 put o = {3:4}; $haskey3 = haskey(o, 3)
mlr --from ././reg-test/input/xyz2 put o = {3:4}; $haskey3 = haskey(o, 3)
x=3,y=4,z=5,haskey3=true
x=6,y=7,u=8,haskey3=true
mlr --from ./reg_test/input/xyz2 put o = {3:4}; $haskey3 = haskey(o, 4)
mlr --from ././reg-test/input/xyz2 put o = {3:4}; $haskey3 = haskey(o, 4)
x=3,y=4,z=5,haskey3=false
x=6,y=7,u=8,haskey3=false
mlr --from ./reg_test/input/xyz2 put @o = {3:4}; $haskeya = haskey(@o, "a")
mlr --from ././reg-test/input/xyz2 put @o = {3:4}; $haskeya = haskey(@o, "a")
x=3,y=4,z=5,haskeya=false
x=6,y=7,u=8,haskeya=false
mlr --from ./reg_test/input/xyz2 put @o = {3:4}; $haskey3 = haskey(@o, 3)
mlr --from ././reg-test/input/xyz2 put @o = {3:4}; $haskey3 = haskey(@o, 3)
x=3,y=4,z=5,haskey3=true
x=6,y=7,u=8,haskey3=true
mlr --from ./reg_test/input/xyz2 put @o = {3:4}; $haskey3 = haskey(@o, 4)
mlr --from ././reg-test/input/xyz2 put @o = {3:4}; $haskey3 = haskey(@o, 4)
x=3,y=4,z=5,haskey3=false
x=6,y=7,u=8,haskey3=false
mlr --from ./reg_test/input/xyz2 put o = "3:4"; $haskeya = haskey(@o, "a")
mlr --from ././reg-test/input/xyz2 put o = "3:4"; $haskeya = haskey(@o, "a")
x=3,y=4,z=5,haskeya=(error)
x=6,y=7,u=8,haskeya=(error)
mlr --from ./reg_test/input/xyz2 put o = "3:4"; $haskey3 = haskey(@o, 3)
mlr --from ././reg-test/input/xyz2 put o = "3:4"; $haskey3 = haskey(@o, 3)
x=3,y=4,z=5,haskey3=(error)
x=6,y=7,u=8,haskey3=(error)
mlr --from ./reg_test/input/xyz2 put o = "3:4"; $haskey3 = haskey(@o, 4)
mlr --from ././reg-test/input/xyz2 put o = "3:4"; $haskey3 = haskey(@o, 4)
x=3,y=4,z=5,haskey3=(error)
x=6,y=7,u=8,haskey3=(error)

View file

@ -1,7 +1,7 @@
---------------------------------------------------------------- IF/ELIF WITH ELSE
mlr --from ./reg_test/input/xy40.dkvp put -v
mlr --from ././reg-test/input/xy40.dkvp put -v
if (NR==1) {
$x = 2;
$y = 3
@ -81,7 +81,7 @@ i=38,x=138,y=238
i=39,x=139,y=239
i=40,x=140,y=240
mlr --from ./reg_test/input/xy40.dkvp put -v
mlr --from ././reg-test/input/xy40.dkvp put -v
if (NR == 4) {
$x = 5;
$y = 6
@ -180,7 +180,7 @@ i=38,x=1007,y=1008
i=39,x=1007,y=1008
i=40,x=1007,y=1008
mlr --from ./reg_test/input/xy40.dkvp put -v
mlr --from ././reg-test/input/xy40.dkvp put -v
if (NR == 9) {
$x = 10;
$y = 11
@ -304,7 +304,7 @@ i=38,x=1015,y=1016
i=39,x=1015,y=1016
i=40,x=1015,y=1016
mlr --from ./reg_test/input/xy40.dkvp put -v
mlr --from ././reg-test/input/xy40.dkvp put -v
if (NR == 17) {
$x = 18;
$y = 19
@ -453,7 +453,7 @@ i=38,x=1026,y=1027
i=39,x=1026,y=1027
i=40,x=1026,y=1027
mlr --from ./reg_test/input/xy40.dkvp put -v
mlr --from ././reg-test/input/xy40.dkvp put -v
if (NR == 28) {
$x = 29;
$y = 30
@ -629,7 +629,7 @@ i=40,x=1040,y=1041
---------------------------------------------------------------- IF/ELIF WITHOUT ELSE
mlr --from ./reg_test/input/xy40.dkvp put -v
mlr --from ././reg-test/input/xy40.dkvp put -v
if (NR == 1) {
$x = 2;
$y = 3
@ -709,7 +709,7 @@ i=38,x=138,y=238
i=39,x=139,y=239
i=40,x=140,y=240
mlr --from ./reg_test/input/xy40.dkvp put -v
mlr --from ././reg-test/input/xy40.dkvp put -v
if (NR == 4) {
$x = 5;
$y = 6
@ -814,7 +814,7 @@ i=38,x=138,y=238
i=39,x=139,y=239
i=40,x=140,y=240
mlr --from ./reg_test/input/xy40.dkvp put -v
mlr --from ././reg-test/input/xy40.dkvp put -v
if (NR == 10) {
$x = 11;
$y = 12
@ -944,7 +944,7 @@ i=38,x=138,y=238
i=39,x=139,y=239
i=40,x=140,y=240
mlr --from ./reg_test/input/xy40.dkvp put -v
mlr --from ././reg-test/input/xy40.dkvp put -v
if (NR == 19) {
$x = 20;
$y = 21

View file

@ -1,5 +1,5 @@
mlr --opprint put -v @s = NR; $t = @s; $u=@["s"]; $v = $t - $u ./reg_test/input/abixy
mlr --opprint put -v @s = NR; $t = @s; $u=@["s"]; $v = $t - $u ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -56,7 +56,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8 8 0
hat wye 9 0.03144187646093577 0.7495507603507059 9 9 0
pan wye 10 0.5026260055412137 0.9526183602969864 10 10 0
mlr put -v @t["u"] = NR; $tu = @["t"]["u"]; emitp all ./reg_test/input/abixy
mlr put -v @t["u"] = NR; $tu = @["t"]["u"]; emitp all ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -116,7 +116,7 @@ a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,tu=9
t:u=10
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,tu=10
mlr put -v @t["u"] = NR; $tu = @["t"]["u"]; emitp @* ./reg_test/input/abixy
mlr put -v @t["u"] = NR; $tu = @["t"]["u"]; emitp @* ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -176,7 +176,7 @@ a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,tu=9
t:u=10
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,tu=10
mlr put -v @["s"] = $x; emitp all ./reg_test/input/abixy
mlr put -v @["s"] = $x; emitp all ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -224,7 +224,7 @@ a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
s=0.502626
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr put -v @["t"]["u"] = $y; emitp all ./reg_test/input/abixy
mlr put -v @["t"]["u"] = $y; emitp all ././reg-test/input/abixy
RAW AST:
AST ROOT:

View file

@ -1,5 +1,5 @@
mlr put -v $["a"] = $["b"]; $["x"] = 10 * $["y"] ./reg_test/input/abixy
mlr put -v $["a"] = $["b"]; $["x"] = 10 * $["y"] ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -41,7 +41,7 @@ a=wye,b=wye,i=8,x=9.761814,y=0.976181385699006
a=wye,b=wye,i=9,x=7.495508,y=0.7495507603507059
a=wye,b=wye,i=10,x=9.526184,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put while (NF < 256) { $["k".string(NF+1)] = "v".string(NF) }
mlr --from ././reg-test/input/abixy put while (NF < 256) { $["k".string(NF+1)] = "v".string(NF) }
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,k6=v5,k7=v6,k8=v7,k9=v8,k10=v9,k11=v10,k12=v11,k13=v12,k14=v13,k15=v14,k16=v15,k17=v16,k18=v17,k19=v18,k20=v19,k21=v20,k22=v21,k23=v22,k24=v23,k25=v24,k26=v25,k27=v26,k28=v27,k29=v28,k30=v29,k31=v30,k32=v31,k33=v32,k34=v33,k35=v34,k36=v35,k37=v36,k38=v37,k39=v38,k40=v39,k41=v40,k42=v41,k43=v42,k44=v43,k45=v44,k46=v45,k47=v46,k48=v47,k49=v48,k50=v49,k51=v50,k52=v51,k53=v52,k54=v53,k55=v54,k56=v55,k57=v56,k58=v57,k59=v58,k60=v59,k61=v60,k62=v61,k63=v62,k64=v63,k65=v64,k66=v65,k67=v66,k68=v67,k69=v68,k70=v69,k71=v70,k72=v71,k73=v72,k74=v73,k75=v74,k76=v75,k77=v76,k78=v77,k79=v78,k80=v79,k81=v80,k82=v81,k83=v82,k84=v83,k85=v84,k86=v85,k87=v86,k88=v87,k89=v88,k90=v89,k91=v90,k92=v91,k93=v92,k94=v93,k95=v94,k96=v95,k97=v96,k98=v97,k99=v98,k100=v99,k101=v100,k102=v101,k103=v102,k104=v103,k105=v104,k106=v105,k107=v106,k108=v107,k109=v108,k110=v109,k111=v110,k112=v111,k113=v112,k114=v113,k115=v114,k116=v115,k117=v116,k118=v117,k119=v118,k120=v119,k121=v120,k122=v121,k123=v122,k124=v123,k125=v124,k126=v125,k127=v126,k128=v127,k129=v128,k130=v129,k131=v130,k132=v131,k133=v132,k134=v133,k135=v134,k136=v135,k137=v136,k138=v137,k139=v138,k140=v139,k141=v140,k142=v141,k143=v142,k144=v143,k145=v144,k146=v145,k147=v146,k148=v147,k149=v148,k150=v149,k151=v150,k152=v151,k153=v152,k154=v153,k155=v154,k156=v155,k157=v156,k158=v157,k159=v158,k160=v159,k161=v160,k162=v161,k163=v162,k164=v163,k165=v164,k166=v165,k167=v166,k168=v167,k169=v168,k170=v169,k171=v170,k172=v171,k173=v172,k174=v173,k175=v174,k176=v175,k177=v176,k178=v177,k179=v178,k180=v179,k181=v180,k182=v181,k183=v182,k184=v183,k185=v184,k186=v185,k187=v186,k188=v187,k189=v188,k190=v189,k191=v190,k192=v191,k193=v192,k194=v193,k195=v194,k196=v195,k197=v196,k198=v197,k199=v198,k200=v199,k201=v200,k202=v201,k203=v202,k204=v203,k205=v204,k206=v205,k207=v206,k208=v207,k209=v208,k210=v209,k211=v210,k212=v211,k213=v212,k214=v213,k215=v214,k216=v215,k217=v216,k218=v217,k219=v218,k220=v219,k221=v220,k222=v221,k223=v222,k224=v223,k225=v224,k226=v225,k227=v226,k228=v227,k229=v228,k230=v229,k231=v230,k232=v231,k233=v232,k234=v233,k235=v234,k236=v235,k237=v236,k238=v237,k239=v238,k240=v239,k241=v240,k242=v241,k243=v242,k244=v243,k245=v244,k246=v245,k247=v246,k248=v247,k249=v248,k250=v249,k251=v250,k252=v251,k253=v252,k254=v253,k255=v254,k256=v255
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,k6=v5,k7=v6,k8=v7,k9=v8,k10=v9,k11=v10,k12=v11,k13=v12,k14=v13,k15=v14,k16=v15,k17=v16,k18=v17,k19=v18,k20=v19,k21=v20,k22=v21,k23=v22,k24=v23,k25=v24,k26=v25,k27=v26,k28=v27,k29=v28,k30=v29,k31=v30,k32=v31,k33=v32,k34=v33,k35=v34,k36=v35,k37=v36,k38=v37,k39=v38,k40=v39,k41=v40,k42=v41,k43=v42,k44=v43,k45=v44,k46=v45,k47=v46,k48=v47,k49=v48,k50=v49,k51=v50,k52=v51,k53=v52,k54=v53,k55=v54,k56=v55,k57=v56,k58=v57,k59=v58,k60=v59,k61=v60,k62=v61,k63=v62,k64=v63,k65=v64,k66=v65,k67=v66,k68=v67,k69=v68,k70=v69,k71=v70,k72=v71,k73=v72,k74=v73,k75=v74,k76=v75,k77=v76,k78=v77,k79=v78,k80=v79,k81=v80,k82=v81,k83=v82,k84=v83,k85=v84,k86=v85,k87=v86,k88=v87,k89=v88,k90=v89,k91=v90,k92=v91,k93=v92,k94=v93,k95=v94,k96=v95,k97=v96,k98=v97,k99=v98,k100=v99,k101=v100,k102=v101,k103=v102,k104=v103,k105=v104,k106=v105,k107=v106,k108=v107,k109=v108,k110=v109,k111=v110,k112=v111,k113=v112,k114=v113,k115=v114,k116=v115,k117=v116,k118=v117,k119=v118,k120=v119,k121=v120,k122=v121,k123=v122,k124=v123,k125=v124,k126=v125,k127=v126,k128=v127,k129=v128,k130=v129,k131=v130,k132=v131,k133=v132,k134=v133,k135=v134,k136=v135,k137=v136,k138=v137,k139=v138,k140=v139,k141=v140,k142=v141,k143=v142,k144=v143,k145=v144,k146=v145,k147=v146,k148=v147,k149=v148,k150=v149,k151=v150,k152=v151,k153=v152,k154=v153,k155=v154,k156=v155,k157=v156,k158=v157,k159=v158,k160=v159,k161=v160,k162=v161,k163=v162,k164=v163,k165=v164,k166=v165,k167=v166,k168=v167,k169=v168,k170=v169,k171=v170,k172=v171,k173=v172,k174=v173,k175=v174,k176=v175,k177=v176,k178=v177,k179=v178,k180=v179,k181=v180,k182=v181,k183=v182,k184=v183,k185=v184,k186=v185,k187=v186,k188=v187,k189=v188,k190=v189,k191=v190,k192=v191,k193=v192,k194=v193,k195=v194,k196=v195,k197=v196,k198=v197,k199=v198,k200=v199,k201=v200,k202=v201,k203=v202,k204=v203,k205=v204,k206=v205,k207=v206,k208=v207,k209=v208,k210=v209,k211=v210,k212=v211,k213=v212,k214=v213,k215=v214,k216=v215,k217=v216,k218=v217,k219=v218,k220=v219,k221=v220,k222=v221,k223=v222,k224=v223,k225=v224,k226=v225,k227=v226,k228=v227,k229=v228,k230=v229,k231=v230,k232=v231,k233=v232,k234=v233,k235=v234,k236=v235,k237=v236,k238=v237,k239=v238,k240=v239,k241=v240,k242=v241,k243=v242,k244=v243,k245=v244,k246=v245,k247=v246,k248=v247,k249=v248,k250=v249,k251=v250,k252=v251,k253=v252,k254=v253,k255=v254,k256=v255
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,k6=v5,k7=v6,k8=v7,k9=v8,k10=v9,k11=v10,k12=v11,k13=v12,k14=v13,k15=v14,k16=v15,k17=v16,k18=v17,k19=v18,k20=v19,k21=v20,k22=v21,k23=v22,k24=v23,k25=v24,k26=v25,k27=v26,k28=v27,k29=v28,k30=v29,k31=v30,k32=v31,k33=v32,k34=v33,k35=v34,k36=v35,k37=v36,k38=v37,k39=v38,k40=v39,k41=v40,k42=v41,k43=v42,k44=v43,k45=v44,k46=v45,k47=v46,k48=v47,k49=v48,k50=v49,k51=v50,k52=v51,k53=v52,k54=v53,k55=v54,k56=v55,k57=v56,k58=v57,k59=v58,k60=v59,k61=v60,k62=v61,k63=v62,k64=v63,k65=v64,k66=v65,k67=v66,k68=v67,k69=v68,k70=v69,k71=v70,k72=v71,k73=v72,k74=v73,k75=v74,k76=v75,k77=v76,k78=v77,k79=v78,k80=v79,k81=v80,k82=v81,k83=v82,k84=v83,k85=v84,k86=v85,k87=v86,k88=v87,k89=v88,k90=v89,k91=v90,k92=v91,k93=v92,k94=v93,k95=v94,k96=v95,k97=v96,k98=v97,k99=v98,k100=v99,k101=v100,k102=v101,k103=v102,k104=v103,k105=v104,k106=v105,k107=v106,k108=v107,k109=v108,k110=v109,k111=v110,k112=v111,k113=v112,k114=v113,k115=v114,k116=v115,k117=v116,k118=v117,k119=v118,k120=v119,k121=v120,k122=v121,k123=v122,k124=v123,k125=v124,k126=v125,k127=v126,k128=v127,k129=v128,k130=v129,k131=v130,k132=v131,k133=v132,k134=v133,k135=v134,k136=v135,k137=v136,k138=v137,k139=v138,k140=v139,k141=v140,k142=v141,k143=v142,k144=v143,k145=v144,k146=v145,k147=v146,k148=v147,k149=v148,k150=v149,k151=v150,k152=v151,k153=v152,k154=v153,k155=v154,k156=v155,k157=v156,k158=v157,k159=v158,k160=v159,k161=v160,k162=v161,k163=v162,k164=v163,k165=v164,k166=v165,k167=v166,k168=v167,k169=v168,k170=v169,k171=v170,k172=v171,k173=v172,k174=v173,k175=v174,k176=v175,k177=v176,k178=v177,k179=v178,k180=v179,k181=v180,k182=v181,k183=v182,k184=v183,k185=v184,k186=v185,k187=v186,k188=v187,k189=v188,k190=v189,k191=v190,k192=v191,k193=v192,k194=v193,k195=v194,k196=v195,k197=v196,k198=v197,k199=v198,k200=v199,k201=v200,k202=v201,k203=v202,k204=v203,k205=v204,k206=v205,k207=v206,k208=v207,k209=v208,k210=v209,k211=v210,k212=v211,k213=v212,k214=v213,k215=v214,k216=v215,k217=v216,k218=v217,k219=v218,k220=v219,k221=v220,k222=v221,k223=v222,k224=v223,k225=v224,k226=v225,k227=v226,k228=v227,k229=v228,k230=v229,k231=v230,k232=v231,k233=v232,k234=v233,k235=v234,k236=v235,k237=v236,k238=v237,k239=v238,k240=v239,k241=v240,k242=v241,k243=v242,k244=v243,k245=v244,k246=v245,k247=v246,k248=v247,k249=v248,k250=v249,k251=v250,k252=v251,k253=v252,k254=v253,k255=v254,k256=v255

View file

@ -1,5 +1,5 @@
mlr --opprint put $f=is_absent($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_absent($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -7,7 +7,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_absent($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_absent($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -15,7 +15,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_absent($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_absent($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -23,7 +23,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_absent($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_absent($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -31,7 +31,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_absent(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_absent(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -39,7 +39,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put @somesuch=1;$f=is_absent(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_absent(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -47,7 +47,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_bool($x>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_bool($x>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -55,7 +55,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_bool($y>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_bool($y>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -63,7 +63,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_bool($z>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_bool($z>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -71,7 +71,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_bool($nosuch>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_bool($nosuch>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -79,7 +79,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_bool(@nosuch>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_bool(@nosuch>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -87,7 +87,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_bool(@somesuch>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_bool(@somesuch>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -95,7 +95,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_boolean($x>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_boolean($x>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -103,7 +103,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_boolean($y>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_boolean($y>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -111,7 +111,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_boolean($z>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_boolean($z>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -119,7 +119,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_boolean($nosuch>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_boolean($nosuch>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -127,7 +127,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_boolean(@nosuch>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_boolean(@nosuch>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -135,7 +135,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_boolean(@somesuch>1) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_boolean(@somesuch>1) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -143,7 +143,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_empty($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -151,7 +151,7 @@ b 5 - - false
b - 6 - true
b - - - true
mlr --opprint put $f=is_empty($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -159,7 +159,7 @@ b 5 - - true
b - 6 - false
b - - - true
mlr --opprint put $f=is_empty($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -167,7 +167,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_empty($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -175,7 +175,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -183,7 +183,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -191,7 +191,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -199,7 +199,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_empty(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_empty(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -207,7 +207,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty_map($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty_map($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -215,7 +215,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty_map($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty_map($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -223,7 +223,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty_map($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty_map($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -231,7 +231,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty_map($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty_map($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -239,7 +239,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty_map(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty_map(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -247,7 +247,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty_map($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty_map($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -255,7 +255,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty_map({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty_map({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -263,7 +263,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_empty_map({}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_empty_map({}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -271,7 +271,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put @somesuch=1;$f=is_empty_map(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_empty_map(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -279,7 +279,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_float($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_float($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -287,7 +287,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_float($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_float($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -295,7 +295,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_float($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_float($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -303,7 +303,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_float($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_float($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -311,7 +311,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_float(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_float(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -319,7 +319,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_float($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_float($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -327,7 +327,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_float({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_float({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -335,7 +335,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_float(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_float(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -343,7 +343,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_int($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_int($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -351,7 +351,7 @@ b 5 - - true
b - 6 - false
b - - - false
mlr --opprint put $f=is_int($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_int($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -359,7 +359,7 @@ b 5 - - false
b - 6 - true
b - - - false
mlr --opprint put $f=is_int($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_int($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -367,7 +367,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_int($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_int($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -375,7 +375,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_int(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_int(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -383,7 +383,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_int($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_int($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -391,7 +391,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_int({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_int({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -399,7 +399,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_int(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_int(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -407,7 +407,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_map($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_map($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -415,7 +415,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_map($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_map($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -423,7 +423,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_map($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_map($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -431,7 +431,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_map($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_map($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -439,7 +439,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_map(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_map(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -447,7 +447,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_map($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_map($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -455,7 +455,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_map({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_map({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -463,7 +463,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_map({}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_map({}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -471,7 +471,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put @somesuch=1;$f=is_map(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_map(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -479,7 +479,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_nonempty_map($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_nonempty_map($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -487,7 +487,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_nonempty_map($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_nonempty_map($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -495,7 +495,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_nonempty_map($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_nonempty_map($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -503,7 +503,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_nonempty_map($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_nonempty_map($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -511,7 +511,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_nonempty_map(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_nonempty_map(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -519,7 +519,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_nonempty_map($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_nonempty_map($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -527,7 +527,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_nonempty_map({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_nonempty_map({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -535,7 +535,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_nonempty_map({}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_nonempty_map({}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -543,7 +543,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_nonempty_map(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_nonempty_map(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -551,7 +551,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_not_empty($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_empty($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -559,7 +559,7 @@ b 5 - - true
b - 6 - false
b - - - false
mlr --opprint put $f=is_not_empty($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_empty($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -567,7 +567,7 @@ b 5 - - false
b - 6 - true
b - - - false
mlr --opprint put $f=is_not_empty($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_empty($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -575,7 +575,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_not_empty($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_empty($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -583,7 +583,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_empty(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_empty(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -591,7 +591,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_empty($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_empty($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -599,7 +599,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_empty({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_empty({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -607,7 +607,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put @somesuch=1;$f=is_not_empty(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_not_empty(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -615,7 +615,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_map($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_map($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -623,7 +623,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_map($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_map($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -631,7 +631,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_map($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_map($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -639,7 +639,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_map($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_map($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -647,7 +647,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_map(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_map(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -655,7 +655,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_map($*) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_map($*) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -663,7 +663,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_not_map({1:2}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_map({1:2}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -671,7 +671,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_not_map({}) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_map({}) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -679,7 +679,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_not_map(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_not_map(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -687,7 +687,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_not_null($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_null($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -695,7 +695,7 @@ b 5 - - true
b - 6 - false
b - - - false
mlr --opprint put $f=is_not_null($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_null($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -703,7 +703,7 @@ b 5 - - false
b - 6 - true
b - - - false
mlr --opprint put $f=is_not_null($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_null($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -711,7 +711,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_not_null($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_null($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -719,7 +719,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_not_null(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_not_null(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -727,7 +727,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_not_null(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_not_null(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -735,7 +735,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_null($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_null($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -743,7 +743,7 @@ b 5 - - false
b - 6 - true
b - - - true
mlr --opprint put $f=is_null($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_null($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -751,7 +751,7 @@ b 5 - - true
b - 6 - false
b - - - true
mlr --opprint put $f=is_null($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_null($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -759,7 +759,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_null($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_null($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -767,7 +767,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_null(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_null(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -775,7 +775,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put @somesuch=1;$f=is_null(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_null(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -783,7 +783,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_numeric($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_numeric($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -791,7 +791,7 @@ b 5 - - true
b - 6 - false
b - - - false
mlr --opprint put $f=is_numeric($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_numeric($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -799,7 +799,7 @@ b 5 - - false
b - 6 - true
b - - - false
mlr --opprint put $f=is_numeric($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_numeric($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -807,7 +807,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_numeric($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_numeric($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -815,7 +815,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_numeric(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_numeric(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -823,7 +823,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_numeric(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_numeric(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -831,7 +831,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_present($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_present($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -839,7 +839,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_present($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_present($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -847,7 +847,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_present($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_present($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -855,7 +855,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_present($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_present($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -863,7 +863,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_present(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_present(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -871,7 +871,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_present(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_present(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -879,7 +879,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_string($x) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_string($x) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -887,7 +887,7 @@ b 5 - - false
b - 6 - true
b - - - true
mlr --opprint put $f=is_string($y) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_string($y) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -895,7 +895,7 @@ b 5 - - true
b - 6 - false
b - - - true
mlr --opprint put $f=is_string($z) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_string($z) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - true
b 3 4 - true
@ -903,7 +903,7 @@ b 5 - - true
b - 6 - true
b - - - true
mlr --opprint put $f=is_string($nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_string($nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -911,7 +911,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put $f=is_string(@nosuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put $f=is_string(@nosuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false
@ -919,7 +919,7 @@ b 5 - - false
b - 6 - false
b - - - false
mlr --opprint put @somesuch=1;$f=is_string(@somesuch) ./reg_test/input/nullvals.dkvp
mlr --opprint put @somesuch=1;$f=is_string(@somesuch) ././reg-test/input/nullvals.dkvp
a x y z f
b 1 2 - false
b 3 4 - false

View file

@ -433,7 +433,7 @@ mlr -n put end {
================================================================
CANONICAL LASHED EMIT
mlr --from ./reg_test/input/abixy-wide --opprint put -q
mlr --from ././reg-test/input/abixy-wide --opprint put -q
@count[$a] += 1;
@sum[$a] += $x;
end {
@ -450,7 +450,7 @@ wye 188.110135 370 0.508406
dog 215.541519 424 0.508353
hat 206.091824 409 0.503892
mlr --from ./reg_test/input/abixy-wide --opprint put -q
mlr --from ././reg-test/input/abixy-wide --opprint put -q
@count[$a][$b] += 1;
@sum[$a][$b] += $x;
end {
@ -491,7 +491,7 @@ hat dog 37.114244 78 0.475824
================================================================
MAP-VARIANT EMITS
mlr --from ./reg_test/input/abixy-het --opprint put -q o=$a.$b; emit o
mlr --from ././reg-test/input/abixy-het --opprint put -q o=$a.$b; emit o
o
panpan
ekspan
@ -504,7 +504,7 @@ zeewye
-
panwye
mlr --from ./reg_test/input/abixy-het --opprint put -q o={"ab":$a.$b}; emit o
mlr --from ././reg-test/input/abixy-het --opprint put -q o={"ab":$a.$b}; emit o
ab
panpan
ekspan
@ -517,7 +517,7 @@ zeewye
-
panwye
mlr --from ./reg_test/input/abixy-het --opprint put -q @o=$a.$b; emit @o
mlr --from ././reg-test/input/abixy-het --opprint put -q @o=$a.$b; emit @o
o
panpan
ekspan
@ -530,7 +530,7 @@ zeewye
zeewye
panwye
mlr --from ./reg_test/input/abixy-het --opprint put -q @o={"ab":$a.$b}; emit @o
mlr --from ././reg-test/input/abixy-het --opprint put -q @o={"ab":$a.$b}; emit @o
ab
panpan
ekspan
@ -543,7 +543,7 @@ zeewye
-
panwye
mlr --from ./reg_test/input/abixy-het --opprint put -q @o=$a.$b; emit @*
mlr --from ././reg-test/input/abixy-het --opprint put -q @o=$a.$b; emit @*
o
panpan
ekspan
@ -556,7 +556,7 @@ zeewye
zeewye
panwye
mlr --from ./reg_test/input/abixy-het --opprint put -q @o={"ab":$a.$b}; emit @*
mlr --from ././reg-test/input/abixy-het --opprint put -q @o={"ab":$a.$b}; emit @*
ab
panpan
ekspan
@ -569,11 +569,11 @@ zeewye
-
panwye
mlr --from ./reg_test/input/abixy-het --opprint put -q emit $a.$b
mlr --from ././reg-test/input/abixy-het --opprint put -q emit $a.$b
mlr DSL: syntax error at "$a"
mlr put: syntax error on DSL parse of 'emit $a.$b'
mlr --from ./reg_test/input/abixy-het --opprint put -q emit {"ab":$a.$b}
mlr --from ././reg-test/input/abixy-het --opprint put -q emit {"ab":$a.$b}
ab
panpan
ekspan
@ -586,7 +586,7 @@ zeewye
-
panwye
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a,b) { return a.b } o = f($a, $b); emit o
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a,b) { return a.b } o = f($a, $b); emit o
o
panpan
ekspan
@ -599,9 +599,9 @@ zeewye
-
panwye
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a,b) { return a.b } emit f($a, $b)
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a,b) { return a.b } emit f($a, $b)
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a,b) { return {"ab": a.b} } o = f($a, $b); emit o
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a,b) { return {"ab": a.b} } o = f($a, $b); emit o
ab
panpan
ekspan
@ -614,7 +614,7 @@ zeewye
-
panwye
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a,b) { return {"ab": a.b} } emit f($a, $b)
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a,b) { return {"ab": a.b} } emit f($a, $b)
ab
panpan
ekspan
@ -633,11 +633,11 @@ MAP-VARIANT LASHED EMITS
---------------------------------------------------------------- scalar lashed emits
mlr --from ./reg_test/input/abixy-het --opprint put -q emit ($a . "_" . $b, $x . "_" . $y)
mlr --from ././reg-test/input/abixy-het --opprint put -q emit ($a . "_" . $b, $x . "_" . $y)
mlr DSL: syntax error at "$a"
mlr put: syntax error on DSL parse of 'emit ($a . "_" . $b, $x . "_" . $y)'
mlr --from ./reg_test/input/abixy-het --opprint put -q o = $a . "_" . $b; p = $x . "_" . $y; emit (o, p)
mlr --from ././reg-test/input/abixy-het --opprint put -q o = $a . "_" . $b; p = $x . "_" . $y; emit (o, p)
o p
pan_pan 0.346790_0.726803
eks_pan 0.758680_0.522151
@ -650,7 +650,7 @@ zee_wye 0.598554_
_ 0.031442_0.749551
pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q @o = $a . "_" . $b; @p = $x . "_" . $y; emit (@o, @p)
mlr --from ././reg-test/input/abixy-het --opprint put -q @o = $a . "_" . $b; @p = $x . "_" . $y; emit (@o, @p)
o p
pan_pan 0.346790_0.726803
eks_pan 0.758680_0.522151
@ -663,7 +663,7 @@ zee_wye 0.598554_
_ 0.031442_0.749551
pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return a . "_" . b } o = f($a, $b); p = f($x, $y); emit (o, p)
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return a . "_" . b } o = f($a, $b); p = f($x, $y); emit (o, p)
o p
pan_pan 0.346790_0.726803
eks_pan 0.758680_0.522151
@ -676,7 +676,7 @@ zee_wye 0.598554_
_ 0.031442_0.749551
pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return a . "_" . b } @o = f($a, $b); @p = f($x, $y); emit (@o, @p)
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return a . "_" . b } @o = f($a, $b); @p = f($x, $y); emit (@o, @p)
o p
pan_pan 0.346790_0.726803
eks_pan 0.758680_0.522151
@ -689,7 +689,7 @@ zee_wye 0.598554_
_ 0.031442_0.749551
pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return a . "_" . b } emit (f($a, $b), f($x, $y))
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return a . "_" . b } emit (f($a, $b), f($x, $y))
_
0.346790_0.726803
0.758680_0.522151
@ -704,7 +704,7 @@ _0.863624
---------------------------------------------------------------- non-scalar non-keyed lashed emits
mlr --from ./reg_test/input/abixy-het --opprint put -q emit ({"ab": $a . "_" . $b}, {"ab": $x . "_" . $y})
mlr --from ././reg-test/input/abixy-het --opprint put -q emit ({"ab": $a . "_" . $b}, {"ab": $x . "_" . $y})
ab
0.346790_0.726803
0.758680_0.522151
@ -717,7 +717,7 @@ _0.863624
0.031442_0.749551
0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q o = {"ab": $a . "_" . $b}; p = {"ab": $x . "_" . $y}; emit (o, p)
mlr --from ././reg-test/input/abixy-het --opprint put -q o = {"ab": $a . "_" . $b}; p = {"ab": $x . "_" . $y}; emit (o, p)
ab
0.346790_0.726803
0.758680_0.522151
@ -730,7 +730,7 @@ _0.863624
0.031442_0.749551
0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q @o = {"ab": $a . "_" . $b}; @p = {"ab": $x . "_" . $y}; emit (@o, @p)
mlr --from ././reg-test/input/abixy-het --opprint put -q @o = {"ab": $a . "_" . $b}; @p = {"ab": $x . "_" . $y}; emit (@o, @p)
ab
0.346790_0.726803
0.758680_0.522151
@ -743,7 +743,7 @@ _0.863624
0.031442_0.749551
0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } o = f($a, $b); p = f($x, $y); emit (o, p)
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } o = f($a, $b); p = f($x, $y); emit (o, p)
ab
0.346790_0.726803
0.758680_0.522151
@ -756,7 +756,7 @@ _0.863624
0.031442_0.749551
0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } @o = f($a, $b); @p = f($x, $y); emit (@o, @p)
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } @o = f($a, $b); @p = f($x, $y); emit (@o, @p)
ab
0.346790_0.726803
0.758680_0.522151
@ -769,7 +769,7 @@ _0.863624
0.031442_0.749551
0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } emit (f($a, $b), f($x, $y))
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } emit (f($a, $b), f($x, $y))
ab
0.346790_0.726803
0.758680_0.522151
@ -784,7 +784,7 @@ _0.863624
---------------------------------------------------------------- non-scalar non-keyed lashed emits
mlr --from ./reg_test/input/abixy-het --opprint put -q emitp ({"ab": $a . "_" . $b}, {"ab": $x . "_" . $y})
mlr --from ././reg-test/input/abixy-het --opprint put -q emitp ({"ab": $a . "_" . $b}, {"ab": $x . "_" . $y})
_:ab
0.346790_0.726803
0.758680_0.522151
@ -797,7 +797,7 @@ _0.863624
0.031442_0.749551
0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q o = {"ab": $a . "_" . $b}; p = {"ab": $x . "_" . $y}; emitp (o, p)
mlr --from ././reg-test/input/abixy-het --opprint put -q o = {"ab": $a . "_" . $b}; p = {"ab": $x . "_" . $y}; emitp (o, p)
o:ab p:ab
pan_pan 0.346790_0.726803
eks_pan 0.758680_0.522151
@ -810,7 +810,7 @@ zee_wye 0.598554_
_ 0.031442_0.749551
pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q @o = {"ab": $a . "_" . $b}; @p = {"ab": $x . "_" . $y}; emitp (@o, @p)
mlr --from ././reg-test/input/abixy-het --opprint put -q @o = {"ab": $a . "_" . $b}; @p = {"ab": $x . "_" . $y}; emitp (@o, @p)
o:ab p:ab
pan_pan 0.346790_0.726803
eks_pan 0.758680_0.522151
@ -823,7 +823,7 @@ zee_wye 0.598554_
_ 0.031442_0.749551
pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } o = f($a, $b); p = f($x, $y); emitp (o, p)
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } o = f($a, $b); p = f($x, $y); emitp (o, p)
o:ab p:ab
pan_pan 0.346790_0.726803
eks_pan 0.758680_0.522151
@ -836,7 +836,7 @@ zee_wye 0.598554_
_ 0.031442_0.749551
pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } @o = f($a, $b); @p = f($x, $y); emitp (@o, @p)
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } @o = f($a, $b); @p = f($x, $y); emitp (@o, @p)
o:ab p:ab
pan_pan 0.346790_0.726803
eks_pan 0.758680_0.522151
@ -849,7 +849,7 @@ zee_wye 0.598554_
_ 0.031442_0.749551
pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } emit (f($a, $b), f($x, $y))
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } emit (f($a, $b), f($x, $y))
ab
0.346790_0.726803
0.758680_0.522151
@ -864,7 +864,7 @@ _0.863624
---------------------------------------------------------------- non-scalar keyed lashed emits
mlr --from ./reg_test/input/abixy-het --opprint put -q emit ({"ab": $a . "_" . $b}, {"ab": $x . "_" . $y}), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q emit ({"ab": $a . "_" . $b}, {"ab": $x . "_" . $y}), "ab"
ab _
ab 0.346790_0.726803
ab 0.758680_0.522151
@ -877,7 +877,7 @@ ab 0.598554_
ab 0.031442_0.749551
ab 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q o = {"ab": $a . "_" . $b}; p = {"ab": $x . "_" . $y}; emit (o, p), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q o = {"ab": $a . "_" . $b}; p = {"ab": $x . "_" . $y}; emit (o, p), "ab"
ab o p
ab pan_pan 0.346790_0.726803
ab eks_pan 0.758680_0.522151
@ -890,7 +890,7 @@ ab zee_wye 0.598554_
ab _ 0.031442_0.749551
ab pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q @o = {"ab": $a . "_" . $b}; @p = {"ab": $x . "_" . $y}; emit (@o, @p), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q @o = {"ab": $a . "_" . $b}; @p = {"ab": $x . "_" . $y}; emit (@o, @p), "ab"
ab o p
ab pan_pan 0.346790_0.726803
ab eks_pan 0.758680_0.522151
@ -903,7 +903,7 @@ ab zee_wye 0.598554_
ab _ 0.031442_0.749551
ab pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } o = f($a, $b); p = f($x, $y); emit (o, p), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } o = f($a, $b); p = f($x, $y); emit (o, p), "ab"
ab o p
ab pan_pan 0.346790_0.726803
ab eks_pan 0.758680_0.522151
@ -916,7 +916,7 @@ ab zee_wye 0.598554_
ab _ 0.031442_0.749551
ab pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } @o = f($a, $b); @p = f($x, $y); emit (@o, @p), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } @o = f($a, $b); @p = f($x, $y); emit (@o, @p), "ab"
ab o p
ab pan_pan 0.346790_0.726803
ab eks_pan 0.758680_0.522151
@ -929,7 +929,7 @@ ab zee_wye 0.598554_
ab _ 0.031442_0.749551
ab pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } emit (f($a, $b), f($x, $y)), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } emit (f($a, $b), f($x, $y)), "ab"
ab _
ab 0.346790_0.726803
ab 0.758680_0.522151
@ -944,7 +944,7 @@ ab 0.502626_0.952618
---------------------------------------------------------------- non-scalar keyed lashed emits
mlr --from ./reg_test/input/abixy-het --opprint put -q emitp ({"ab": $a . "_" . $b}, {"ab": $x . "_" . $y}), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q emitp ({"ab": $a . "_" . $b}, {"ab": $x . "_" . $y}), "ab"
ab _
ab 0.346790_0.726803
ab 0.758680_0.522151
@ -957,7 +957,7 @@ ab 0.598554_
ab 0.031442_0.749551
ab 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q o = {"ab": $a . "_" . $b}; p = {"ab": $x . "_" . $y}; emitp (o, p), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q o = {"ab": $a . "_" . $b}; p = {"ab": $x . "_" . $y}; emitp (o, p), "ab"
ab o p
ab pan_pan 0.346790_0.726803
ab eks_pan 0.758680_0.522151
@ -970,7 +970,7 @@ ab zee_wye 0.598554_
ab _ 0.031442_0.749551
ab pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q @o = {"ab": $a . "_" . $b}; @p = {"ab": $x . "_" . $y}; emitp (@o, @p), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q @o = {"ab": $a . "_" . $b}; @p = {"ab": $x . "_" . $y}; emitp (@o, @p), "ab"
ab o p
ab pan_pan 0.346790_0.726803
ab eks_pan 0.758680_0.522151
@ -983,7 +983,7 @@ ab zee_wye 0.598554_
ab _ 0.031442_0.749551
ab pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } o = f($a, $b); p = f($x, $y); emitp (o, p), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } o = f($a, $b); p = f($x, $y); emitp (o, p), "ab"
ab o p
ab pan_pan 0.346790_0.726803
ab eks_pan 0.758680_0.522151
@ -996,7 +996,7 @@ ab zee_wye 0.598554_
ab _ 0.031442_0.749551
ab pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } @o = f($a, $b); @p = f($x, $y); emitp (@o, @p), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } @o = f($a, $b); @p = f($x, $y); emitp (@o, @p), "ab"
ab o p
ab pan_pan 0.346790_0.726803
ab eks_pan 0.758680_0.522151
@ -1009,7 +1009,7 @@ ab zee_wye 0.598554_
ab _ 0.031442_0.749551
ab pan_wye 0.502626_0.952618
mlr --from ./reg_test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } emitp (f($a, $b), f($x, $y)), "ab"
mlr --from ././reg-test/input/abixy-het --opprint put -q func f(a, b) { return {"ab": a . "_" . b} } emitp (f($a, $b), f($x, $y)), "ab"
ab _
ab 0.346790_0.726803
ab 0.758680_0.522151

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy-het put $length = length($a)
mlr --from ././reg-test/input/abixy-het put $length = length($a)
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,length=1
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,length=1
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,length=1
@ -11,7 +11,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,length=1
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,length=1
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,length=1
mlr --from ./reg_test/input/abixy-het put $length = length($*)
mlr --from ././reg-test/input/abixy-het put $length = length($*)
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,length=5
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,length=5
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,length=5
@ -23,19 +23,19 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,length=5
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,length=5
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,length=5
mlr --from ./reg_test/input/xyz2 put $length= length({3:4, 5:{6:7}, 8:{9:{10:11}}})
mlr --from ././reg-test/input/xyz2 put $length= length({3:4, 5:{6:7}, 8:{9:{10:11}}})
x=3,y=4,z=5,length=3
x=6,y=7,u=8,length=3
mlr --from ./reg_test/input/xyz2 put o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $length = length(o)
mlr --from ././reg-test/input/xyz2 put o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $length = length(o)
x=3,y=4,z=5,length=3
x=6,y=7,u=8,length=3
mlr --from ./reg_test/input/xyz2 put @o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $length = length(@o)
mlr --from ././reg-test/input/xyz2 put @o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $length = length(@o)
x=3,y=4,z=5,length=3
x=6,y=7,u=8,length=3
mlr --from ./reg_test/input/abixy-het put $depth = depth($a)
mlr --from ././reg-test/input/abixy-het put $depth = depth($a)
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,depth=0
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,depth=0
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,depth=0
@ -47,7 +47,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,depth=0
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,depth=0
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,depth=0
mlr --from ./reg_test/input/abixy-het put $depth = depth($*)
mlr --from ././reg-test/input/abixy-het put $depth = depth($*)
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,depth=1
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,depth=1
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,depth=1
@ -59,19 +59,19 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,depth=1
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,depth=1
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,depth=1
mlr --from ./reg_test/input/xyz2 put $depth= depth({3:4, 5:{6:7}, 8:{9:{10:11}}})
mlr --from ././reg-test/input/xyz2 put $depth= depth({3:4, 5:{6:7}, 8:{9:{10:11}}})
x=3,y=4,z=5,depth=3
x=6,y=7,u=8,depth=3
mlr --from ./reg_test/input/xyz2 put o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $depth = depth(o)
mlr --from ././reg-test/input/xyz2 put o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $depth = depth(o)
x=3,y=4,z=5,depth=3
x=6,y=7,u=8,depth=3
mlr --from ./reg_test/input/xyz2 put @o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $depth = depth(@o)
mlr --from ././reg-test/input/xyz2 put @o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $depth = depth(@o)
x=3,y=4,z=5,depth=3
x=6,y=7,u=8,depth=3
mlr --from ./reg_test/input/abixy-het put $leafcount = leafcount($a)
mlr --from ././reg-test/input/abixy-het put $leafcount = leafcount($a)
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,leafcount=1
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,leafcount=1
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,leafcount=1
@ -83,7 +83,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,leafcount=1
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,leafcount=1
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,leafcount=1
mlr --from ./reg_test/input/abixy-het put $leafcount = leafcount($*)
mlr --from ././reg-test/input/abixy-het put $leafcount = leafcount($*)
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,leafcount=5
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,leafcount=5
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,leafcount=5
@ -95,15 +95,15 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,leafcount=5
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,leafcount=5
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,leafcount=5
mlr --from ./reg_test/input/xyz2 put $leafcount= leafcount({3:4, 5:{6:7}, 8:{9:{10:11}}})
mlr --from ././reg-test/input/xyz2 put $leafcount= leafcount({3:4, 5:{6:7}, 8:{9:{10:11}}})
x=3,y=4,z=5,leafcount=3
x=6,y=7,u=8,leafcount=3
mlr --from ./reg_test/input/xyz2 put o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $leafcount = leafcount(o)
mlr --from ././reg-test/input/xyz2 put o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $leafcount = leafcount(o)
x=3,y=4,z=5,leafcount=3
x=6,y=7,u=8,leafcount=3
mlr --from ./reg_test/input/xyz2 put @o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $leafcount = leafcount(@o)
mlr --from ././reg-test/input/xyz2 put @o = {3:4, 5:{6:7}, 8:{9:{10:11}}}; $leafcount = leafcount(@o)
x=3,y=4,z=5,leafcount=3
x=6,y=7,u=8,leafcount=3

View file

@ -1,24 +1,24 @@
mlr --from ./reg_test/input/xyz345 put
mlr --from ././reg-test/input/xyz345 put
map a = {};
x=3,y=4,z=5
mlr --from ./reg_test/input/xyz345 put
mlr --from ././reg-test/input/xyz345 put
map a = {};
a[1]=2;
a[3][4]=5;
x=3,y=4,z=5
mlr --from ./reg_test/input/xyz345 put
mlr --from ././reg-test/input/xyz345 put
map a = {};
a=2;
a[3][4]=5;
mlr: map type assertion for variable a unmet by value 2 with type int.
mlr --from ./reg_test/input/xyz345 put
mlr --from ././reg-test/input/xyz345 put
map a = {};
a[3][4]=5;
a=2;

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/xyz345 put -v -a
mlr --from ././reg-test/input/xyz345 put -v -a
$s = a;
$t = b[$x];
$u = c[$x][$y];
@ -68,7 +68,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
x=3,y=4,z=5
mlr --from ./reg_test/input/xyz345 put -v -a
mlr --from ././reg-test/input/xyz345 put -v -a
d[$x][$y][$z] = 9;
$d = d[$x][$y][$z];
@ -119,7 +119,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=2 max_subframe_depth
x=3,y=4,z=5,d=9
mlr --from ./reg_test/input/xyz345 put -v -a
mlr --from ././reg-test/input/xyz345 put -v -a
a = 6;
b[$x] = 7;
c[$x][$y] = 8;
@ -237,7 +237,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=5 max_subframe_depth
x=3,y=4,z=5,a=6,b=7,c=8,d=9
mlr --from ./reg_test/input/xyz345 put -v -a
mlr --from ././reg-test/input/xyz345 put -v -a
a = 6;
b[$x] = 7;
c[$x][$y] = 8;

View file

@ -1,5 +1,5 @@
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
func f() {
var a = 1;
if (NR > 5) {
@ -47,7 +47,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 2 1 2 2
hat wye 9 0.03144187646093577 0.7495507603507059 2 1 2 2
pan wye 10 0.5026260055412137 0.9526183602969864 2 1 2 2
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
func f() {
var a = 2;
var b = 2;

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
str a = $a;
a = "a:".NR;
$c = a;
@ -15,21 +15,21 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,c=a:8
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,c=a:9
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,c=a:10
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
str a = $a;
a = NR;
$c = a;
mlr: string type assertion for variable a unmet by value 1 with type int.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
int a = $a;
a = NR;
$c = a;
mlr: int type assertion for variable a unmet by value "pan" with type string.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
int i = $i;
i = NR;
$c = a;

View file

@ -3,7 +3,7 @@
================================================================
MAP-VARIANT DUMPS
mlr --from ./reg_test/input/abixy-het put -q dump {"a"."b":$a.$b}
mlr --from ././reg-test/input/abixy-het put -q dump {"a"."b":$a.$b}
{
"ab": "panpan"
}
@ -35,7 +35,7 @@ mlr --from ./reg_test/input/abixy-het put -q dump {"a"."b":$a.$b}
"ab": "panwye"
}
mlr --from ./reg_test/input/abixy-het put -q func f(a, b) { return {"a"."b":a.b} } dump f($a, $b)
mlr --from ././reg-test/input/abixy-het put -q func f(a, b) { return {"a"."b":a.b} } dump f($a, $b)
{
"ab": "panpan"
}

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy-het put -q o = mapsum(); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapsum(); dump o
{
}
{
@ -21,7 +21,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapsum(); dump o
{
}
mlr --from ./reg_test/input/abixy-het put -q o = mapdiff(); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapdiff(); dump o
{
}
{
@ -43,13 +43,13 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapdiff(); dump o
{
}
mlr --from ./reg_test/input/abixy-het put -q o = mapexcept(); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapexcept(); dump o
mlr: Function named "mapexcept" takes at least 1 argument; got 0.
mlr --from ./reg_test/input/abixy-het put -q o = mapselect(); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapselect(); dump o
mlr: Function named "mapselect" takes at least 1 argument; got 0.
mlr --from ./reg_test/input/abixy-het put -q o = mapsum($*); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapsum($*); dump o
{
"a": "pan",
"b": "pan",
@ -121,7 +121,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapsum($*); dump o
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapsum({"a":999}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapsum({"a":999}); dump o
{
"a": 999
}
@ -153,7 +153,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapsum({"a":999}); dump o
"a": 999
}
mlr --from ./reg_test/input/abixy-het put -q o = mapdiff($*); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapdiff($*); dump o
{
"a": "pan",
"b": "pan",
@ -225,7 +225,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapdiff($*); dump o
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapdiff({"a":999}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapdiff({"a":999}); dump o
{
"a": 999
}
@ -257,7 +257,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapdiff({"a":999}); dump o
"a": 999
}
mlr --from ./reg_test/input/abixy-het put -q o = mapexcept($*); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapexcept($*); dump o
{
"a": "pan",
"b": "pan",
@ -329,7 +329,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapexcept($*); dump o
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapexcept({"a":999}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapexcept({"a":999}); dump o
{
"a": 999
}
@ -361,7 +361,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapexcept({"a":999}); dump o
"a": 999
}
mlr --from ./reg_test/input/abixy-het put -q o = mapselect($*); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapselect($*); dump o
{
}
{
@ -383,7 +383,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapselect($*); dump o
{
}
mlr --from ./reg_test/input/abixy-het put -q o = mapselect({"a":999}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapselect({"a":999}); dump o
{
}
{
@ -405,7 +405,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapselect({"a":999}); dump o
{
}
mlr --from ./reg_test/input/abixy-het put -q o = mapsum($*, {"a":999}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapsum($*, {"a":999}); dump o
{
"a": 999,
"b": "pan",
@ -479,7 +479,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapsum($*, {"a":999}); dump o
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapsum({"a":999}, $*); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapsum({"a":999}, $*); dump o
{
"a": "pan",
"b": "pan",
@ -553,7 +553,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapsum({"a":999}, $*); dump o
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapdiff($*, {"a":999}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapdiff($*, {"a":999}); dump o
{
"b": "pan",
"i": 1,
@ -617,7 +617,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapdiff($*, {"a":999}); dump o
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapdiff({"a":999}, $*); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapdiff({"a":999}, $*); dump o
{
}
{
@ -641,7 +641,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapdiff({"a":999}, $*); dump o
{
}
mlr --from ./reg_test/input/abixy-het put -q o = mapexcept($*, "a"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapexcept($*, "a"); dump o
{
"b": "pan",
"i": 1,
@ -705,7 +705,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapexcept($*, "a"); dump o
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapexcept({"a":999}, "a"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapexcept({"a":999}, "a"); dump o
{
}
{
@ -727,7 +727,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapexcept({"a":999}, "a"); dump
{
}
mlr --from ./reg_test/input/abixy-het put -q o = mapexcept({"a":999}, "nonesuch"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapexcept({"a":999}, "nonesuch"); dump o
{
"a": 999
}
@ -759,7 +759,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapexcept({"a":999}, "nonesuch"
"a": 999
}
mlr --from ./reg_test/input/abixy-het put -q o = mapselect($*, "a"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapselect($*, "a"); dump o
{
"a": "pan"
}
@ -789,7 +789,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapselect($*, "a"); dump o
"a": "pan"
}
mlr --from ./reg_test/input/abixy-het put -q o = mapselect({"a":999}, "a"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapselect({"a":999}, "a"); dump o
{
"a": 999
}
@ -821,7 +821,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapselect({"a":999}, "a"); dump
"a": 999
}
mlr --from ./reg_test/input/abixy-het put -q o = mapselect({"a":999}, "nonesuch"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapselect({"a":999}, "nonesuch"); dump o
{
}
{
@ -843,7 +843,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapselect({"a":999}, "nonesuch"
{
}
mlr --from ./reg_test/input/abixy-het put -q o = mapsum($*, {"a":999}, {"b": 444}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapsum($*, {"a":999}, {"b": 444}); dump o
{
"a": 999,
"b": 444,
@ -919,7 +919,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapsum($*, {"a":999}, {"b": 444
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapsum({"a":999}, $*, {"b": 444}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapsum({"a":999}, $*, {"b": 444}); dump o
{
"a": "pan",
"b": 444,
@ -995,7 +995,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapsum({"a":999}, $*, {"b": 444
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapdiff($*, {"a":999}, {"b": 444}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapdiff($*, {"a":999}, {"b": 444}); dump o
{
"i": 1,
"x": 0.3467901443380824,
@ -1051,7 +1051,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapdiff($*, {"a":999}, {"b": 44
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapdiff({"a":999}, $*, {"b": 444}); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapdiff({"a":999}, $*, {"b": 444}); dump o
{
}
{
@ -1075,7 +1075,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapdiff({"a":999}, $*, {"b": 44
{
}
mlr --from ./reg_test/input/abixy-het put -q o = mapexcept($*, "a", "b"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapexcept($*, "a", "b"); dump o
{
"i": 1,
"x": 0.3467901443380824,
@ -1131,7 +1131,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapexcept($*, "a", "b"); dump o
"y": 0.9526183602969864
}
mlr --from ./reg_test/input/abixy-het put -q o = mapselect({"a":999}, "b", "nonesuch"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapselect({"a":999}, "b", "nonesuch"); dump o
{
}
{
@ -1153,7 +1153,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapselect({"a":999}, "b", "none
{
}
mlr --from ./reg_test/input/abixy-het put -q o = mapselect($*, "a", "b"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapselect($*, "a", "b"); dump o
{
"a": "pan",
"b": "pan"
@ -1191,7 +1191,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = mapselect($*, "a", "b"); dump o
"b": "wye"
}
mlr --from ./reg_test/input/abixy-het put -q o = mapselect({"a":999}, "b", "nonesuch"); dump o
mlr --from ././reg-test/input/abixy-het put -q o = mapselect({"a":999}, "b", "nonesuch"); dump o
{
}
{

View file

@ -3,55 +3,55 @@
================================================================
MAPVAR ASSIGNMENTS TO FULL SREC
mlr --from ./reg_test/input/xyz2 put $* = {"a":1, "b": {"x":8,"y":9}, "c":3}
mlr --from ././reg-test/input/xyz2 put $* = {"a":1, "b": {"x":8,"y":9}, "c":3}
a=1,c=3
a=1,c=3
mlr --from ./reg_test/input/xyz2 put $* = $*
mlr --from ././reg-test/input/xyz2 put $* = $*
x=3,y=4,z=5
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @a = 1; $* = @a
mlr --from ././reg-test/input/xyz2 put @a = 1; $* = @a
mlr --from ./reg_test/input/xyz2 put @b[1] = 2; $* = @b
mlr --from ././reg-test/input/xyz2 put @b[1] = 2; $* = @b
1=2
1=2
mlr --from ./reg_test/input/xyz2 put @c[1][2] = 3; $* = @c
mlr --from ././reg-test/input/xyz2 put @c[1][2] = 3; $* = @c
mlr --from ./reg_test/input/xyz2 put @a = 1; $* = @*
mlr --from ././reg-test/input/xyz2 put @a = 1; $* = @*
a=1
a=1
mlr --from ./reg_test/input/xyz2 put @b[1] = 2; $* = @*
mlr --from ././reg-test/input/xyz2 put @b[1] = 2; $* = @*
mlr --from ./reg_test/input/xyz2 put @c[1][2] = 3; $* = @*
mlr --from ././reg-test/input/xyz2 put @c[1][2] = 3; $* = @*
mlr --from ./reg_test/input/xyz2 put a = 1; $* = a
mlr --from ././reg-test/input/xyz2 put a = 1; $* = a
mlr --from ./reg_test/input/xyz2 put b[1] = 2; $* = b
mlr --from ././reg-test/input/xyz2 put b[1] = 2; $* = b
1=2
1=2
mlr --from ./reg_test/input/xyz2 put c[1][2] = 3; $* = c
mlr --from ././reg-test/input/xyz2 put c[1][2] = 3; $* = c
mlr --from ./reg_test/input/xyz2 put $* = 3
mlr --from ././reg-test/input/xyz2 put $* = 3
mlr --from ./reg_test/input/xyz2 put
mlr --from ././reg-test/input/xyz2 put
func map_valued_func() {
return {"a":1,"b":2}
}
@ -61,7 +61,7 @@ mlr --from ./reg_test/input/xyz2 put
a=1,b=2
a=1,b=2
mlr --from ./reg_test/input/xyz2 put
mlr --from ././reg-test/input/xyz2 put
func map_valued_func() {
return {"a":1,"b":2}
}
@ -74,7 +74,7 @@ a=1,b=2
================================================================
MAPVAR ASSIGNMENTS TO FULL OOSVAR
mlr --from ./reg_test/input/xyz2 put @* = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump
mlr --from ././reg-test/input/xyz2 put @* = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump
{
"a": 1,
"b": {
@ -94,7 +94,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @* = $*; dump
mlr --from ././reg-test/input/xyz2 put @* = $*; dump
{
"x": 3,
"y": 4,
@ -108,7 +108,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @* = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump; @* = @*; dump
mlr --from ././reg-test/input/xyz2 put @* = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump; @* = @*; dump
{
"a": 1,
"b": {
@ -144,7 +144,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @a = 1; @* = @a; dump
mlr --from ././reg-test/input/xyz2 put @a = 1; @* = @a; dump
{
}
x=3,y=4,z=5
@ -152,7 +152,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @b[1] = 2; @* = @b; dump
mlr --from ././reg-test/input/xyz2 put @b[1] = 2; @* = @b; dump
{
"1": 2
}
@ -162,7 +162,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @c[1][2] = 3; @* = @c; dump
mlr --from ././reg-test/input/xyz2 put @c[1][2] = 3; @* = @c; dump
{
"1": {
"2": 3
@ -176,7 +176,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @a = 1; @* = @*; dump
mlr --from ././reg-test/input/xyz2 put @a = 1; @* = @*; dump
{
"a": 1
}
@ -186,7 +186,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @b[1] = 2; @* = @*; dump
mlr --from ././reg-test/input/xyz2 put @b[1] = 2; @* = @*; dump
{
"b": {
"1": 2
@ -200,7 +200,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @c[1][2] = 3; @* = @*; dump
mlr --from ././reg-test/input/xyz2 put @c[1][2] = 3; @* = @*; dump
{
"c": {
"1": {
@ -218,7 +218,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put a = 1; @* = a; dump
mlr --from ././reg-test/input/xyz2 put a = 1; @* = a; dump
{
}
x=3,y=4,z=5
@ -226,7 +226,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put b[1] = 2; @* = b; dump
mlr --from ././reg-test/input/xyz2 put b[1] = 2; @* = b; dump
{
"1": 2
}
@ -236,7 +236,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put c[1][2] = 3; @* = c; dump
mlr --from ././reg-test/input/xyz2 put c[1][2] = 3; @* = c; dump
{
"1": {
"2": 3
@ -250,11 +250,11 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put @* = 3
mlr --from ././reg-test/input/xyz2 put @* = 3
x=3,y=4,z=5
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put
mlr --from ././reg-test/input/xyz2 put
func map_valued_func() {
return {"a":1,"b":2}
}
@ -273,7 +273,7 @@ x=3,y=4,z=5
}
x=6,y=7,u=8
mlr --from ./reg_test/input/xyz2 put
mlr --from ././reg-test/input/xyz2 put
func map_valued_func() {
return {"a":1,"b":2}
}
@ -295,7 +295,7 @@ x=6,y=7,u=8
================================================================
MAPVAR ASSIGNMENTS TO OOSVAR
mlr --from ./reg_test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump @o
mlr --from ././reg-test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump @o
{
"a": 1,
"b": {
@ -313,11 +313,11 @@ mlr --from ./reg_test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3};
"c": 3
}
mlr --from ./reg_test/input/xyz2 put -q @o = @o; dump @o
mlr --from ././reg-test/input/xyz2 put -q @o = @o; dump @o
mlr --from ./reg_test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump; @o = @*; dump
mlr --from ././reg-test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump; @o = @*; dump
{
"o": {
"a": 1,
@ -363,7 +363,7 @@ mlr --from ./reg_test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3};
}
}
mlr --from ./reg_test/input/xyz2 put -q @o = $*; dump @o
mlr --from ././reg-test/input/xyz2 put -q @o = $*; dump @o
{
"x": 3,
"y": 4,
@ -375,7 +375,7 @@ mlr --from ./reg_test/input/xyz2 put -q @o = $*; dump @o
"u": 8
}
mlr --from ./reg_test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump @o; @o = @o; dump @o
mlr --from ././reg-test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump @o; @o = @o; dump @o
{
"a": 1,
"b": {
@ -409,7 +409,7 @@ mlr --from ./reg_test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3};
"c": 3
}
mlr --from ./reg_test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3}; @o = @o; dump @o
mlr --from ././reg-test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3}; @o = @o; dump @o
{
"a": 1,
"b": {
@ -427,11 +427,11 @@ mlr --from ./reg_test/input/xyz2 put -q @o = {"a":1, "b": {"x":8,"y":9}, "c":3};
"c": 3
}
mlr --from ./reg_test/input/xyz2 put -q @a = 1; @o = @a; dump @o
mlr --from ././reg-test/input/xyz2 put -q @a = 1; @o = @a; dump @o
1
1
mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; @o = @b; dump @o
mlr --from ././reg-test/input/xyz2 put -q @b[1] = 2; @o = @b; dump @o
{
"1": 2
}
@ -439,7 +439,7 @@ mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; @o = @b; dump @o
"1": 2
}
mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; @o = @c; dump @o
mlr --from ././reg-test/input/xyz2 put -q @c[1][2] = 3; @o = @c; dump @o
{
"1": {
"2": 3
@ -451,7 +451,7 @@ mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; @o = @c; dump @o
}
}
mlr --from ./reg_test/input/xyz2 put -q @a = 1; @o = @*; dump @o
mlr --from ././reg-test/input/xyz2 put -q @a = 1; @o = @*; dump @o
{
"a": 1
}
@ -462,7 +462,7 @@ mlr --from ./reg_test/input/xyz2 put -q @a = 1; @o = @*; dump @o
}
}
mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; @o = @*; dump @o
mlr --from ././reg-test/input/xyz2 put -q @b[1] = 2; @o = @*; dump @o
{
"b": {
"1": 2
@ -479,7 +479,7 @@ mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; @o = @*; dump @o
}
}
mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; @o = @*; dump @o
mlr --from ././reg-test/input/xyz2 put -q @c[1][2] = 3; @o = @*; dump @o
{
"c": {
"1": {
@ -502,11 +502,11 @@ mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; @o = @*; dump @o
}
}
mlr --from ./reg_test/input/xyz2 put -q a = 1; @o = a; dump @o
mlr --from ././reg-test/input/xyz2 put -q a = 1; @o = a; dump @o
1
1
mlr --from ./reg_test/input/xyz2 put -q b[1] = 2; @o = b; dump @o
mlr --from ././reg-test/input/xyz2 put -q b[1] = 2; @o = b; dump @o
{
"1": 2
}
@ -514,7 +514,7 @@ mlr --from ./reg_test/input/xyz2 put -q b[1] = 2; @o = b; dump @o
"1": 2
}
mlr --from ./reg_test/input/xyz2 put -q c[1][2] = 3; @o = c; dump @o
mlr --from ././reg-test/input/xyz2 put -q c[1][2] = 3; @o = c; dump @o
{
"1": {
"2": 3
@ -526,7 +526,7 @@ mlr --from ./reg_test/input/xyz2 put -q c[1][2] = 3; @o = c; dump @o
}
}
mlr --from ./reg_test/input/xyz2 put -q func map_valued_func() { return {"a":1,"b":2}} @o = map_valued_func(); dump @o
mlr --from ././reg-test/input/xyz2 put -q func map_valued_func() { return {"a":1,"b":2}} @o = map_valued_func(); dump @o
{
"a": 1,
"b": 2
@ -540,7 +540,7 @@ mlr --from ./reg_test/input/xyz2 put -q func map_valued_func() { return {"a":1,"
================================================================
MAPVAR ASSIGNMENTS TO MAP-TYPED LOCAL
mlr --from ./reg_test/input/xyz2 put -q map o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump o
mlr --from ././reg-test/input/xyz2 put -q map o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump o
{
"a": 1,
"b": {
@ -558,10 +558,10 @@ mlr --from ./reg_test/input/xyz2 put -q map o = {"a":1, "b": {"x":8,"y":9}, "c":
"c": 3
}
mlr --from ./reg_test/input/xyz2 put -q map o = @o; dump o
mlr --from ././reg-test/input/xyz2 put -q map o = @o; dump o
mlr: map type assertion for variable o unmet by value "" with type absent.
mlr --from ./reg_test/input/xyz2 put -q map o = $*; dump o
mlr --from ././reg-test/input/xyz2 put -q map o = $*; dump o
{
"x": 3,
"y": 4,
@ -573,7 +573,7 @@ mlr --from ./reg_test/input/xyz2 put -q map o = $*; dump o
"u": 8
}
mlr --from ./reg_test/input/xyz2 put -q map o = {"a":1, "b": {"x":8,"y":9}, "c":3}; o = o; dump o
mlr --from ././reg-test/input/xyz2 put -q map o = {"a":1, "b": {"x":8,"y":9}, "c":3}; o = o; dump o
{
"a": 1,
"b": {
@ -591,10 +591,10 @@ mlr --from ./reg_test/input/xyz2 put -q map o = {"a":1, "b": {"x":8,"y":9}, "c":
"c": 3
}
mlr --from ./reg_test/input/xyz2 put -q @a = 1; map o = @a; dump o
mlr --from ././reg-test/input/xyz2 put -q @a = 1; map o = @a; dump o
mlr: map type assertion for variable o unmet by value 1 with type int.
mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; map o = @b; dump o
mlr --from ././reg-test/input/xyz2 put -q @b[1] = 2; map o = @b; dump o
{
"1": 2
}
@ -602,7 +602,7 @@ mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; map o = @b; dump o
"1": 2
}
mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; map o = @c; dump o
mlr --from ././reg-test/input/xyz2 put -q @c[1][2] = 3; map o = @c; dump o
{
"1": {
"2": 3
@ -614,7 +614,7 @@ mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; map o = @c; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q @a = 1; map o = @*; dump o
mlr --from ././reg-test/input/xyz2 put -q @a = 1; map o = @*; dump o
{
"a": 1
}
@ -622,7 +622,7 @@ mlr --from ./reg_test/input/xyz2 put -q @a = 1; map o = @*; dump o
"a": 1
}
mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; map o = @*; dump o
mlr --from ././reg-test/input/xyz2 put -q @b[1] = 2; map o = @*; dump o
{
"b": {
"1": 2
@ -634,7 +634,7 @@ mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; map o = @*; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; map o = @*; dump o
mlr --from ././reg-test/input/xyz2 put -q @c[1][2] = 3; map o = @*; dump o
{
"c": {
"1": {
@ -650,10 +650,10 @@ mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; map o = @*; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q a = 1; map o = a; dump o
mlr --from ././reg-test/input/xyz2 put -q a = 1; map o = a; dump o
mlr: map type assertion for variable o unmet by value 1 with type int.
mlr --from ./reg_test/input/xyz2 put -q b[1] = 2; map o = b; dump o
mlr --from ././reg-test/input/xyz2 put -q b[1] = 2; map o = b; dump o
{
"1": 2
}
@ -661,7 +661,7 @@ mlr --from ./reg_test/input/xyz2 put -q b[1] = 2; map o = b; dump o
"1": 2
}
mlr --from ./reg_test/input/xyz2 put -q c[1][2] = 3; map o = c; dump o
mlr --from ././reg-test/input/xyz2 put -q c[1][2] = 3; map o = c; dump o
{
"1": {
"2": 3
@ -673,7 +673,7 @@ mlr --from ./reg_test/input/xyz2 put -q c[1][2] = 3; map o = c; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q func map_valued_func() { return {"a":1,"b":2}} map o = map_valued_func(); dump o
mlr --from ././reg-test/input/xyz2 put -q func map_valued_func() { return {"a":1,"b":2}} map o = map_valued_func(); dump o
{
"a": 1,
"b": 2
@ -687,7 +687,7 @@ mlr --from ./reg_test/input/xyz2 put -q func map_valued_func() { return {"a":1,"
================================================================
MAPVAR ASSIGNMENTS TO VAR-TYPED LOCAL
mlr --from ./reg_test/input/xyz2 put -q var o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump o
mlr --from ././reg-test/input/xyz2 put -q var o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump o
{
"a": 1,
"b": {
@ -705,11 +705,11 @@ mlr --from ./reg_test/input/xyz2 put -q var o = {"a":1, "b": {"x":8,"y":9}, "c":
"c": 3
}
mlr --from ./reg_test/input/xyz2 put -q var o = @o; dump o
mlr --from ././reg-test/input/xyz2 put -q var o = @o; dump o
mlr --from ./reg_test/input/xyz2 put -q var o = $*; dump o
mlr --from ././reg-test/input/xyz2 put -q var o = $*; dump o
{
"x": 3,
"y": 4,
@ -721,7 +721,7 @@ mlr --from ./reg_test/input/xyz2 put -q var o = $*; dump o
"u": 8
}
mlr --from ./reg_test/input/xyz2 put -q var o = {"a":1, "b": {"x":8,"y":9}, "c":3}; o = o; dump o
mlr --from ././reg-test/input/xyz2 put -q var o = {"a":1, "b": {"x":8,"y":9}, "c":3}; o = o; dump o
{
"a": 1,
"b": {
@ -739,11 +739,11 @@ mlr --from ./reg_test/input/xyz2 put -q var o = {"a":1, "b": {"x":8,"y":9}, "c":
"c": 3
}
mlr --from ./reg_test/input/xyz2 put -q @a = 1; var o = @a; dump o
mlr --from ././reg-test/input/xyz2 put -q @a = 1; var o = @a; dump o
1
1
mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; var o = @b; dump o
mlr --from ././reg-test/input/xyz2 put -q @b[1] = 2; var o = @b; dump o
{
"1": 2
}
@ -751,7 +751,7 @@ mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; var o = @b; dump o
"1": 2
}
mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; var o = @c; dump o
mlr --from ././reg-test/input/xyz2 put -q @c[1][2] = 3; var o = @c; dump o
{
"1": {
"2": 3
@ -763,7 +763,7 @@ mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; var o = @c; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q @a = 1; var o = @*; dump o
mlr --from ././reg-test/input/xyz2 put -q @a = 1; var o = @*; dump o
{
"a": 1
}
@ -771,7 +771,7 @@ mlr --from ./reg_test/input/xyz2 put -q @a = 1; var o = @*; dump o
"a": 1
}
mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; var o = @*; dump o
mlr --from ././reg-test/input/xyz2 put -q @b[1] = 2; var o = @*; dump o
{
"b": {
"1": 2
@ -783,7 +783,7 @@ mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; var o = @*; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; var o = @*; dump o
mlr --from ././reg-test/input/xyz2 put -q @c[1][2] = 3; var o = @*; dump o
{
"c": {
"1": {
@ -799,11 +799,11 @@ mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; var o = @*; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q a = 1; var o = a; dump o
mlr --from ././reg-test/input/xyz2 put -q a = 1; var o = a; dump o
1
1
mlr --from ./reg_test/input/xyz2 put -q b[1] = 2; var o = b; dump o
mlr --from ././reg-test/input/xyz2 put -q b[1] = 2; var o = b; dump o
{
"1": 2
}
@ -811,7 +811,7 @@ mlr --from ./reg_test/input/xyz2 put -q b[1] = 2; var o = b; dump o
"1": 2
}
mlr --from ./reg_test/input/xyz2 put -q c[1][2] = 3; var o = c; dump o
mlr --from ././reg-test/input/xyz2 put -q c[1][2] = 3; var o = c; dump o
{
"1": {
"2": 3
@ -823,7 +823,7 @@ mlr --from ./reg_test/input/xyz2 put -q c[1][2] = 3; var o = c; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q func map_valued_func() { return {"a":1,"b":2}} var o = map_valued_func(); dump o
mlr --from ././reg-test/input/xyz2 put -q func map_valued_func() { return {"a":1,"b":2}} var o = map_valued_func(); dump o
{
"a": 1,
"b": 2
@ -837,7 +837,7 @@ mlr --from ./reg_test/input/xyz2 put -q func map_valued_func() { return {"a":1,"
================================================================
MAPVAR ASSIGNMENTS TO UNTYPED LOCAL
mlr --from ./reg_test/input/xyz2 put -q o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump o
mlr --from ././reg-test/input/xyz2 put -q o = {"a":1, "b": {"x":8,"y":9}, "c":3}; dump o
{
"a": 1,
"b": {
@ -855,11 +855,11 @@ mlr --from ./reg_test/input/xyz2 put -q o = {"a":1, "b": {"x":8,"y":9}, "c":3};
"c": 3
}
mlr --from ./reg_test/input/xyz2 put -q o = @o; dump o
mlr --from ././reg-test/input/xyz2 put -q o = @o; dump o
mlr --from ./reg_test/input/xyz2 put -q o = $*; dump o
mlr --from ././reg-test/input/xyz2 put -q o = $*; dump o
{
"x": 3,
"y": 4,
@ -871,7 +871,7 @@ mlr --from ./reg_test/input/xyz2 put -q o = $*; dump o
"u": 8
}
mlr --from ./reg_test/input/xyz2 put -q o = {"a":1, "b": {"x":8,"y":9}, "c":3}; o = o; dump o
mlr --from ././reg-test/input/xyz2 put -q o = {"a":1, "b": {"x":8,"y":9}, "c":3}; o = o; dump o
{
"a": 1,
"b": {
@ -889,11 +889,11 @@ mlr --from ./reg_test/input/xyz2 put -q o = {"a":1, "b": {"x":8,"y":9}, "c":3};
"c": 3
}
mlr --from ./reg_test/input/xyz2 put -q @a = 1; o = @a; dump o
mlr --from ././reg-test/input/xyz2 put -q @a = 1; o = @a; dump o
1
1
mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; o = @b; dump o
mlr --from ././reg-test/input/xyz2 put -q @b[1] = 2; o = @b; dump o
{
"1": 2
}
@ -901,7 +901,7 @@ mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; o = @b; dump o
"1": 2
}
mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; o = @c; dump o
mlr --from ././reg-test/input/xyz2 put -q @c[1][2] = 3; o = @c; dump o
{
"1": {
"2": 3
@ -913,7 +913,7 @@ mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; o = @c; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q @a = 1; o = @*; dump o
mlr --from ././reg-test/input/xyz2 put -q @a = 1; o = @*; dump o
{
"a": 1
}
@ -921,7 +921,7 @@ mlr --from ./reg_test/input/xyz2 put -q @a = 1; o = @*; dump o
"a": 1
}
mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; o = @*; dump o
mlr --from ././reg-test/input/xyz2 put -q @b[1] = 2; o = @*; dump o
{
"b": {
"1": 2
@ -933,7 +933,7 @@ mlr --from ./reg_test/input/xyz2 put -q @b[1] = 2; o = @*; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; o = @*; dump o
mlr --from ././reg-test/input/xyz2 put -q @c[1][2] = 3; o = @*; dump o
{
"c": {
"1": {
@ -949,11 +949,11 @@ mlr --from ./reg_test/input/xyz2 put -q @c[1][2] = 3; o = @*; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q a = 1; o = a; dump o
mlr --from ././reg-test/input/xyz2 put -q a = 1; o = a; dump o
1
1
mlr --from ./reg_test/input/xyz2 put -q b[1] = 2; o = b; dump o
mlr --from ././reg-test/input/xyz2 put -q b[1] = 2; o = b; dump o
{
"1": 2
}
@ -961,7 +961,7 @@ mlr --from ./reg_test/input/xyz2 put -q b[1] = 2; o = b; dump o
"1": 2
}
mlr --from ./reg_test/input/xyz2 put -q c[1][2] = 3; o = c; dump o
mlr --from ././reg-test/input/xyz2 put -q c[1][2] = 3; o = c; dump o
{
"1": {
"2": 3
@ -973,7 +973,7 @@ mlr --from ./reg_test/input/xyz2 put -q c[1][2] = 3; o = c; dump o
}
}
mlr --from ./reg_test/input/xyz2 put -q func map_valued_func() { return {"a":1,"b":2}} o = map_valued_func(); dump o
mlr --from ././reg-test/input/xyz2 put -q func map_valued_func() { return {"a":1,"b":2}} o = map_valued_func(); dump o
{
"a": 1,
"b": 2

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy put -q
mlr --from ././reg-test/input/abixy put -q
func f() {
return {
"a:".$a: $i,

View file

@ -3,13 +3,13 @@
================================================================
MAPVARS IN SCALAR FUNCTION-CALL CONTEXTS
mlr --from ./reg_test/input/abixy put $z=strlen($*)
mlr --from ././reg-test/input/abixy put $z=strlen($*)
mlr: $* is not valid within scalar contexts.
mlr --from ./reg_test/input/abixy put $z=strlen({})
mlr --from ././reg-test/input/abixy put $z=strlen({})
mlr: map-literals are not valid within scalar contexts.
mlr --from ./reg_test/input/abixy put a={}; $z=strlen(a)
mlr --from ././reg-test/input/abixy put a={}; $z=strlen(a)
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(m) {
dump m;
sum = 0;
@ -97,7 +97,7 @@ a=hat,b=wye,i=9,x=0.03144187646093577,y=45
}
a=pan,b=wye,i=10,x=0.5026260055412137,y=55
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
subr s(m) {
dump m;
sum = 0;
@ -196,7 +196,7 @@ a=hat,b=wye,i=9,x=0.03144187646093577,y=45
}
a=pan,b=wye,i=10,x=0.5026260055412137,y=55
mlr --from ./reg_test/input/abixy-het put func f(x) {return {"a":x,"b":x**2}}; map o = f($x); $* = o
mlr --from ././reg-test/input/abixy-het put func f(x) {return {"a":x,"b":x**2}}; map o = f($x); $* = o
a=0.346790,b=0.120263
a=0.758680,b=0.575595
a=0.204603,b=0.041863
@ -208,7 +208,7 @@ a=0.598554,b=0.358267
a=0.031442,b=0.000989
a=0.502626,b=0.252633
mlr --from ./reg_test/input/abixy-het put -q func f(x) {return x**2}; var z = f($x); dump z
mlr --from ././reg-test/input/abixy-het put -q func f(x) {return x**2}; var z = f($x); dump z
0.120263
0.575595
0.041863
@ -220,7 +220,7 @@ mlr --from ./reg_test/input/abixy-het put -q func f(x) {return x**2}; var z = f(
0.000989
0.252633
mlr --from ./reg_test/input/abixy-het put -q func f(x) {map m = {NR:x};return m}; z = f($y); dump z
mlr --from ././reg-test/input/abixy-het put -q func f(x) {map m = {NR:x};return m}; z = f($y); dump z
{
"1": 0.726803
}
@ -252,7 +252,7 @@ mlr --from ./reg_test/input/abixy-het put -q func f(x) {map m = {NR:x};return m}
"10": 0.952618
}
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(int x): map {
if (NR==2) {
return 2
@ -264,7 +264,7 @@ mlr --from ./reg_test/input/abixy put
mlr: int type assertion for variable x unmet by value 0.346790 with type float.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(int x): map {
if (NR==200) {
return 2
@ -285,7 +285,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(int x): map {
if (NR==200) {
return 2
@ -297,7 +297,7 @@ mlr --from ./reg_test/input/abixy put
mlr: int type assertion for variable x unmet by value 0.346790 with type float.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(int x): var {
if (NR==2) {
return 2
@ -318,7 +318,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(int x): var {
if (NR==2) {
return 2
@ -330,7 +330,7 @@ mlr --from ./reg_test/input/abixy put
mlr: int type assertion for variable x unmet by value 0.346790 with type float.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(x): int {
# fall-through return value is absent-null
}
@ -338,13 +338,13 @@ mlr --from ./reg_test/input/abixy put
mlr: function f returned type absent, not matching typedecl int.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
int a = 1;
var b = a[2]; # cannot index localvar declared non-map
mlr: int type assertion for variable a unmet on read.
mlr --oxtab --from ./reg_test/input/abixy-het put
mlr --oxtab --from ././reg-test/input/abixy-het put
$* = mapdiff(
mapsum($*, {"a": "newval"}),
{"b": "nonesuch"},

View file

@ -1,5 +1,5 @@
mlr --opprint --from ./reg_test/input/abixy put -f ./reg_test/input/put-script-piece-1
mlr --opprint --from ././reg-test/input/abixy put -f ././reg-test/input/put-script-piece-1
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -12,7 +12,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put -f ./reg_test/input/put-script-piece-1 -f ./reg_test/input/put-script-piece-2
mlr --opprint --from ././reg-test/input/abixy put -f ././reg-test/input/put-script-piece-1 -f ././reg-test/input/put-script-piece-2
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -25,7 +25,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put -f ./reg_test/input/put-script-piece-1 -f ./reg_test/input/put-script-piece-2 -f ./reg_test/input/put-script-piece-3
mlr --opprint --from ././reg-test/input/abixy put -f ././reg-test/input/put-script-piece-1 -f ././reg-test/input/put-script-piece-2 -f ././reg-test/input/put-script-piece-3
a b i x y o W DID
pan pan 1 0.3467901443380824 0.7268028627434533 2.073593 1 YES
eks pan 2 0.7586799647899636 0.5221511083334797 3.280831 2 YES
@ -38,7 +38,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9.574735 8 YES
hat wye 9 0.03144187646093577 0.7495507603507059 9.780993 9 YES
pan wye 10 0.5026260055412137 0.9526183602969864 11.455244 10 YES
mlr --opprint --from ./reg_test/input/abixy put -e $xy = $x**2 + $y**2
mlr --opprint --from ././reg-test/input/abixy put -e $xy = $x**2 + $y**2
a b i x y xy
pan pan 1 0.3467901443380824 0.7268028627434533 0.648506
eks pan 2 0.7586799647899636 0.5221511083334797 0.848237
@ -51,11 +51,11 @@ zee wye 8 0.5985540091064224 0.976181385699006 1.311197
hat wye 9 0.03144187646093577 0.7495507603507059 0.562815
pan wye 10 0.5026260055412137 0.9526183602969864 1.160115
mlr --opprint --from ./reg_test/input/abixy filter -e NR == 7
mlr --opprint --from ././reg-test/input/abixy filter -e NR == 7
a b i x y
eks zee 7 0.6117840605678454 0.1878849191181694
mlr --opprint --from ./reg_test/input/abixy put -e print "PRE"; -f ./reg_test/input/put-script-piece-1 -f ./reg_test/input/put-script-piece-2 -f ./reg_test/input/put-script-piece-3 -e print "POST"
mlr --opprint --from ././reg-test/input/abixy put -e print "PRE"; -f ././reg-test/input/put-script-piece-1 -f ././reg-test/input/put-script-piece-2 -f ././reg-test/input/put-script-piece-3 -e print "POST"
PRE
POST
PRE
@ -88,7 +88,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9.574735 8 YES
hat wye 9 0.03144187646093577 0.7495507603507059 9.780993 9 YES
pan wye 10 0.5026260055412137 0.9526183602969864 11.455244 10 YES
mlr --opprint --from ./reg_test/input/abixy filter -f ./reg_test/input/filter-script-piece-1
mlr --opprint --from ././reg-test/input/abixy filter -f ././reg-test/input/filter-script-piece-1
a b i x y
eks pan 2 0.7586799647899636 0.5221511083334797
wye pan 5 0.5732889198020006 0.8636244699032729
@ -97,7 +97,7 @@ eks zee 7 0.6117840605678454 0.1878849191181694
zee wye 8 0.5985540091064224 0.976181385699006
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy filter -f ./reg_test/input/filter-script-piece-1 -f ./reg_test/input/filter-script-piece-2
mlr --opprint --from ././reg-test/input/abixy filter -f ././reg-test/input/filter-script-piece-1 -f ././reg-test/input/filter-script-piece-2
a b i x y
eks pan 2 0.7586799647899636 0.5221511083334797

View file

@ -1,82 +1,82 @@
mlr put $z = $s . $s ./reg_test/input/null-vs-empty.dkvp
mlr put $z = $s . $s ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,z=hellohello
x=1,y=,s=,z=
x=,y=,s=hurrah,z=hurrahhurrah
mlr put $z = $s == "" ./reg_test/input/null-vs-empty.dkvp
mlr put $z = $s == "" ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,z=false
x=1,y=,s=,z=true
x=,y=,s=hurrah,z=false
mlr put $z = $s == $s ./reg_test/input/null-vs-empty.dkvp
mlr put $z = $s == $s ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,z=true
x=1,y=,s=,z=true
x=,y=,s=hurrah,z=true
mlr put $z = is_empty($s) ./reg_test/input/null-vs-empty.dkvp
mlr put $z = is_empty($s) ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,z=false
x=1,y=,s=,z=true
x=,y=,s=hurrah,z=false
mlr put $z = $x + $y ./reg_test/input/null-vs-empty.dkvp
mlr put $z = $x + $y ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,z=3
x=1,y=,s=,z=
x=,y=,s=hurrah,z=
mlr put $z = $y + $y ./reg_test/input/null-vs-empty.dkvp
mlr put $z = $y + $y ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,z=4
x=1,y=,s=,z=
x=,y=,s=hurrah,z=
mlr put $z = $x + $nosuch ./reg_test/input/null-vs-empty.dkvp
mlr put $z = $x + $nosuch ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,z=1
x=1,y=,s=,z=1
x=,y=,s=hurrah
mlr put $t = sub($s, "ell", "X") ./reg_test/input/null-vs-empty.dkvp
mlr put $t = sub($s, "ell", "X") ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,t=hXo
x=1,y=,s=,t=
x=,y=,s=hurrah,t=hurrah
mlr put $t = sub($s, "ell", "") ./reg_test/input/null-vs-empty.dkvp
mlr put $t = sub($s, "ell", "") ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,t=ho
x=1,y=,s=,t=
x=,y=,s=hurrah,t=hurrah
mlr put $t = sub($nosuch, "ell", "X") ./reg_test/input/null-vs-empty.dkvp
mlr put $t = sub($nosuch, "ell", "X") ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello
x=1,y=,s=
x=,y=,s=hurrah
mlr put $t = gsub($s, "l", "X") ./reg_test/input/null-vs-empty.dkvp
mlr put $t = gsub($s, "l", "X") ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,t=heXXo
x=1,y=,s=,t=
x=,y=,s=hurrah,t=hurrah
mlr put $t = gsub($s, "l", "") ./reg_test/input/null-vs-empty.dkvp
mlr put $t = gsub($s, "l", "") ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello,t=heo
x=1,y=,s=,t=
x=,y=,s=hurrah,t=hurrah
mlr put $t = gsub($nosuch, "l", "X") ./reg_test/input/null-vs-empty.dkvp
mlr put $t = gsub($nosuch, "l", "X") ././reg-test/input/null-vs-empty.dkvp
x=1,y=2,s=hello
x=1,y=,s=
x=,y=,s=hurrah
---------------------------------------------------------------- EMIT
mlr put -q @v=1; @nonesuch {emit @v} ./reg_test/input/abixy
mlr put -q @v=1; @nonesuch {emit @v} ././reg-test/input/abixy
mlr put -q @v=1; @nonesuch==true {emit @v} ./reg_test/input/abixy
mlr put -q @v=1; @nonesuch==true {emit @v} ././reg-test/input/abixy
mlr put -q @v=1; $nonesuch {emit @v} ./reg_test/input/abixy
mlr put -q @v=1; $nonesuch {emit @v} ././reg-test/input/abixy
mlr put -q @v=1; $nonesuch==true {emit @v} ./reg_test/input/abixy
mlr put -q @v=1; $nonesuch==true {emit @v} ././reg-test/input/abixy
---------------------------------------------------------------- PLUS
mlr --ofs tab put begin{}; $xy = $x + $y; $sy = @s + $y; $xt = $x + @t; $st = @s + @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{}; $xy = $x + $y; $sy = @s + $y; $xt = $x + @t; $st = @s + @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=2 xt=1
x=1 y= xy= xt=1
x= y=2 xy= sy=2
@ -90,7 +90,7 @@ x=1 b= xy=1 xt=1
x= b=2
x= b=
mlr --ofs tab put begin{@s=3}; $xy = $x + $y; $sy = @s + $y; $xt = $x + @t; $st = @s + @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3}; $xy = $x + $y; $sy = @s + $y; $xt = $x + @t; $st = @s + @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=5 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=5 st=3
@ -104,7 +104,7 @@ x=1 b= xy=1 sy=3 xt=1 st=3
x= b=2 sy=3 st=3
x= b= sy=3 st=3
mlr --ofs tab put begin{@t=4}; $xy = $x + $y; $sy = @s + $y; $xt = $x + @t; $st = @s + @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@t=4}; $xy = $x + $y; $sy = @s + $y; $xt = $x + @t; $st = @s + @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=2 xt=5 st=4
x=1 y= xy= xt=5 st=4
x= y=2 xy= sy=2 xt= st=4
@ -118,7 +118,7 @@ x=1 b= xy=1 xt=5 st=4
x= b=2 xt= st=4
x= b= xt= st=4
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x + $y; $sy = @s + $y; $xt = $x + @t; $st = @s + @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x + $y; $sy = @s + $y; $xt = $x + @t; $st = @s + @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=5 xt=5 st=7
x=1 y= xy= sy= xt=5 st=7
x= y=2 xy= sy=5 xt= st=7
@ -134,7 +134,7 @@ x= b= sy=3 xt= st=7
---------------------------------------------------------------- MINUS
mlr --ofs tab put begin{}; $xy = $x - $y; $sy = @s - $y; $xt = $x - @t; $st = @s - @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{}; $xy = $x - $y; $sy = @s - $y; $xt = $x - @t; $st = @s - @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=-1 sy=2 xt=1
x=1 y= xy= xt=1
x= y=2 xy= sy=2
@ -148,7 +148,7 @@ x=1 b= xy=1 xt=1
x= b=2
x= b=
mlr --ofs tab put begin{@s=3}; $xy = $x - $y; $sy = @s - $y; $xt = $x - @t; $st = @s - @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3}; $xy = $x - $y; $sy = @s - $y; $xt = $x - @t; $st = @s - @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=-1 sy=1 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=1 st=3
@ -162,7 +162,7 @@ x=1 b= xy=1 sy=3 xt=1 st=3
x= b=2 sy=3 st=3
x= b= sy=3 st=3
mlr --ofs tab put begin{@t=4}; $xy = $x - $y; $sy = @s - $y; $xt = $x - @t; $st = @s - @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@t=4}; $xy = $x - $y; $sy = @s - $y; $xt = $x - @t; $st = @s - @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=-1 sy=2 xt=-3 st=4
x=1 y= xy= xt=-3 st=4
x= y=2 xy= sy=2 xt= st=4
@ -176,7 +176,7 @@ x=1 b= xy=1 xt=-3 st=4
x= b=2 xt= st=4
x= b= xt= st=4
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x - $y; $sy = @s - $y; $xt = $x - @t; $st = @s - @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x - $y; $sy = @s - $y; $xt = $x - @t; $st = @s - @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=-1 sy=1 xt=-3 st=-1
x=1 y= xy= sy= xt=-3 st=-1
x= y=2 xy= sy=1 xt= st=-1
@ -192,7 +192,7 @@ x= b= sy=3 xt= st=-1
---------------------------------------------------------------- TIMES
mlr --ofs tab put begin{}; $xy = $x * $y; $sy = @s * $y; $xt = $x * @t; $st = @s * @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{}; $xy = $x * $y; $sy = @s * $y; $xt = $x * @t; $st = @s * @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=2 sy=2 xt=1
x=1 y= xy= xt=1
x= y=2 xy= sy=2
@ -206,7 +206,7 @@ x=1 b= xy=1 xt=1
x= b=2
x= b=
mlr --ofs tab put begin{@s=3}; $xy = $x * $y; $sy = @s * $y; $xt = $x * @t; $st = @s * @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3}; $xy = $x * $y; $sy = @s * $y; $xt = $x * @t; $st = @s * @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=2 sy=6 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=6 st=3
@ -220,7 +220,7 @@ x=1 b= xy=1 sy=3 xt=1 st=3
x= b=2 sy=3 st=3
x= b= sy=3 st=3
mlr --ofs tab put begin{@t=4}; $xy = $x * $y; $sy = @s * $y; $xt = $x * @t; $st = @s * @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@t=4}; $xy = $x * $y; $sy = @s * $y; $xt = $x * @t; $st = @s * @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=2 sy=2 xt=4 st=4
x=1 y= xy= xt=4 st=4
x= y=2 xy= sy=2 xt= st=4
@ -234,7 +234,7 @@ x=1 b= xy=1 xt=4 st=4
x= b=2 xt= st=4
x= b= xt= st=4
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x * $y; $sy = @s * $y; $xt = $x * @t; $st = @s * @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x * $y; $sy = @s * $y; $xt = $x * @t; $st = @s * @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=2 sy=6 xt=4 st=12
x=1 y= xy= sy= xt=4 st=12
x= y=2 xy= sy=6 xt= st=12
@ -250,7 +250,7 @@ x= b= sy=3 xt= st=12
---------------------------------------------------------------- DIVIDE
mlr --ofs tab put begin{}; $xy = $x / $y; $sy = @s / $y; $xt = $x / @t; $st = @s / @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{}; $xy = $x / $y; $sy = @s / $y; $xt = $x / @t; $st = @s / @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0.500000 sy=0 xt=1
x=1 y= xy= xt=1
x= y=2 xy= sy=0
@ -264,7 +264,7 @@ x=1 b= xy=1 xt=1
x= b=2
x= b=
mlr --ofs tab put begin{@s=3}; $xy = $x / $y; $sy = @s / $y; $xt = $x / @t; $st = @s / @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3}; $xy = $x / $y; $sy = @s / $y; $xt = $x / @t; $st = @s / @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0.500000 sy=1.500000 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=1.500000 st=3
@ -278,7 +278,7 @@ x=1 b= xy=1 sy=3 xt=1 st=3
x= b=2 sy=3 st=3
x= b= sy=3 st=3
mlr --ofs tab put begin{@t=4}; $xy = $x / $y; $sy = @s / $y; $xt = $x / @t; $st = @s / @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@t=4}; $xy = $x / $y; $sy = @s / $y; $xt = $x / @t; $st = @s / @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0.500000 sy=0 xt=0.250000 st=0
x=1 y= xy= xt=0.250000 st=0
x= y=2 xy= sy=0 xt= st=0
@ -292,7 +292,7 @@ x=1 b= xy=1 xt=0.250000 st=0
x= b=2 xt= st=0
x= b= xt= st=0
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x / $y; $sy = @s / $y; $xt = $x / @t; $st = @s / @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x / $y; $sy = @s / $y; $xt = $x / @t; $st = @s / @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0.500000 sy=1.500000 xt=0.250000 st=0.750000
x=1 y= xy= sy= xt=0.250000 st=0.750000
x= y=2 xy= sy=1.500000 xt= st=0.750000
@ -308,7 +308,7 @@ x= b= sy=3 xt= st=0.750000
---------------------------------------------------------------- INTEGER DIVIDE
mlr --ofs tab put begin{}; $xy = $x // $y; $sy = @s // $y; $xt = $x // @t; $st = @s // @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{}; $xy = $x // $y; $sy = @s // $y; $xt = $x // @t; $st = @s // @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0 sy=0 xt=1
x=1 y= xy= xt=1
x= y=2 xy= sy=0
@ -322,7 +322,7 @@ x=1 b= xy=1 xt=1
x= b=2
x= b=
mlr --ofs tab put begin{@s=3}; $xy = $x // $y; $sy = @s // $y; $xt = $x // @t; $st = @s // @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3}; $xy = $x // $y; $sy = @s // $y; $xt = $x // @t; $st = @s // @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0 sy=1 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=1 st=3
@ -336,7 +336,7 @@ x=1 b= xy=1 sy=3 xt=1 st=3
x= b=2 sy=3 st=3
x= b= sy=3 st=3
mlr --ofs tab put begin{@t=4}; $xy = $x // $y; $sy = @s // $y; $xt = $x // @t; $st = @s // @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@t=4}; $xy = $x // $y; $sy = @s // $y; $xt = $x // @t; $st = @s // @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0 sy=0 xt=0 st=0
x=1 y= xy= xt=0 st=0
x= y=2 xy= sy=0 xt= st=0
@ -350,7 +350,7 @@ x=1 b= xy=1 xt=0 st=0
x= b=2 xt= st=0
x= b= xt= st=0
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x // $y; $sy = @s // $y; $xt = $x // @t; $st = @s // @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x // $y; $sy = @s // $y; $xt = $x // @t; $st = @s // @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0 sy=1 xt=0 st=0
x=1 y= xy= sy= xt=0 st=0
x= y=2 xy= sy=1 xt= st=0
@ -366,7 +366,7 @@ x= b= sy=3 xt= st=0
---------------------------------------------------------------- REMAINDER
mlr --ofs tab put begin{}; $xy = $x % $y; $sy = @s % $y; $xt = $x % @t; $st = @s % @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{}; $xy = $x % $y; $sy = @s % $y; $xt = $x % @t; $st = @s % @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=1 sy=0 xt=1
x=1 y= xy= xt=1
x= y=2 xy= sy=0
@ -380,7 +380,7 @@ x=1 b= xy=1 xt=1
x= b=2
x= b=
mlr --ofs tab put begin{@s=3}; $xy = $x % $y; $sy = @s % $y; $xt = $x % @t; $st = @s % @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3}; $xy = $x % $y; $sy = @s % $y; $xt = $x % @t; $st = @s % @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=1 sy=1 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=1 st=3
@ -394,7 +394,7 @@ x=1 b= xy=1 sy=3 xt=1 st=3
x= b=2 sy=3 st=3
x= b= sy=3 st=3
mlr --ofs tab put begin{@t=4}; $xy = $x % $y; $sy = @s % $y; $xt = $x % @t; $st = @s % @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@t=4}; $xy = $x % $y; $sy = @s % $y; $xt = $x % @t; $st = @s % @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=1 sy=0 xt=1 st=0
x=1 y= xy= xt=1 st=0
x= y=2 xy= sy=0 xt= st=0
@ -408,7 +408,7 @@ x=1 b= xy=1 xt=1 st=0
x= b=2 xt= st=0
x= b= xt= st=0
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x % $y; $sy = @s % $y; $xt = $x % @t; $st = @s % @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x % $y; $sy = @s % $y; $xt = $x % @t; $st = @s % @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=1 sy=1 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=1 xt= st=3
@ -424,7 +424,7 @@ x= b= sy=3 xt= st=3
---------------------------------------------------------------- BITWISE AND
mlr --ofs tab put begin{}; $xy = $x & $y; $sy = @s & $y; $xt = $x & @t; $st = @s & @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{}; $xy = $x & $y; $sy = @s & $y; $xt = $x & @t; $st = @s & @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0 sy=2 xt=1
x=1 y= xy= xt=1
x= y=2 xy= sy=2
@ -438,7 +438,7 @@ x=1 b= xy=1 xt=1
x= b=2
x= b=
mlr --ofs tab put begin{@s=3}; $xy = $x & $y; $sy = @s & $y; $xt = $x & @t; $st = @s & @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3}; $xy = $x & $y; $sy = @s & $y; $xt = $x & @t; $st = @s & @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0 sy=2 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=2 st=3
@ -452,7 +452,7 @@ x=1 b= xy=1 sy=3 xt=1 st=3
x= b=2 sy=3 st=3
x= b= sy=3 st=3
mlr --ofs tab put begin{@t=4}; $xy = $x & $y; $sy = @s & $y; $xt = $x & @t; $st = @s & @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@t=4}; $xy = $x & $y; $sy = @s & $y; $xt = $x & @t; $st = @s & @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0 sy=2 xt=0 st=4
x=1 y= xy= xt=0 st=4
x= y=2 xy= sy=2 xt= st=4
@ -466,7 +466,7 @@ x=1 b= xy=1 xt=0 st=4
x= b=2 xt= st=4
x= b= xt= st=4
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x & $y; $sy = @s & $y; $xt = $x & @t; $st = @s & @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x & $y; $sy = @s & $y; $xt = $x & @t; $st = @s & @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=0 sy=2 xt=0 st=0
x=1 y= xy= sy= xt=0 st=0
x= y=2 xy= sy=2 xt= st=0
@ -482,7 +482,7 @@ x= b= sy=3 xt= st=0
---------------------------------------------------------------- BITWISE OR
mlr --ofs tab put begin{}; $xy = $x | $y; $sy = @s | $y; $xt = $x | @t; $st = @s | @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{}; $xy = $x | $y; $sy = @s | $y; $xt = $x | @t; $st = @s | @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=2 xt=1
x=1 y= xy= xt=1
x= y=2 xy= sy=2
@ -496,7 +496,7 @@ x=1 b= xy=1 xt=1
x= b=2
x= b=
mlr --ofs tab put begin{@s=3}; $xy = $x | $y; $sy = @s | $y; $xt = $x | @t; $st = @s | @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3}; $xy = $x | $y; $sy = @s | $y; $xt = $x | @t; $st = @s | @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=3 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=3 st=3
@ -510,7 +510,7 @@ x=1 b= xy=1 sy=3 xt=1 st=3
x= b=2 sy=3 st=3
x= b= sy=3 st=3
mlr --ofs tab put begin{@t=4}; $xy = $x | $y; $sy = @s | $y; $xt = $x | @t; $st = @s | @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@t=4}; $xy = $x | $y; $sy = @s | $y; $xt = $x | @t; $st = @s | @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=2 xt=5 st=4
x=1 y= xy= xt=5 st=4
x= y=2 xy= sy=2 xt= st=4
@ -524,7 +524,7 @@ x=1 b= xy=1 xt=5 st=4
x= b=2 xt= st=4
x= b= xt= st=4
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x | $y; $sy = @s | $y; $xt = $x | @t; $st = @s | @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x | $y; $sy = @s | $y; $xt = $x | @t; $st = @s | @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=3 xt=5 st=7
x=1 y= xy= sy= xt=5 st=7
x= y=2 xy= sy=3 xt= st=7
@ -540,7 +540,7 @@ x= b= sy=3 xt= st=7
---------------------------------------------------------------- BITWISE XOR
mlr --ofs tab put begin{}; $xy = $x ^ $y; $sy = @s ^ $y; $xt = $x ^ @t; $st = @s ^ @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{}; $xy = $x ^ $y; $sy = @s ^ $y; $xt = $x ^ @t; $st = @s ^ @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=2 xt=1
x=1 y= xy= xt=1
x= y=2 xy= sy=2
@ -554,7 +554,7 @@ x=1 b= xy=1 xt=1
x= b=2
x= b=
mlr --ofs tab put begin{@s=3}; $xy = $x ^ $y; $sy = @s ^ $y; $xt = $x ^ @t; $st = @s ^ @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3}; $xy = $x ^ $y; $sy = @s ^ $y; $xt = $x ^ @t; $st = @s ^ @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=1 xt=1 st=3
x=1 y= xy= sy= xt=1 st=3
x= y=2 xy= sy=1 st=3
@ -568,7 +568,7 @@ x=1 b= xy=1 sy=3 xt=1 st=3
x= b=2 sy=3 st=3
x= b= sy=3 st=3
mlr --ofs tab put begin{@t=4}; $xy = $x ^ $y; $sy = @s ^ $y; $xt = $x ^ @t; $st = @s ^ @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@t=4}; $xy = $x ^ $y; $sy = @s ^ $y; $xt = $x ^ @t; $st = @s ^ @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=2 xt=5 st=4
x=1 y= xy= xt=5 st=4
x= y=2 xy= sy=2 xt= st=4
@ -582,7 +582,7 @@ x=1 b= xy=1 xt=5 st=4
x= b=2 xt= st=4
x= b= xt= st=4
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x ^ $y; $sy = @s ^ $y; $xt = $x ^ @t; $st = @s ^ @t ./reg_test/input/typeof.dkvp
mlr --ofs tab put begin{@s=3;@t=4}; $xy = $x ^ $y; $sy = @s ^ $y; $xt = $x ^ @t; $st = @s ^ @t ././reg-test/input/typeof.dkvp
x=1 y=2 xy=3 sy=1 xt=5 st=7
x=1 y= xy= sy= xt=5 st=7
x= y=2 xy= sy=1 xt= st=7

View file

@ -161,14 +161,14 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
text="$*", type=FULL_SREC.
mlr --oxtab put -q @v = $*; end {emitp @v } ./reg_test/input/abixy-het
mlr --oxtab put -q @v = $*; end {emitp @v } ././reg-test/input/abixy-het
v:a pan
v:b wye
v:i 10
v:x 0.5026260055412137
v:y 0.9526183602969864
mlr --oxtab put -q @v[$a] = $*; end {emitp @v } ./reg_test/input/abixy-het
mlr --oxtab put -q @v[$a] = $*; end {emitp @v } ././reg-test/input/abixy-het
v:pan:a pan
v:pan:b wye
v:pan:i 10
@ -190,7 +190,7 @@ v:zee:i 8
v:zee:x 0.5985540091064224
v:zee:yyy 0.976181385699006
mlr --oxtab put -q @v[$a] = $*; end {emitp @v, "a" } ./reg_test/input/abixy-het
mlr --oxtab put -q @v[$a] = $*; end {emitp @v, "a" } ././reg-test/input/abixy-het
a pan
v:a pan
v:b wye
@ -219,7 +219,7 @@ v:i 8
v:x 0.5985540091064224
v:yyy 0.976181385699006
mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v } ./reg_test/input/abixy-het
mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v } ././reg-test/input/abixy-het
v:pan:pan:a pan
v:pan:pan:b pan
v:pan:pan:i 1
@ -256,7 +256,7 @@ v:zee:wye:i 8
v:zee:wye:x 0.5985540091064224
v:zee:wye:yyy 0.976181385699006
mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v, "a" } ./reg_test/input/abixy-het
mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v, "a" } ././reg-test/input/abixy-het
a pan
v:pan:a pan
v:pan:b pan
@ -300,7 +300,7 @@ v:wye:i 8
v:wye:x 0.5985540091064224
v:wye:yyy 0.976181385699006
mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v, "a", "b"} ./reg_test/input/abixy-het
mlr --oxtab put -q @v[$a][$b] = $*; end {emitp @v, "a", "b"} ././reg-test/input/abixy-het
a pan
b pan
v:a pan
@ -519,7 +519,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
text="2", type=FIELD_NAME.
mlr put @v[NR] = $a; NR == 7 { @v = $*} ; $* = @v ./reg_test/input/abixy-het
mlr put @v[NR] = $a; NR == 7 { @v = $*} ; $* = @v ././reg-test/input/abixy-het
1=pan
1=pan,2=eks
1=pan,2=eks
@ -1007,7 +1007,7 @@ MAIN BLOCK:
text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth=1 max_var_depth=1
mlr put -q @s += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s += $i; @t=@s; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": 55,
"t": 55
@ -1015,7 +1015,7 @@ mlr put -q @s += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_te
s=55
t=55
mlr put -q @s[1] += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1] += $i; @t=@s; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": 55
@ -1027,7 +1027,7 @@ mlr put -q @s[1] += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_te
s:1=55
t:1=55
mlr put -q @s[1] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": 55
@ -1037,7 +1037,7 @@ mlr put -q @s[1] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ./reg_te
s:1=55
t=55
mlr put -q @s[1] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": 55
@ -1051,7 +1051,7 @@ mlr put -q @s[1] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ./reg_te
s:1=55
t:3:1=55
mlr put -q @s[1] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": 55
@ -1063,7 +1063,7 @@ mlr put -q @s[1] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_te
s:1=55
t:3=55
mlr put -q @s[1][2] += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1][2] += $i; @t=@s; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": {
@ -1079,7 +1079,7 @@ mlr put -q @s[1][2] += $i; @t=@s; end{dump; emitp@s; emitp @t} ./reg
s:1:2=55
t:1:2=55
mlr put -q @s[1][2] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1][2] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": {
@ -1093,7 +1093,7 @@ mlr put -q @s[1][2] += $i; @t=@s[1]; end{dump; emitp@s; emitp @t} ./reg
s:1:2=55
t:2=55
mlr put -q @s[1][2] += $i; @t=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1][2] += $i; @t=@s[1][2]; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": {
@ -1105,7 +1105,7 @@ mlr put -q @s[1][2] += $i; @t=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg
s:1:2=55
t=55
mlr put -q @s[1][2] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1][2] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": {
@ -1123,7 +1123,7 @@ mlr put -q @s[1][2] += $i; @t[3]=@s; end{dump; emitp@s; emitp @t} ./reg
s:1:2=55
t:3:1:2=55
mlr put -q @s[1][2] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1][2] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": {
@ -1139,7 +1139,7 @@ mlr put -q @s[1][2] += $i; @t[3]=@s[1]; end{dump; emitp@s; emitp @t} ./reg
s:1:2=55
t:3:2=55
mlr put -q @s[1][2] += $i; @t[3]=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1][2] += $i; @t[3]=@s[1][2]; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": {
@ -1153,7 +1153,7 @@ mlr put -q @s[1][2] += $i; @t[3]=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg
s:1:2=55
t:3=55
mlr put -q @s[1][2] += $i; @t[3][4]=@s; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1][2] += $i; @t[3][4]=@s; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": {
@ -1173,7 +1173,7 @@ mlr put -q @s[1][2] += $i; @t[3][4]=@s; end{dump; emitp@s; emitp @t} ./reg
s:1:2=55
t:3:4:1:2=55
mlr put -q @s[1][2] += $i; @t[3][4]=@s[1]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1][2] += $i; @t[3][4]=@s[1]; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": {
@ -1191,7 +1191,7 @@ mlr put -q @s[1][2] += $i; @t[3][4]=@s[1]; end{dump; emitp@s; emitp @t} ./reg
s:1:2=55
t:3:4:2=55
mlr put -q @s[1][2] += $i; @t[3][4]=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg_test/input/abixy
mlr put -q @s[1][2] += $i; @t[3][4]=@s[1][2]; end{dump; emitp@s; emitp @t} ././reg-test/input/abixy
{
"s": {
"1": {
@ -1207,7 +1207,7 @@ mlr put -q @s[1][2] += $i; @t[3][4]=@s[1][2]; end{dump; emitp@s; emitp @t} ./reg
s:1:2=55
t:3:4=55
mlr --opprint put -q @s[NR][NR] = $i/100; @t[NR*10]=@s; end{emitp@s,"A","B"; emitp @t,"C","D","E"} ./reg_test/input/abixy
mlr --opprint put -q @s[NR][NR] = $i/100; @t[NR*10]=@s; end{emitp@s,"A","B"; emitp @t,"C","D","E"} ././reg-test/input/abixy
A B s
1 1 0.010000
2 2 0.020000

View file

@ -1,5 +1,5 @@
mlr --opprint put -v begin{@ox=0}; $d=$x-@ox; @ox=$x ./reg_test/input/abixy
mlr --opprint put -v begin{@ox=0}; $d=$x-@ox; @ox=$x ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -56,7 +56,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 -0.013230
hat wye 9 0.03144187646093577 0.7495507603507059 -0.567112
pan wye 10 0.5026260055412137 0.9526183602969864 0.471184
mlr --opprint put -v begin{@ox="no"}; $d=@ox == "no" ? 1.0 : $x/@ox; @ox=$x then step -a ratio -f x ./reg_test/input/abixy
mlr --opprint put -v begin{@ox="no"}; $d=@ox == "no" ? 1.0 : $x/@ox; @ox=$x then step -a ratio -f x ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -125,7 +125,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 0.978375 0.978375
hat wye 9 0.03144187646093577 0.7495507603507059 0.052530 0.052530
pan wye 10 0.5026260055412137 0.9526183602969864 15.985878 15.985878
mlr --opprint put -v $d=$x/@ox; @ox=$x then step -a ratio -f x ./reg_test/input/abixy
mlr --opprint put -v $d=$x/@ox; @ox=$x then step -a ratio -f x ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -168,7 +168,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 0.978375 0.978375
hat wye 9 0.03144187646093577 0.7495507603507059 0.052530 0.052530
pan wye 10 0.5026260055412137 0.9526183602969864 15.985878 15.985878
mlr --opprint put -v begin{@ox="no"}; $d=@ox == "no" ? 1.0 : $x/@ox; @ox=$x then step -a ratio -f x ./reg_test/input/abixy
mlr --opprint put -v begin{@ox="no"}; $d=@ox == "no" ? 1.0 : $x/@ox; @ox=$x then step -a ratio -f x ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -237,7 +237,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 0.978375 0.978375
hat wye 9 0.03144187646093577 0.7495507603507059 0.052530 0.052530
pan wye 10 0.5026260055412137 0.9526183602969864 15.985878 15.985878
mlr --opprint put -v begin{@rsum = 0}; @rsum = @rsum + $x; $rsum = @rsum ./reg_test/input/abixy
mlr --opprint put -v begin{@rsum = 0}; @rsum = @rsum + $x; $rsum = @rsum ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -296,7 +296,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 4.002226
hat wye 9 0.03144187646093577 0.7495507603507059 4.033668
pan wye 10 0.5026260055412137 0.9526183602969864 4.536294
mlr --opprint put -v begin{@a=0; @b=0; @c=0}; $za=@a; $zb=@b; $zc=@c; $d=@a+@b+@c; @a=@b; @b=@c; @c=$i ./reg_test/input/abixy
mlr --opprint put -v begin{@a=0; @b=0; @c=0}; $za=@a; $zb=@b; $zc=@c; $d=@a+@b+@c; @a=@b; @b=@c; @c=$i ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -421,7 +421,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 5 6 7 18
hat wye 9 0.03144187646093577 0.7495507603507059 6 7 8 21
pan wye 10 0.5026260055412137 0.9526183602969864 7 8 9 24
mlr --opprint put -v begin {@a=0; @b=0; @c=0}; $za=@a; $zb=@b; $zc=@c; $d=@a+@b+@c; @a=@b; @b=@c; @c=$i ./reg_test/input/abixy
mlr --opprint put -v begin {@a=0; @b=0; @c=0}; $za=@a; $zb=@b; $zc=@c; $d=@a+@b+@c; @a=@b; @b=@c; @c=$i ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -546,7 +546,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 5 6 7 18
hat wye 9 0.03144187646093577 0.7495507603507059 6 7 8 21
pan wye 10 0.5026260055412137 0.9526183602969864 7 8 9 24
mlr --opprint put -v begin{@ox=0}; $d=$x-@ox; @ox=$x ./reg_test/input/abixy
mlr --opprint put -v begin{@ox=0}; $d=$x-@ox; @ox=$x ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -603,7 +603,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 -0.013230
hat wye 9 0.03144187646093577 0.7495507603507059 -0.567112
pan wye 10 0.5026260055412137 0.9526183602969864 0.471184
mlr put -v @a=$a; @b=$b; @c=$x; end {emitf @a; emitf @b; emitf @c} ./reg_test/input/abixy
mlr put -v @a=$a; @b=$b; @c=$x; end {emitf @a; emitf @b; emitf @c} ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -688,7 +688,7 @@ a=pan
b=wye
c=0.502626
mlr put -v @a=$a; @b=$b; @c=$x; end{emitf @a, @b, @c} ./reg_test/input/abixy
mlr put -v @a=$a; @b=$b; @c=$x; end{emitf @a, @b, @c} ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -759,7 +759,7 @@ a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
a=pan,b=wye,c=0.502626
mlr --opprint put -v begin {@count=0; @sum=0.0}; @count=@count+1; @sum=@sum+$x; end{@mean=@sum/@count; emitf @mean} ./reg_test/input/abixy
mlr --opprint put -v begin {@count=0; @sum=0.0}; @count=@count+1; @sum=@sum+$x; end{@mean=@sum/@count; emitf @mean} ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -867,7 +867,7 @@ pan wye 10 0.5026260055412137 0.9526183602969864
mean
0.453629
mlr --opprint put -v end{@mean=@sum/@count; emitf @mean}; begin {@count=0; @sum=0.0}; @count=@count+1; @sum=@sum+$x ./reg_test/input/abixy
mlr --opprint put -v end{@mean=@sum/@count; emitf @mean}; begin {@count=0; @sum=0.0}; @count=@count+1; @sum=@sum+$x ././reg-test/input/abixy
RAW AST:
AST ROOT:
@ -1055,7 +1055,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
text="4", type=FIELD_NAME.
mlr put @y[$a]=$y; end{dump} ./reg_test/input/abixy
mlr put @y[$a]=$y; end{dump} ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -1076,14 +1076,14 @@ a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
}
}
mlr stats1 -a sum -f y -g a ./reg_test/input/abixy
mlr stats1 -a sum -f y -g a ././reg-test/input/abixy
a=pan,y_sum=1.679421
a=eks,y_sum=0.844225
a=wye,y_sum=1.201943
a=zee,y_sum=1.469403
a=hat,y_sum=0.749551
mlr put @y_sum[$a] = $y; end{dump} ./reg_test/input/abixy
mlr put @y_sum[$a] = $y; end{dump} ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -1104,7 +1104,7 @@ a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @s ; dump} ./reg_test/input/unset1.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @s ; dump} ././reg-test/input/unset1.dkvp
{
"s": 9,
"t": {
@ -1127,7 +1127,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @s ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t ; dump} ./reg_test/input/unset1.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t ; dump} ././reg-test/input/unset1.dkvp
{
"s": 9,
"t": {
@ -1148,7 +1148,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t[1] ; dump} ./reg_test/input/unset1.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t[1] ; dump} ././reg-test/input/unset1.dkvp
{
"s": 9,
"t": {
@ -1171,7 +1171,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t[1] ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u ; dump} ./reg_test/input/unset1.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u ; dump} ././reg-test/input/unset1.dkvp
{
"s": 9,
"t": {
@ -1190,7 +1190,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1] ; dump} ./reg_test/input/unset1.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1] ; dump} ././reg-test/input/unset1.dkvp
{
"s": 9,
"t": {
@ -1211,7 +1211,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1] ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1][2]; dump} ./reg_test/input/unset1.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1][2]; dump} ././reg-test/input/unset1.dkvp
{
"s": 9,
"t": {
@ -1234,7 +1234,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1][2]; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @s ; dump} ./reg_test/input/unset4.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @s ; dump} ././reg-test/input/unset4.dkvp
{
"s": 9,
"t": {
@ -1269,7 +1269,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @s ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t ; dump} ./reg_test/input/unset4.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t ; dump} ././reg-test/input/unset4.dkvp
{
"s": 9,
"t": {
@ -1301,7 +1301,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t[1] ; dump} ./reg_test/input/unset4.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t[1] ; dump} ././reg-test/input/unset4.dkvp
{
"s": 9,
"t": {
@ -1336,7 +1336,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @t[1] ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u ; dump} ./reg_test/input/unset4.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u ; dump} ././reg-test/input/unset4.dkvp
{
"s": 9,
"t": {
@ -1362,7 +1362,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1] ; dump} ./reg_test/input/unset4.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1] ; dump} ././reg-test/input/unset4.dkvp
{
"s": 9,
"t": {
@ -1394,7 +1394,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1] ; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1][2]; dump} ./reg_test/input/unset4.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1][2]; dump} ././reg-test/input/unset4.dkvp
{
"s": 9,
"t": {
@ -1429,7 +1429,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @u[1][2]; dump} ./re
}
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset all; dump} ./reg_test/input/unset4.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset all; dump} ././reg-test/input/unset4.dkvp
{
"s": 9,
"t": {
@ -1450,7 +1450,7 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset all; dump} ./re
{
}
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @*; dump} ./reg_test/input/unset4.dkvp
mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @*; dump} ././reg-test/input/unset4.dkvp
{
"s": 9,
"t": {
@ -1471,19 +1471,19 @@ mlr put -q @s=$x; @t[$a]=$x; @u[$a][$b]=$x; end{dump; unset @*; dump} ./re
{
}
mlr put unset $x ./reg_test/input/unset4.dkvp
mlr put unset $x ././reg-test/input/unset4.dkvp
a=1,b=2
a=1,b=3
a=4,b=5
a=4,b=6
mlr put unset $*; $aaa = 999 ./reg_test/input/unset4.dkvp
mlr put unset $*; $aaa = 999 ././reg-test/input/unset4.dkvp
aaa=999
aaa=999
aaa=999
aaa=999
mlr --from ./reg_test/input/abixy put x = 1; print "OX=".x; unset x; print "NX=".x
mlr --from ././reg-test/input/abixy put x = 1; print "OX=".x; unset x; print "NX=".x
OX=1
NX=
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
@ -1515,17 +1515,17 @@ OX=1
NX=
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr put -q @{variable.name} += $x; end{emit @{variable.name}} ./reg_test/input/abixy
mlr put -q @{variable.name} += $x; end{emit @{variable.name}} ././reg-test/input/abixy
variable.name=4.536294
mlr put -q @{variable.name}[$a] += $x; end{emit @{variable.name},"a"} ./reg_test/input/abixy
mlr put -q @{variable.name}[$a] += $x; end{emit @{variable.name},"a"} ././reg-test/input/abixy
a=pan,variable.name=0.849416
a=eks,variable.name=1.751863
a=wye,variable.name=0.777892
a=zee,variable.name=1.125680
a=hat,variable.name=0.031442
mlr put for (k,v in $*) { if (k == "i") {unset $[k]}} ./reg_test/input/abixy
mlr put for (k,v in $*) { if (k == "i") {unset $[k]}} ././reg-test/input/abixy
a=pan,b=pan,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,x=0.20460330576630303,y=0.33831852551664776
@ -1537,7 +1537,7 @@ a=zee,b=wye,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,x=0.5026260055412137,y=0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put -q
mlr --opprint --from ././reg-test/input/abixy put -q
@output[NR] = $*;
end {
for ((nr, k), v in @output) {

View file

@ -1,32 +1,32 @@
mlr put -q @sum[$a] = $x; end{ emitp @sum; } ./reg_test/input/abixy
mlr put -q @sum[$a] = $x; end{ emitp @sum; } ././reg-test/input/abixy
sum:pan=0.502626,sum:eks=0.611784,sum:wye=0.573289,sum:zee=0.598554,sum:hat=0.031442
mlr put -q @sum[$a] = $x; end{ emitp @sum,"a"; } ./reg_test/input/abixy
mlr put -q @sum[$a] = $x; end{ emitp @sum,"a"; } ././reg-test/input/abixy
a=pan,sum=0.502626
a=eks,sum=0.611784
a=wye,sum=0.573289
a=zee,sum=0.598554
a=hat,sum=0.031442
mlr put -q @sum[$a] = $x; end{ emitp @sum,"a","b"; } ./reg_test/input/abixy
mlr put -q @sum[$a] = $x; end{ emitp @sum,"a","b"; } ././reg-test/input/abixy
a=pan,sum=0.502626
a=eks,sum=0.611784
a=wye,sum=0.573289
a=zee,sum=0.598554
a=hat,sum=0.031442
mlr put -q @sum[$a][$b] = $x; end{ emitp @sum; } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] = $x; end{ emitp @sum; } ././reg-test/input/abixy
sum:pan:pan=0.346790,sum:pan:wye=0.502626,sum:eks:pan=0.758680,sum:eks:wye=0.381399,sum:eks:zee=0.611784,sum:wye:wye=0.204603,sum:wye:pan=0.573289,sum:zee:pan=0.527126,sum:zee:wye=0.598554,sum:hat:wye=0.031442
mlr put -q @sum[$a][$b] = $x; end{ emitp @sum,"a"; } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] = $x; end{ emitp @sum,"a"; } ././reg-test/input/abixy
a=pan,sum:pan=0.346790,sum:wye=0.502626
a=eks,sum:pan=0.758680,sum:wye=0.381399,sum:zee=0.611784
a=wye,sum:wye=0.204603,sum:pan=0.573289
a=zee,sum:pan=0.527126,sum:wye=0.598554
a=hat,sum:wye=0.031442
mlr put -q @sum[$a][$b] = $x; end{ emitp @sum,"a","b"; } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] = $x; end{ emitp @sum,"a","b"; } ././reg-test/input/abixy
a=pan,b=pan,sum=0.346790
a=pan,b=wye,sum=0.502626
a=eks,b=pan,sum=0.758680
@ -38,119 +38,119 @@ a=zee,b=pan,sum=0.527126
a=zee,b=wye,sum=0.598554
a=hat,b=wye,sum=0.031442
mlr put -q @v = $a; end {emitf @v } ./reg_test/input/abixy
mlr put -q @v = $a; end {emitf @v } ././reg-test/input/abixy
v=pan
mlr put -q @v = $i; end {emitf @v } ./reg_test/input/abixy
mlr put -q @v = $i; end {emitf @v } ././reg-test/input/abixy
v=10
mlr put -q @v = $x; end {emitf @v } ./reg_test/input/abixy
mlr put -q @v = $x; end {emitf @v } ././reg-test/input/abixy
v=0.502626
mlr put -q @v = $nonesuch; end {emitf @v } ./reg_test/input/abixy
mlr put -q @v = $nonesuch; end {emitf @v } ././reg-test/input/abixy
v=
mlr put -q @v = $a; end {emitp @v } ./reg_test/input/abixy
mlr put -q @v = $a; end {emitp @v } ././reg-test/input/abixy
v=pan
mlr put -q @v = $i; end {emitp @v } ./reg_test/input/abixy
mlr put -q @v = $i; end {emitp @v } ././reg-test/input/abixy
v=10
mlr put -q @v = $x; end {emitp @v } ./reg_test/input/abixy
mlr put -q @v = $x; end {emitp @v } ././reg-test/input/abixy
v=0.502626
mlr put -q @v = $nonesuch; end {emitp @v } ./reg_test/input/abixy
mlr put -q @v = $nonesuch; end {emitp @v } ././reg-test/input/abixy
mlr put -q @sum += $i; end {emitf @sum } ./reg_test/input/abixy
mlr put -q @sum += $i; end {emitf @sum } ././reg-test/input/abixy
sum=55
mlr put -q @sum += $x; end {emitf @sum } ./reg_test/input/abixy
mlr put -q @sum += $x; end {emitf @sum } ././reg-test/input/abixy
sum=4.536294
mlr put -q @sum += $nonesuch; end {emitf @sum } ./reg_test/input/abixy
mlr put -q @sum += $nonesuch; end {emitf @sum } ././reg-test/input/abixy
sum=
mlr put -q @sum += $i; end {emitp @sum } ./reg_test/input/abixy
mlr put -q @sum += $i; end {emitp @sum } ././reg-test/input/abixy
sum=55
mlr put -q @sum += $x; end {emitp @sum } ./reg_test/input/abixy
mlr put -q @sum += $x; end {emitp @sum } ././reg-test/input/abixy
sum=4.536294
mlr put -q @sum += $nonesuch; end {emitp @sum } ./reg_test/input/abixy
mlr put -q @sum += $nonesuch; end {emitp @sum } ././reg-test/input/abixy
mlr put -q @sum += $i; end {emitp @sum, "extra" } ./reg_test/input/abixy
mlr put -q @sum += $i; end {emitp @sum, "extra" } ././reg-test/input/abixy
sum=55
mlr put -q @sum += $x; end {emitp @sum, "extra" } ./reg_test/input/abixy
mlr put -q @sum += $x; end {emitp @sum, "extra" } ././reg-test/input/abixy
sum=4.536294
mlr put -q @sum += $nonesuch; end {emitp @sum, "extra" } ./reg_test/input/abixy
mlr put -q @sum += $nonesuch; end {emitp @sum, "extra" } ././reg-test/input/abixy
mlr put -q @sum[$a] += $i; end {emitp @sum } ./reg_test/input/abixy
mlr put -q @sum[$a] += $i; end {emitp @sum } ././reg-test/input/abixy
sum:pan=11,sum:eks=13,sum:wye=8,sum:zee=14,sum:hat=9
mlr put -q @sum[$a] += $x; end {emitp @sum } ./reg_test/input/abixy
mlr put -q @sum[$a] += $x; end {emitp @sum } ././reg-test/input/abixy
sum:pan=0.849416,sum:eks=1.751863,sum:wye=0.777892,sum:zee=1.125680,sum:hat=0.031442
mlr put -q @sum[$a] += $nonesuch; end {emitp @sum } ./reg_test/input/abixy
mlr put -q @sum[$a] += $nonesuch; end {emitp @sum } ././reg-test/input/abixy
mlr put -q @sum[$a] += $i; end {emitp @sum, "a" } ./reg_test/input/abixy
mlr put -q @sum[$a] += $i; end {emitp @sum, "a" } ././reg-test/input/abixy
a=pan,sum=11
a=eks,sum=13
a=wye,sum=8
a=zee,sum=14
a=hat,sum=9
mlr put -q @sum[$a] += $x; end {emitp @sum, "a" } ./reg_test/input/abixy
mlr put -q @sum[$a] += $x; end {emitp @sum, "a" } ././reg-test/input/abixy
a=pan,sum=0.849416
a=eks,sum=1.751863
a=wye,sum=0.777892
a=zee,sum=1.125680
a=hat,sum=0.031442
mlr put -q @sum[$a] += $nonesuch; end {emitp @sum, "a" } ./reg_test/input/abixy
mlr put -q @sum[$a] += $nonesuch; end {emitp @sum, "a" } ././reg-test/input/abixy
mlr put -q @sum[$a] += $i; end {emitp @sum, "a", "extra" } ./reg_test/input/abixy
mlr put -q @sum[$a] += $i; end {emitp @sum, "a", "extra" } ././reg-test/input/abixy
a=pan,sum=11
a=eks,sum=13
a=wye,sum=8
a=zee,sum=14
a=hat,sum=9
mlr put -q @sum[$a] += $x; end {emitp @sum, "a", "extra" } ./reg_test/input/abixy
mlr put -q @sum[$a] += $x; end {emitp @sum, "a", "extra" } ././reg-test/input/abixy
a=pan,sum=0.849416
a=eks,sum=1.751863
a=wye,sum=0.777892
a=zee,sum=1.125680
a=hat,sum=0.031442
mlr put -q @sum[$a] += $nonesuch; end {emitp @sum, "a", "extra" } ./reg_test/input/abixy
mlr put -q @sum[$a] += $nonesuch; end {emitp @sum, "a", "extra" } ././reg-test/input/abixy
mlr put -q @sum[$a][$b] += $i; end {emitp @sum } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $i; end {emitp @sum } ././reg-test/input/abixy
sum:pan:pan=1,sum:pan:wye=10,sum:eks:pan=2,sum:eks:wye=4,sum:eks:zee=7,sum:wye:wye=3,sum:wye:pan=5,sum:zee:pan=6,sum:zee:wye=8,sum:hat:wye=9
mlr put -q @sum[$a][$b] += $x; end {emitp @sum } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $x; end {emitp @sum } ././reg-test/input/abixy
sum:pan:pan=0.346790,sum:pan:wye=0.502626,sum:eks:pan=0.758680,sum:eks:wye=0.381399,sum:eks:zee=0.611784,sum:wye:wye=0.204603,sum:wye:pan=0.573289,sum:zee:pan=0.527126,sum:zee:wye=0.598554,sum:hat:wye=0.031442
mlr put -q @sum[$a][$b] += $nonesuch; end {emitp @sum } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $nonesuch; end {emitp @sum } ././reg-test/input/abixy
mlr put -q @sum[$a][$b] += $i; end {emitp @sum, "a" } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $i; end {emitp @sum, "a" } ././reg-test/input/abixy
a=pan,sum:pan=1,sum:wye=10
a=eks,sum:pan=2,sum:wye=4,sum:zee=7
a=wye,sum:wye=3,sum:pan=5
a=zee,sum:pan=6,sum:wye=8
a=hat,sum:wye=9
mlr put -q @sum[$a][$b] += $x; end {emitp @sum, "a" } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $x; end {emitp @sum, "a" } ././reg-test/input/abixy
a=pan,sum:pan=0.346790,sum:wye=0.502626
a=eks,sum:pan=0.758680,sum:wye=0.381399,sum:zee=0.611784
a=wye,sum:wye=0.204603,sum:pan=0.573289
a=zee,sum:pan=0.527126,sum:wye=0.598554
a=hat,sum:wye=0.031442
mlr put -q @sum[$a][$b] += $nonesuch; end {emitp @sum, "a" } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $nonesuch; end {emitp @sum, "a" } ././reg-test/input/abixy
mlr put -q @sum[$a][$b] += $i; end {emitp @sum, "a", "b" } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $i; end {emitp @sum, "a", "b" } ././reg-test/input/abixy
a=pan,b=pan,sum=1
a=pan,b=wye,sum=10
a=eks,b=pan,sum=2
@ -162,7 +162,7 @@ a=zee,b=pan,sum=6
a=zee,b=wye,sum=8
a=hat,b=wye,sum=9
mlr put -q @sum[$a][$b] += $x; end {emitp @sum, "a", "b" } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $x; end {emitp @sum, "a", "b" } ././reg-test/input/abixy
a=pan,b=pan,sum=0.346790
a=pan,b=wye,sum=0.502626
a=eks,b=pan,sum=0.758680
@ -174,9 +174,9 @@ a=zee,b=pan,sum=0.527126
a=zee,b=wye,sum=0.598554
a=hat,b=wye,sum=0.031442
mlr put -q @sum[$a][$b] += $nonesuch; end {emitp @sum, "a", "b" } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $nonesuch; end {emitp @sum, "a", "b" } ././reg-test/input/abixy
mlr put -q @sum[$a][$b] += $i; end {emitp @sum, "a", "b", "extra" } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $i; end {emitp @sum, "a", "b", "extra" } ././reg-test/input/abixy
a=pan,b=pan,sum=1
a=pan,b=wye,sum=10
a=eks,b=pan,sum=2
@ -188,7 +188,7 @@ a=zee,b=pan,sum=6
a=zee,b=wye,sum=8
a=hat,b=wye,sum=9
mlr put -q @sum[$a][$b] += $x; end {emitp @sum, "a", "b", "extra" } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $x; end {emitp @sum, "a", "b", "extra" } ././reg-test/input/abixy
a=pan,b=pan,sum=0.346790
a=pan,b=wye,sum=0.502626
a=eks,b=pan,sum=0.758680
@ -200,9 +200,9 @@ a=zee,b=pan,sum=0.527126
a=zee,b=wye,sum=0.598554
a=hat,b=wye,sum=0.031442
mlr put -q @sum[$a][$b] += $nonesuch; end {emitp @sum, "a", "b", "extra" } ./reg_test/input/abixy
mlr put -q @sum[$a][$b] += $nonesuch; end {emitp @sum, "a", "b", "extra" } ././reg-test/input/abixy
mlr --oxtab put -q @sum[$a][$b] += $i; NR == 3 { @x = $x }; NR == 7 { @v = $* }; end {emitp all} ./reg_test/input/abixy-het
mlr --oxtab put -q @sum[$a][$b] += $i; NR == 3 { @x = $x }; NR == 7 { @v = $* }; end {emitp all} ././reg-test/input/abixy-het
sum:pan:pan 1
sum:pan:wye 10
sum:eks:pan 2
@ -218,11 +218,11 @@ v:iii 7
v:x 0.6117840605678454
v:y 0.1878849191181694
mlr --opprint put -q @v[NR]=$*; end{emitp @v} ./reg_test/input/abixy
mlr --opprint put -q @v[NR]=$*; end{emitp @v} ././reg-test/input/abixy
v:1:a v:1:b v:1:i v:1:x v:1:y v:2:a v:2:b v:2:i v:2:x v:2:y v:3:a v:3:b v:3:i v:3:x v:3:y v:4:a v:4:b v:4:i v:4:x v:4:y v:5:a v:5:b v:5:i v:5:x v:5:y v:6:a v:6:b v:6:i v:6:x v:6:y v:7:a v:7:b v:7:i v:7:x v:7:y v:8:a v:8:b v:8:i v:8:x v:8:y v:9:a v:9:b v:9:i v:9:x v:9:y v:10:a v:10:b v:10:i v:10:x v:10:y
pan pan 1 0.3467901443380824 0.7268028627434533 eks pan 2 0.7586799647899636 0.5221511083334797 wye wye 3 0.20460330576630303 0.33831852551664776 eks wye 4 0.38139939387114097 0.13418874328430463 wye pan 5 0.5732889198020006 0.8636244699032729 zee pan 6 0.5271261600918548 0.49322128674835697 eks zee 7 0.6117840605678454 0.1878849191181694 zee wye 8 0.5985540091064224 0.976181385699006 hat wye 9 0.03144187646093577 0.7495507603507059 pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint put -q @v[NR]=$*; end{emitp @v,"X"} ./reg_test/input/abixy
mlr --opprint put -q @v[NR]=$*; end{emitp @v,"X"} ././reg-test/input/abixy
X v:a v:b v:i v:x v:y
1 pan pan 1 0.3467901443380824 0.7268028627434533
2 eks pan 2 0.7586799647899636 0.5221511083334797
@ -235,11 +235,11 @@ X v:a v:b v:i v:x v:y
9 hat wye 9 0.03144187646093577 0.7495507603507059
10 pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint put -q @v[NR]=$*; end{emitp @v[1]} ./reg_test/input/abixy
mlr --opprint put -q @v[NR]=$*; end{emitp @v[1]} ././reg-test/input/abixy
v:a v:b v:i v:x v:y
pan pan 1 0.3467901443380824 0.7268028627434533
mlr --opprint put -q @v[NR]=$*; end{emitp @v[1],"X"} ./reg_test/input/abixy
mlr --opprint put -q @v[NR]=$*; end{emitp @v[1],"X"} ././reg-test/input/abixy
X v
a pan
b pan
@ -247,7 +247,7 @@ i 1
x 0.3467901443380824
y 0.7268028627434533
mlr --opprint put -q @v[NR]=$*; end{emitp @v[1],"X","Y"} ./reg_test/input/abixy
mlr --opprint put -q @v[NR]=$*; end{emitp @v[1],"X","Y"} ././reg-test/input/abixy
X v
a pan
b pan
@ -255,15 +255,15 @@ i 1
x 0.3467901443380824
y 0.7268028627434533
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1]} ./reg_test/input/abixy
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1]} ././reg-test/input/abixy
v:1:a v:1:b v:1:i v:1:x v:1:y
pan pan 1 0.3467901443380824 0.7268028627434533
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1],"X"} ./reg_test/input/abixy
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1],"X"} ././reg-test/input/abixy
X v:a v:b v:i v:x v:y
1 pan pan 1 0.3467901443380824 0.7268028627434533
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1],"X","Y"} ./reg_test/input/abixy
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1],"X","Y"} ././reg-test/input/abixy
X Y v
1 a pan
1 b pan
@ -271,11 +271,11 @@ X Y v
1 x 0.3467901443380824
1 y 0.7268028627434533
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1][1]} ./reg_test/input/abixy
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1][1]} ././reg-test/input/abixy
v:a v:b v:i v:x v:y
pan pan 1 0.3467901443380824 0.7268028627434533
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1][1],"X"} ./reg_test/input/abixy
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1][1],"X"} ././reg-test/input/abixy
X v
a pan
b pan
@ -283,7 +283,7 @@ i 1
x 0.3467901443380824
y 0.7268028627434533
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1][1],"X","Y"} ./reg_test/input/abixy
mlr --opprint put -q @v[NR][NR]=$*; end{emitp @v[1][1],"X","Y"} ././reg-test/input/abixy
X v
a pan
b pan
@ -291,27 +291,27 @@ i 1
x 0.3467901443380824
y 0.7268028627434533
mlr put -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all} ./reg_test/input/abixy-het
mlr put -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all} ././reg-test/input/abixy-het
a=pan
b:1=wye
c:1:2=0.502626
mlr put -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all,"one"} ./reg_test/input/abixy-het
mlr put -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all,"one"} ././reg-test/input/abixy-het
a=pan
one=1,b=wye
one=1,c:2=0.502626
mlr put -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all,"one","two"} ./reg_test/input/abixy-het
mlr put -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all,"one","two"} ././reg-test/input/abixy-het
a=pan
one=1,b=wye
one=1,two=2,c=0.502626
mlr put -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all,"one","two","three"} ./reg_test/input/abixy-het
mlr put -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all,"one","two","three"} ././reg-test/input/abixy-het
a=pan
one=1,b=wye
one=1,two=2,c=0.502626
mlr --oxtab put --oflatsep @ -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all} ./reg_test/input/abixy-het
mlr --oxtab put --oflatsep @ -q @a=$a; @b[1]=$b; @c[1][2]=$x; end{emitp all} ././reg-test/input/abixy-het
a pan
b@1 wye

View file

@ -1,5 +1,5 @@
mlr --opprint put $NEW = $[[3]] ./reg_test/input/abixy
mlr --opprint put $NEW = $[[3]] ././reg-test/input/abixy
a b i x y NEW
pan pan 1 0.3467901443380824 0.7268028627434533 i
eks pan 2 0.7586799647899636 0.5221511083334797 i
@ -12,7 +12,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 i
hat wye 9 0.03144187646093577 0.7495507603507059 i
pan wye 10 0.5026260055412137 0.9526183602969864 i
mlr --opprint put $NEW = $[[[3]]] ./reg_test/input/abixy
mlr --opprint put $NEW = $[[[3]]] ././reg-test/input/abixy
a b i x y NEW
pan pan 1 0.3467901443380824 0.7268028627434533 1
eks pan 2 0.7586799647899636 0.5221511083334797 2
@ -25,7 +25,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint put $NEW = $[[11]] ./reg_test/input/abixy
mlr --opprint put $NEW = $[[11]] ././reg-test/input/abixy
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -38,7 +38,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint put $NEW = $[[[11]]] ./reg_test/input/abixy
mlr --opprint put $NEW = $[[[11]]] ././reg-test/input/abixy
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -51,7 +51,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint put $[[3]] = "NEW" ./reg_test/input/abixy
mlr --opprint put $[[3]] = "NEW" ././reg-test/input/abixy
a b NEW x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -64,7 +64,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint put $[[[3]]] = "NEW" ./reg_test/input/abixy
mlr --opprint put $[[[3]]] = "NEW" ././reg-test/input/abixy
a b i x y
pan pan NEW 0.3467901443380824 0.7268028627434533
eks pan NEW 0.7586799647899636 0.5221511083334797
@ -77,7 +77,7 @@ zee wye NEW 0.5985540091064224 0.976181385699006
hat wye NEW 0.03144187646093577 0.7495507603507059
pan wye NEW 0.5026260055412137 0.9526183602969864
mlr --opprint put $[[11]] = "NEW" ./reg_test/input/abixy
mlr --opprint put $[[11]] = "NEW" ././reg-test/input/abixy
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -90,7 +90,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint put $[[[11]]] = "NEW" ./reg_test/input/abixy
mlr --opprint put $[[[11]]] = "NEW" ././reg-test/input/abixy
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -103,7 +103,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint put $[[1]] = $[[2]] ./reg_test/input/abixy
mlr --opprint put $[[1]] = $[[2]] ././reg-test/input/abixy
b i x y
pan 1 0.3467901443380824 0.7268028627434533
eks 2 0.7586799647899636 0.5221511083334797
@ -116,7 +116,7 @@ zee 8 0.5985540091064224 0.976181385699006
hat 9 0.03144187646093577 0.7495507603507059
pan 10 0.5026260055412137 0.9526183602969864
mlr --opprint put $a = $[[2]]; unset $["a"] ./reg_test/input/abixy
mlr --opprint put $a = $[[2]]; unset $["a"] ././reg-test/input/abixy
b i x y a
pan 1 0.3467901443380824 0.7268028627434533 b
pan 2 0.7586799647899636 0.5221511083334797 b
@ -129,7 +129,7 @@ wye 8 0.5985540091064224 0.976181385699006 b
wye 9 0.03144187646093577 0.7495507603507059 b
wye 10 0.5026260055412137 0.9526183602969864 b
mlr --opprint put $[[1]] = $b; unset $[[1]] ./reg_test/input/abixy
mlr --opprint put $[[1]] = $b; unset $[[1]] ././reg-test/input/abixy
b i x y
pan 1 0.3467901443380824 0.7268028627434533
pan 2 0.7586799647899636 0.5221511083334797
@ -142,7 +142,7 @@ wye 8 0.5985540091064224 0.976181385699006
wye 9 0.03144187646093577 0.7495507603507059
wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint put $[[1]] = $[[2]]; unset $["a"] ./reg_test/input/abixy
mlr --opprint put $[[1]] = $[[2]]; unset $["a"] ././reg-test/input/abixy
b i x y
pan 1 0.3467901443380824 0.7268028627434533
eks 2 0.7586799647899636 0.5221511083334797
@ -155,7 +155,7 @@ zee 8 0.5985540091064224 0.976181385699006
hat 9 0.03144187646093577 0.7495507603507059
pan 10 0.5026260055412137 0.9526183602969864
mlr --opprint put unset $c ./reg_test/input/abixy
mlr --opprint put unset $c ././reg-test/input/abixy
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -168,7 +168,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint put unset $c; $c="new" ./reg_test/input/abixy
mlr --opprint put unset $c; $c="new" ././reg-test/input/abixy
a b i x y c
pan pan 1 0.3467901443380824 0.7268028627434533 new
eks pan 2 0.7586799647899636 0.5221511083334797 new
@ -181,7 +181,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 new
hat wye 9 0.03144187646093577 0.7495507603507059 new
pan wye 10 0.5026260055412137 0.9526183602969864 new
mlr --opprint put $c=$a.$b; unset $c; $c="new" ./reg_test/input/abixy
mlr --opprint put $c=$a.$b; unset $c; $c="new" ././reg-test/input/abixy
a b i x y c
pan pan 1 0.3467901443380824 0.7268028627434533 new
eks pan 2 0.7586799647899636 0.5221511083334797 new
@ -194,7 +194,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 new
hat wye 9 0.03144187646093577 0.7495507603507059 new
pan wye 10 0.5026260055412137 0.9526183602969864 new
mlr --opprint put $c=$a.$b; unset $c ./reg_test/input/abixy
mlr --opprint put $c=$a.$b; unset $c ././reg-test/input/abixy
a b i x y c
pan pan 1 0.3467901443380824 0.7268028627434533 panpan
eks pan 2 0.7586799647899636 0.5221511083334797 ekspan

View file

@ -1,17 +1,17 @@
mlr --oxtab put -q @sum += $x; end{dump;emitp @sum } ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum += $x; end{dump;emitp @sum } ././reg-test/input/abixy-wide
{
"sum": 1009.118181
}
sum 1009.118181
mlr --oxtab put -q @sum += $x; end{dump;emit @sum } ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum += $x; end{dump;emit @sum } ././reg-test/input/abixy-wide
{
"sum": 1009.118181
}
sum 1009.118181
mlr --oxtab put -q @sum[$a] += $x; end{dump;emitp @sum } ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a] += $x; end{dump;emitp @sum } ././reg-test/input/abixy-wide
{
"sum": {
"cat": 207.843964,
@ -27,7 +27,7 @@ sum:wye 188.110135
sum:dog 215.541519
sum:hat 206.091824
mlr --oxtab put -q @sum[$a] += $x; end{dump;emit @sum } ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a] += $x; end{dump;emit @sum } ././reg-test/input/abixy-wide
{
"sum": {
"cat": 207.843964,
@ -43,7 +43,7 @@ wye 188.110135
dog 215.541519
hat 206.091824
mlr --oxtab put -q @sum[$a] += $x; end{dump;emitp @sum, "a"} ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a] += $x; end{dump;emitp @sum, "a"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": 207.843964,
@ -68,7 +68,7 @@ sum 215.541519
a hat
sum 206.091824
mlr --oxtab put -q @sum[$a] += $x; end{dump;emit @sum, "a"} ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a] += $x; end{dump;emit @sum, "a"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": 207.843964,
@ -93,7 +93,7 @@ sum 215.541519
a hat
sum 206.091824
mlr --oxtab put -q @sum[$a][$b] += $x; end{dump;emitp @sum } ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a][$b] += $x; end{dump;emitp @sum } ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -159,7 +159,7 @@ sum:hat:pan 42.538758
sum:hat:cat 44.325655
sum:hat:dog 37.114244
mlr --oxtab put -q @sum[$a][$b] += $x; end{dump;emit @sum } ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a][$b] += $x; end{dump;emit @sum } ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -229,7 +229,7 @@ pan 42.538758
cat 44.325655
dog 37.114244
mlr --oxtab put -q @sum[$a][$b] += $x; end{dump;emitp @sum, "a"} ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a][$b] += $x; end{dump;emitp @sum, "a"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -304,7 +304,7 @@ sum:pan 42.538758
sum:cat 44.325655
sum:dog 37.114244
mlr --oxtab put -q @sum[$a][$b] += $x; end{dump;emit @sum, "a"} ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a][$b] += $x; end{dump;emit @sum, "a"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -379,7 +379,7 @@ pan 42.538758
cat 44.325655
dog 37.114244
mlr --opprint put -q @sum[$a][$b] += $x; end{dump;emitp @sum, "a", "b"} ./reg_test/input/abixy-wide
mlr --opprint put -q @sum[$a][$b] += $x; end{dump;emitp @sum, "a", "b"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -446,7 +446,7 @@ hat pan 42.538758
hat cat 44.325655
hat dog 37.114244
mlr --opprint put -q @sum[$a][$b] += $x; end{dump;emit @sum, "a", "b"} ./reg_test/input/abixy-wide
mlr --opprint put -q @sum[$a][$b] += $x; end{dump;emit @sum, "a", "b"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -513,7 +513,7 @@ hat pan 42.538758
hat cat 44.325655
hat dog 37.114244
mlr --oxtab put -q @sum[$a][$b][$a.$b] += $x; end{dump;emitp @sum } ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a][$b][$a.$b] += $x; end{dump;emitp @sum } ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -629,7 +629,7 @@ sum:hat:pan:hatpan 42.538758
sum:hat:cat:hatcat 44.325655
sum:hat:dog:hatdog 37.114244
mlr --oxtab put -q @sum[$a][$b][$a.$b] += $x; end{dump;emit @sum } ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a][$b][$a.$b] += $x; end{dump;emit @sum } ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -769,7 +769,7 @@ hatcat 44.325655
hatdog 37.114244
mlr --oxtab put -q @sum[$a][$b][$a.$b] += $x; end{dump;emitp @sum, "a"} ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a][$b][$a.$b] += $x; end{dump;emitp @sum, "a"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -894,7 +894,7 @@ sum:pan:hatpan 42.538758
sum:cat:hatcat 44.325655
sum:dog:hatdog 37.114244
mlr --oxtab put -q @sum[$a][$b][$a.$b] += $x; end{dump;emit @sum, "a"} ./reg_test/input/abixy-wide
mlr --oxtab put -q @sum[$a][$b][$a.$b] += $x; end{dump;emit @sum, "a"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -1059,7 +1059,7 @@ hatcat 44.325655
a hat
hatdog 37.114244
mlr --opprint put -q @sum[$a][$b][$a.$b] += $x; end{dump;emitp @sum, "a", "b"} ./reg_test/input/abixy-wide
mlr --opprint put -q @sum[$a][$b][$a.$b] += $x; end{dump;emitp @sum, "a", "b"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -1224,7 +1224,7 @@ hat cat 44.325655
a b sum:hatdog
hat dog 37.114244
mlr --opprint put -q @sum[$a][$b][$a.$b] += $x; end{dump;emit @sum, "a", "b"} ./reg_test/input/abixy-wide
mlr --opprint put -q @sum[$a][$b][$a.$b] += $x; end{dump;emit @sum, "a", "b"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -1389,7 +1389,7 @@ hat cat 44.325655
a b hatdog
hat dog 37.114244
mlr --opprint put -q @sum[$a][$b][$a.$b] += $x; end{dump;emitp @sum, "a", "b", "ab"} ./reg_test/input/abixy-wide
mlr --opprint put -q @sum[$a][$b][$a.$b] += $x; end{dump;emitp @sum, "a", "b", "ab"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -1506,7 +1506,7 @@ hat pan hatpan 42.538758
hat cat hatcat 44.325655
hat dog hatdog 37.114244
mlr --opprint put -q @sum[$a][$b][$a.$b] += $x; end{dump;emit @sum, "a", "b", "ab"} ./reg_test/input/abixy-wide
mlr --opprint put -q @sum[$a][$b][$a.$b] += $x; end{dump;emit @sum, "a", "b", "ab"} ././reg-test/input/abixy-wide
{
"sum": {
"cat": {
@ -1623,7 +1623,7 @@ hat pan hatpan 42.538758
hat cat hatcat 44.325655
hat dog hatdog 37.114244
mlr --oxtab head -n 2 then put -q @v = $*; end{dump;emitp @v} ./reg_test/input/abixy
mlr --oxtab head -n 2 then put -q @v = $*; end{dump;emitp @v} ././reg-test/input/abixy
{
"v": {
"a": "eks",
@ -1639,7 +1639,7 @@ v:i 2
v:x 0.7586799647899636
v:y 0.5221511083334797
mlr --oxtab head -n 2 then put -q @v = $*; end{dump;emit @v} ./reg_test/input/abixy
mlr --oxtab head -n 2 then put -q @v = $*; end{dump;emit @v} ././reg-test/input/abixy
{
"v": {
"a": "eks",
@ -1655,7 +1655,7 @@ i 2
x 0.7586799647899636
y 0.5221511083334797
mlr --oxtab head -n 2 then put -q @v[NR] = $*; end{dump;emitp @v } ./reg_test/input/abixy
mlr --oxtab head -n 2 then put -q @v[NR] = $*; end{dump;emitp @v } ././reg-test/input/abixy
{
"v": {
"1": {
@ -1685,7 +1685,7 @@ v:2:i 2
v:2:x 0.7586799647899636
v:2:y 0.5221511083334797
mlr --oxtab head -n 2 then put -q @v[NR] = $*; end{dump;emit @v } ./reg_test/input/abixy
mlr --oxtab head -n 2 then put -q @v[NR] = $*; end{dump;emit @v } ././reg-test/input/abixy
{
"v": {
"1": {
@ -1716,7 +1716,7 @@ i 2
x 0.7586799647899636
y 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR] = $*; end{dump;emitp @v, "I"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR] = $*; end{dump;emitp @v, "I"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -1739,7 +1739,7 @@ I v:a v:b v:i v:x v:y
1 pan pan 1 0.3467901443380824 0.7268028627434533
2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR] = $*; end{dump;emit @v, "I"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR] = $*; end{dump;emit @v, "I"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -1762,7 +1762,7 @@ I a b i x y
1 pan pan 1 0.3467901443380824 0.7268028627434533
2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --oxtab head -n 2 then put -q @v[NR][NR] = $*; end{dump;emitp @v } ./reg_test/input/abixy
mlr --oxtab head -n 2 then put -q @v[NR][NR] = $*; end{dump;emitp @v } ././reg-test/input/abixy
{
"v": {
"1": {
@ -1796,7 +1796,7 @@ v:2:2:i 2
v:2:2:x 0.7586799647899636
v:2:2:y 0.5221511083334797
mlr --oxtab head -n 2 then put -q @v[NR][NR] = $*; end{dump;emit @v } ./reg_test/input/abixy
mlr --oxtab head -n 2 then put -q @v[NR][NR] = $*; end{dump;emit @v } ././reg-test/input/abixy
{
"v": {
"1": {
@ -1831,7 +1831,7 @@ i 2
x 0.7586799647899636
y 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR] = $*; end{dump;emitp @v, "I"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR] = $*; end{dump;emitp @v, "I"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -1860,7 +1860,7 @@ I v:1:a v:1:b v:1:i v:1:x v:1:y
I v:2:a v:2:b v:2:i v:2:x v:2:y
2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR] = $*; end{dump;emit @v, "I"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR] = $*; end{dump;emit @v, "I"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -1887,7 +1887,7 @@ I a b i x y
1 pan pan 1 0.3467901443380824 0.7268028627434533
2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR] = $*; end{dump;emitp @v, "I", "J"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR] = $*; end{dump;emitp @v, "I", "J"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -1914,7 +1914,7 @@ I J v:a v:b v:i v:x v:y
1 1 pan pan 1 0.3467901443380824 0.7268028627434533
2 2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR] = $*; end{dump;emit @v, "I", "J"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR] = $*; end{dump;emit @v, "I", "J"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -1941,7 +1941,7 @@ I J a b i x y
1 1 pan pan 1 0.3467901443380824 0.7268028627434533
2 2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --oxtab head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emitp @v } ./reg_test/input/abixy
mlr --oxtab head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emitp @v } ././reg-test/input/abixy
{
"v": {
"1": {
@ -1979,7 +1979,7 @@ v:2:2:2:i 2
v:2:2:2:x 0.7586799647899636
v:2:2:2:y 0.5221511083334797
mlr --oxtab head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emit @v } ./reg_test/input/abixy
mlr --oxtab head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emit @v } ././reg-test/input/abixy
{
"v": {
"1": {
@ -2018,7 +2018,7 @@ i 2
x 0.7586799647899636
y 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emitp @v, "I"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emitp @v, "I"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -2051,7 +2051,7 @@ I v:1:1:a v:1:1:b v:1:1:i v:1:1:x v:1:1:y
I v:2:2:a v:2:2:b v:2:2:i v:2:2:x v:2:2:y
2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emit @v, "I"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emit @v, "I"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -2082,7 +2082,7 @@ I a b i x y
1 pan pan 1 0.3467901443380824 0.7268028627434533
2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emitp @v, "I", "J"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emitp @v, "I", "J"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -2115,7 +2115,7 @@ I J v:1:a v:1:b v:1:i v:1:x v:1:y
I J v:2:a v:2:b v:2:i v:2:x v:2:y
2 2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emit @v, "I", "J"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emit @v, "I", "J"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -2146,7 +2146,7 @@ I J a b i x y
1 1 pan pan 1 0.3467901443380824 0.7268028627434533
2 2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emitp @v, "I", "J", "K"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emitp @v, "I", "J", "K"} ././reg-test/input/abixy
{
"v": {
"1": {
@ -2177,7 +2177,7 @@ I J K v:a v:b v:i v:x v:y
1 1 1 pan pan 1 0.3467901443380824 0.7268028627434533
2 2 2 eks pan 2 0.7586799647899636 0.5221511083334797
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emit @v, "I", "J", "K"} ./reg_test/input/abixy
mlr --opprint head -n 2 then put -q @v[NR][NR][NR] = $*; end{dump;emit @v, "I", "J", "K"} ././reg-test/input/abixy
{
"v": {
"1": {

View file

@ -1,5 +1,5 @@
mlr put -q print 1; print "two"; print $a; print; print $i < 4; print "y is ".string($y); print "" ./reg_test/input/abixy
mlr put -q print 1; print "two"; print $a; print; print $i < 4; print "y is ".string($y); print "" ././reg-test/input/abixy
1
two
pan
@ -71,7 +71,7 @@ false
y is 0.952618
mlr put -q printn 1; printn "two"; printn $a; printn; printn $i < 4; printn "y is ".string($y); print "" ./reg_test/input/abixy
mlr put -q printn 1; printn "two"; printn $a; printn; printn $i < 4; printn "y is ".string($y); print "" ././reg-test/input/abixy
1twopantruey is 0.726803
1twoekstruey is 0.522151
1twowyetruey is 0.338319
@ -83,7 +83,7 @@ mlr put -q printn 1; printn "two"; printn $a; printn; printn $i < 4; printn "y i
1twohatfalsey is 0.749551
1twopanfalsey is 0.952618
mlr put -q print $*; print $*; print {}; print ./reg_test/input/abixy
mlr put -q print $*; print $*; print {}; print ././reg-test/input/abixy
{is-a-map}
{is-a-map}
{is-a-map}
@ -125,7 +125,7 @@ mlr put -q print $*; print $*; print {}; print ./reg_test/input/abixy
{is-a-map}
mlr put -q printn $*; printn $*; printn {}; print ./reg_test/input/abixy
mlr put -q printn $*; printn $*; printn {}; print ././reg-test/input/abixy
{is-a-map}{is-a-map}{is-a-map}
{is-a-map}{is-a-map}{is-a-map}
{is-a-map}{is-a-map}{is-a-map}

View file

@ -1,5 +1,5 @@
mlr --xtab put $quot=$pf1/10.0;$iquot=$pf1//10.0;$mod=$pf1%10.0 ./reg_test/input/mixed-types.xtab
mlr --xtab put $quot=$pf1/10.0;$iquot=$pf1//10.0;$mod=$pf1%10.0 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -14,7 +14,7 @@ quot 7.120000
iquot 7.000000
mod 1.200000
mlr --xtab put $quot=$pi1/10 ;$iquot=$pi1//10 ;$mod=$pi1%10 ./reg_test/input/mixed-types.xtab
mlr --xtab put $quot=$pi1/10 ;$iquot=$pi1//10 ;$mod=$pi1%10 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -29,7 +29,7 @@ quot 7.500000
iquot 7
mod 5
mlr --xtab put $quot=$nf1/10.0;$iquot=$nf1//10.0;$mod=$nf1%10.0 ./reg_test/input/mixed-types.xtab
mlr --xtab put $quot=$nf1/10.0;$iquot=$nf1//10.0;$mod=$nf1%10.0 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -44,7 +44,7 @@ quot -7.120000
iquot -8.000000
mod 8.800000
mlr --xtab put $quot=$ni1/10 ;$iquot=$ni1//10 ;$mod=$ni1%10 ./reg_test/input/mixed-types.xtab
mlr --xtab put $quot=$ni1/10 ;$iquot=$ni1//10 ;$mod=$ni1%10 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -59,7 +59,7 @@ quot -7.500000
iquot -8
mod 5
mlr --xtab put -F $quot=$pf1/10.0;$iquot=$pf1//10.0;$mod=$pf1%10.0 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $quot=$pf1/10.0;$iquot=$pf1//10.0;$mod=$pf1%10.0 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -74,7 +74,7 @@ quot 7.120000
iquot 7.000000
mod 1.200000
mlr --xtab put -F $quot=$pi1/10 ;$iquot=$pi1//10 ;$mod=$pi1%10 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $quot=$pi1/10 ;$iquot=$pi1//10 ;$mod=$pi1%10 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -89,7 +89,7 @@ quot 7.500000
iquot 7.000000
mod 5.000000
mlr --xtab put -F $quot=$nf1/10.0;$iquot=$nf1//10.0;$mod=$nf1%10.0 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $quot=$nf1/10.0;$iquot=$nf1//10.0;$mod=$nf1%10.0 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -104,7 +104,7 @@ quot -7.120000
iquot -8.000000
mod 8.800000
mlr --xtab put -F $quot=$ni1/10 ;$iquot=$ni1//10 ;$mod=$ni1%10 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $quot=$ni1/10 ;$iquot=$ni1//10 ;$mod=$ni1%10 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -119,7 +119,7 @@ quot -7.500000
iquot -8.000000
mod 5.000000
mlr --xtab put $quot=$pf1/-10.0;$iquot=$pf1//-10.0;$mod=$pf1%-10.0 ./reg_test/input/mixed-types.xtab
mlr --xtab put $quot=$pf1/-10.0;$iquot=$pf1//-10.0;$mod=$pf1%-10.0 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -134,7 +134,7 @@ quot -7.120000
iquot -8.000000
mod -8.800000
mlr --xtab put $quot=$pi1/-10 ;$iquot=$pi1//-10 ;$mod=$pi1%-10 ./reg_test/input/mixed-types.xtab
mlr --xtab put $quot=$pi1/-10 ;$iquot=$pi1//-10 ;$mod=$pi1%-10 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -149,7 +149,7 @@ quot -7.500000
iquot -8
mod -5
mlr --xtab put $quot=$nf1/-10.0;$iquot=$nf1//-10.0;$mod=$nf1%-10.0 ./reg_test/input/mixed-types.xtab
mlr --xtab put $quot=$nf1/-10.0;$iquot=$nf1//-10.0;$mod=$nf1%-10.0 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -164,7 +164,7 @@ quot 7.120000
iquot 7.000000
mod -1.200000
mlr --xtab put $quot=$ni1/-10 ;$iquot=$ni1//-10 ;$mod=$ni1%-10 ./reg_test/input/mixed-types.xtab
mlr --xtab put $quot=$ni1/-10 ;$iquot=$ni1//-10 ;$mod=$ni1%-10 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -179,7 +179,7 @@ quot 7.500000
iquot 7
mod -5
mlr --xtab put -F $quot=$pf1/-10.0;$iquot=$pf1//-10.0;$mod=$pf1%-10.0 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $quot=$pf1/-10.0;$iquot=$pf1//-10.0;$mod=$pf1%-10.0 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -194,7 +194,7 @@ quot -7.120000
iquot -8.000000
mod -8.800000
mlr --xtab put -F $quot=$pi1/-10 ;$iquot=$pi1//-10 ;$mod=$pi1%-10 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $quot=$pi1/-10 ;$iquot=$pi1//-10 ;$mod=$pi1%-10 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -209,7 +209,7 @@ quot -7.500000
iquot -8.000000
mod -5.000000
mlr --xtab put -F $quot=$nf1/-10.0;$iquot=$nf1//-10.0;$mod=$nf1%-10.0 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $quot=$nf1/-10.0;$iquot=$nf1//-10.0;$mod=$nf1%-10.0 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -224,7 +224,7 @@ quot 7.120000
iquot 7.000000
mod -1.200000
mlr --xtab put -F $quot=$ni1/-10 ;$iquot=$ni1//-10 ;$mod=$ni1%-10 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $quot=$ni1/-10 ;$iquot=$ni1//-10 ;$mod=$ni1%-10 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
mlr filter -v $x =~ "bcd" ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "bcd" ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -19,7 +19,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
x=abcd,y=ghi
x=abcde,y=ghi
mlr filter -v $x =~ "^bcd" ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^bcd" ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -37,7 +37,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
text="^bcd", type=STRING_LITERAL.
mlr filter -v $x =~ "^abc" ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^abc" ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -58,7 +58,7 @@ x=abc,y=def
x=abcd,y=ghi
x=abcde,y=ghi
mlr filter -v $x =~ "^abc$" ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^abc$" ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -77,7 +77,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
x=abc,y=def
mlr filter -v $x =~ "^a.*d$" ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^a.*d$" ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -96,7 +96,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
x=abcd,y=ghi
mlr filter -v $x =~ "^a.*"."d$" ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^a.*"."d$" ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -119,7 +119,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
x=abcd,y=ghi
mlr filter -v $y =~ "\".." ./reg_test/input/regex.dkvp
mlr filter -v $y =~ "\".." ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -138,7 +138,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
x=ABCDE,y="GHI"
mlr filter -v $x =~ "bcd"i ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "bcd"i ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -161,7 +161,7 @@ x=abcde,y=ghi
x=ABCDE,y=GHI
x=ABCDE,y="GHI"
mlr filter -v $x =~ "^bcd"i ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^bcd"i ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -179,7 +179,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
text="^bcd", type=REGEXI.
mlr filter -v $x =~ "^abc"i ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^abc"i ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -204,7 +204,7 @@ x=abcde,y=ghi
x=ABCDE,y=GHI
x=ABCDE,y="GHI"
mlr filter -v $x =~ "^abc$"i ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^abc$"i ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -224,7 +224,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
x=abc,y=def
x=ABC,y=DEF
mlr filter -v $x =~ "^a.*d$"i ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^a.*d$"i ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -244,7 +244,7 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
x=abcd,y=ghi
x=ABCD,y=GHI
mlr filter -v $x =~ "^a.*"."d$"i ./reg_test/input/regex.dkvp
mlr filter -v $x =~ "^a.*"."d$"i ././reg-test/input/regex.dkvp
RAW AST:
AST ROOT:
@ -267,13 +267,13 @@ text="main_block", type=STATEMENT_BLOCK: subframe_var_count=1 max_subframe_depth
x=abcd,y=ghi
mlr --csv filter $text =~ "." ./reg_test/input/dot-match.csv
mlr --csv filter $text =~ "." ././reg-test/input/dot-match.csv
text
hi
a.b
bye
mlr --csv filter $text =~ "\." ./reg_test/input/dot-match.csv
mlr --csv filter $text =~ "\." ././reg-test/input/dot-match.csv
text
a.b

View file

@ -3,7 +3,7 @@
================================================================
DSL SCIENTIFIC NOTATION IN FIELD VALUES
mlr --opprint put $y=$x+1 ./reg_test/input/scinot.dkvp
mlr --opprint put $y=$x+1 ././reg-test/input/scinot.dkvp
x y
123 124
123. 124.000000
@ -36,107 +36,107 @@ x y
================================================================
DSL SCIENTIFIC NOTATION IN EXPRESSION LITERALS
mlr --opprint put $y = 123 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 123 + $i ././reg-test/input/scinot1.dkvp
i y
1 124
mlr --opprint put $y = 123. + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 123. + $i ././reg-test/input/scinot1.dkvp
i y
1 124.000000
mlr --opprint put $y = 123.4 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 123.4 + $i ././reg-test/input/scinot1.dkvp
i y
1 124.400000
mlr --opprint put $y = .234 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = .234 + $i ././reg-test/input/scinot1.dkvp
i y
1 1.234000
mlr --opprint put $y = 1e2 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 1e2 + $i ././reg-test/input/scinot1.dkvp
i y
1 101.000000
mlr --opprint put $y = 1e-2 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 1e-2 + $i ././reg-test/input/scinot1.dkvp
i y
1 1.010000
mlr --opprint put $y = 1.2e3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 1.2e3 + $i ././reg-test/input/scinot1.dkvp
i y
1 1201.000000
mlr --opprint put $y = 1.e3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 1.e3 + $i ././reg-test/input/scinot1.dkvp
i y
1 1001.000000
mlr --opprint put $y = 1.2e-3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 1.2e-3 + $i ././reg-test/input/scinot1.dkvp
i y
1 1.001200
mlr --opprint put $y = 1.e-3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 1.e-3 + $i ././reg-test/input/scinot1.dkvp
i y
1 1.001000
mlr --opprint put $y = .2e3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = .2e3 + $i ././reg-test/input/scinot1.dkvp
i y
1 201.000000
mlr --opprint put $y = .2e-3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = .2e-3 + $i ././reg-test/input/scinot1.dkvp
i y
1 1.000200
mlr --opprint put $y = 1.e-3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = 1.e-3 + $i ././reg-test/input/scinot1.dkvp
i y
1 1.001000
mlr --opprint put $y = -123 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -123 + $i ././reg-test/input/scinot1.dkvp
i y
1 -122
mlr --opprint put $y = -123. + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -123. + $i ././reg-test/input/scinot1.dkvp
i y
1 -122.000000
mlr --opprint put $y = -123.4 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -123.4 + $i ././reg-test/input/scinot1.dkvp
i y
1 -122.400000
mlr --opprint put $y = -.234 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -.234 + $i ././reg-test/input/scinot1.dkvp
i y
1 0.766000
mlr --opprint put $y = -1e2 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -1e2 + $i ././reg-test/input/scinot1.dkvp
i y
1 -99.000000
mlr --opprint put $y = -1e-2 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -1e-2 + $i ././reg-test/input/scinot1.dkvp
i y
1 0.990000
mlr --opprint put $y = -1.2e3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -1.2e3 + $i ././reg-test/input/scinot1.dkvp
i y
1 -1199.000000
mlr --opprint put $y = -1.e3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -1.e3 + $i ././reg-test/input/scinot1.dkvp
i y
1 -999.000000
mlr --opprint put $y = -1.2e-3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -1.2e-3 + $i ././reg-test/input/scinot1.dkvp
i y
1 0.998800
mlr --opprint put $y = -1.e-3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -1.e-3 + $i ././reg-test/input/scinot1.dkvp
i y
1 0.999000
mlr --opprint put $y = -.2e3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -.2e3 + $i ././reg-test/input/scinot1.dkvp
i y
1 -199.000000
mlr --opprint put $y = -.2e-3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -.2e-3 + $i ././reg-test/input/scinot1.dkvp
i y
1 0.999800
mlr --opprint put $y = -1.e-3 + $i ./reg_test/input/scinot1.dkvp
mlr --opprint put $y = -1.e-3 + $i ././reg-test/input/scinot1.dkvp
i y
1 0.999000

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy-het put -q o = joink($*, ":"); print o
mlr --from ././reg-test/input/abixy-het put -q o = joink($*, ":"); print o
a:b:i:x:y
a:b:i:x:y
aaa:b:i:x:y
@ -11,7 +11,7 @@ a:b:i:x:yyy
aaa:bbb:i:x:y
a:b:i:x:y
mlr --from ./reg_test/input/abixy-het put -q o = joinv($*, ":"); print o
mlr --from ././reg-test/input/abixy-het put -q o = joinv($*, ":"); print o
pan:pan:1:0.3467901443380824:0.7268028627434533
eks:pan:2:0.7586799647899636:0.5221511083334797
wye:wye:3:0.20460330576630303:0.33831852551664776
@ -23,7 +23,7 @@ zee:wye:8:0.5985540091064224:0.976181385699006
hat:wye:9:0.03144187646093577:0.7495507603507059
pan:wye:10:0.5026260055412137:0.9526183602969864
mlr --from ./reg_test/input/abixy-het put -q o = joinkv($*, ":", ";"); print o
mlr --from ././reg-test/input/abixy-het put -q o = joinkv($*, ":", ";"); print o
a:pan;b:pan;i:1;x:0.3467901443380824;y:0.7268028627434533
a:eks;b:pan;i:2;x:0.7586799647899636;y:0.5221511083334797
aaa:wye;b:wye;i:3;x:0.20460330576630303;y:0.33831852551664776
@ -35,7 +35,7 @@ a:zee;b:wye;i:8;x:0.5985540091064224;yyy:0.976181385699006
aaa:hat;bbb:wye;i:9;x:0.03144187646093577;y:0.7495507603507059
a:pan;b:wye;i:10;x:0.5026260055412137;y:0.9526183602969864
mlr --from ./reg_test/input/abixy-het put -q o = joink({1:2, "abc":4, 5:"xyz"}, ":"); print o
mlr --from ././reg-test/input/abixy-het put -q o = joink({1:2, "abc":4, 5:"xyz"}, ":"); print o
1:abc:5
1:abc:5
1:abc:5
@ -47,7 +47,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = joink({1:2, "abc":4, 5:"xyz"},
1:abc:5
1:abc:5
mlr --from ./reg_test/input/abixy-het put -q o = joinv({1:2, "abc":4, 5:"xyz"}, ":"); print o
mlr --from ././reg-test/input/abixy-het put -q o = joinv({1:2, "abc":4, 5:"xyz"}, ":"); print o
2:4:xyz
2:4:xyz
2:4:xyz
@ -59,7 +59,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = joinv({1:2, "abc":4, 5:"xyz"},
2:4:xyz
2:4:xyz
mlr --from ./reg_test/input/abixy-het put -q o = joinkv({1:2, "abc":4, 5:"xyz"}, ":", ";"); print o
mlr --from ././reg-test/input/abixy-het put -q o = joinkv({1:2, "abc":4, 5:"xyz"}, ":", ";"); print o
1:2;abc:4;5:xyz
1:2;abc:4;5:xyz
1:2;abc:4;5:xyz
@ -71,7 +71,7 @@ mlr --from ./reg_test/input/abixy-het put -q o = joinkv({1:2, "abc":4, 5:"xyz"},
1:2;abc:4;5:xyz
1:2;abc:4;5:xyz
mlr --from ./reg_test/input/abixy-het put $* = splitnv("a,b,c" , ","); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitnv("a,b,c" , ","); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
1:string a:string
2:string b:string
3:string c:string
@ -113,7 +113,7 @@ mlr --from ./reg_test/input/abixy-het put $* = splitnv("a,b,c" , ","); for (k,v
3:string c:string
1=a,2=b,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitkv("a=1,b=2,c", "=", ","); for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitkv("a=1,b=2,c", "=", ","); for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
a:string 1:int
b:string 2:int
3:string c:string
@ -155,7 +155,7 @@ b:string 2:int
3:string c:string
a=1,b=2,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitnv("a,b,c", IFS); print ">>".IRS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitnv("a,b,c", IFS); print ">>".IRS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
>>
<<
1:string a:string
@ -217,7 +217,7 @@ mlr --from ./reg_test/input/abixy-het put $* = splitnv("a,b,c", IFS); print ">>"
3:string c:string
1=a,2=b,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitkv("a=1,b=2,c", IPS, IFS); print ">>".IRS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitkv("a=1,b=2,c", IPS, IFS); print ">>".IRS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
>>
<<
a:string 1:int
@ -279,7 +279,7 @@ b:string 2:int
3:string c:string
a=1,b=2,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitnv("a,b,c", OFS); print ">>".ORS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitnv("a,b,c", OFS); print ">>".ORS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
>>
<<
1:string a:string
@ -341,7 +341,7 @@ mlr --from ./reg_test/input/abixy-het put $* = splitnv("a,b,c", OFS); print ">>"
3:string c:string
1=a,2=b,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitkv("a=1,b=2,c", OPS, OFS); print ">>".ORS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitkv("a=1,b=2,c", OPS, OFS); print ">>".ORS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
>>
<<
a:string 1:int
@ -403,7 +403,7 @@ b:string 2:int
3:string c:string
a=1,b=2,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitnvx("a,b,c" , ","); for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitnvx("a,b,c" , ","); for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
1:string a:string
2:string b:string
3:string c:string
@ -445,7 +445,7 @@ mlr --from ./reg_test/input/abixy-het put $* = splitnvx("a,b,c" , ","); for (k,
3:string c:string
1=a,2=b,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitkvx("a=1,b=2,c", "=", ","); for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitkvx("a=1,b=2,c", "=", ","); for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
a:string 1:string
b:string 2:string
3:string c:string
@ -487,7 +487,7 @@ b:string 2:string
3:string c:string
a=1,b=2,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitnvx("a,b,c", IFS); print ">>".IRS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitnvx("a,b,c", IFS); print ">>".IRS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
>>
<<
1:string a:string
@ -549,7 +549,7 @@ mlr --from ./reg_test/input/abixy-het put $* = splitnvx("a,b,c", IFS); print ">>
3:string c:string
1=a,2=b,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitkvx("a=1,b=2,c", IPS, IFS); print ">>".IRS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitkvx("a=1,b=2,c", IPS, IFS); print ">>".IRS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
>>
<<
a:string 1:string
@ -611,7 +611,7 @@ b:string 2:string
3:string c:string
a=1,b=2,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitnvx("a,b,c", OFS); print ">>".ORS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitnvx("a,b,c", OFS); print ">>".ORS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
>>
<<
1:string a:string
@ -673,7 +673,7 @@ mlr --from ./reg_test/input/abixy-het put $* = splitnvx("a,b,c", OFS); print ">>
3:string c:string
1=a,2=b,3=c
mlr --from ./reg_test/input/abixy-het put $* = splitkvx("a=1,b=2,c", OPS, OFS); print ">>".ORS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --from ././reg-test/input/abixy-het put $* = splitkvx("a=1,b=2,c", OPS, OFS); print ">>".ORS."<<"; for (k, v in $*) {print k.":".typeof(k)." ".v.":".typeof(v)}
>>
<<
a:string 1:string
@ -735,7 +735,7 @@ b:string 2:string
3:string c:string
a=1,b=2,3=c
mlr --oxtab --from ./reg_test/input/abixy-het put s = joink($*, ":"); $* = splitnv(s, ":")
mlr --oxtab --from ././reg-test/input/abixy-het put s = joink($*, ":"); $* = splitnv(s, ":")
1 a
2 b
3 i
@ -796,7 +796,7 @@ mlr --oxtab --from ./reg_test/input/abixy-het put s = joink($*, ":"); $* = split
4 x
5 y
mlr --oxtab --from ./reg_test/input/abixy-het put s = joinv($*, ":"); $* = splitnv(s, ":")
mlr --oxtab --from ././reg-test/input/abixy-het put s = joinv($*, ":"); $* = splitnv(s, ":")
1 pan
2 pan
3 1
@ -857,7 +857,7 @@ mlr --oxtab --from ./reg_test/input/abixy-het put s = joinv($*, ":"); $* = split
4 0.502626
5 0.952618
mlr --oxtab --from ./reg_test/input/abixy-het put s = joinkv($*, ":", ";"); $* = splitkv(s, ":", ";"); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --oxtab --from ././reg-test/input/abixy-het put s = joinkv($*, ":", ";"); $* = splitkv(s, ":", ";"); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
a:string pan:string
b:string pan:string
i:string 1:int
@ -968,7 +968,7 @@ i 10
x 0.502626
y 0.952618
mlr --oxtab --from ./reg_test/input/abixy-het put s = joinkv($*, ":", ";"); $* = splitkvx(s, ":", ";"); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --oxtab --from ././reg-test/input/abixy-het put s = joinkv($*, ":", ";"); $* = splitkvx(s, ":", ";"); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
a:string pan:string
b:string pan:string
i:string 1:string
@ -1079,7 +1079,7 @@ i 10
x 0.5026260055412137
y 0.9526183602969864
mlr --oxtab --from ./reg_test/input/abixy-het put s = joink({1:2, "abc":4, 5:"xyz"}, ":"); $* = splitnv(s, ":")
mlr --oxtab --from ././reg-test/input/abixy-het put s = joink({1:2, "abc":4, 5:"xyz"}, ":"); $* = splitnv(s, ":")
1 1
2 abc
3 5
@ -1120,7 +1120,7 @@ mlr --oxtab --from ./reg_test/input/abixy-het put s = joink({1:2, "abc":4, 5:"xy
2 abc
3 5
mlr --oxtab --from ./reg_test/input/abixy-het put s = joinv({1:2, "abc":4, 5:"xyz"}, ":"); $* = splitnv(s, ":")
mlr --oxtab --from ././reg-test/input/abixy-het put s = joinv({1:2, "abc":4, 5:"xyz"}, ":"); $* = splitnv(s, ":")
1 2
2 4
3 xyz
@ -1161,7 +1161,7 @@ mlr --oxtab --from ./reg_test/input/abixy-het put s = joinv({1:2, "abc":4, 5:"xy
2 4
3 xyz
mlr --oxtab --from ./reg_test/input/abixy-het put s = joinkv({1:2, "abc":4, 5:"xyz"}, ":", ";"); $* = splitkv(s, ":", ";"); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --oxtab --from ././reg-test/input/abixy-het put s = joinkv({1:2, "abc":4, 5:"xyz"}, ":", ";"); $* = splitkv(s, ":", ";"); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
1:string 2:int
abc:string 4:int
5:string xyz:string
@ -1232,7 +1232,7 @@ abc:string 4:int
abc 4
5 xyz
mlr --oxtab --from ./reg_test/input/abixy-het put s = joinkv({1:2, "abc":4, 5:"xyz"}, ":", ";"); $* = splitkvx(s, ":", ";"); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
mlr --oxtab --from ././reg-test/input/abixy-het put s = joinkv({1:2, "abc":4, 5:"xyz"}, ":", ";"); $* = splitkvx(s, ":", ";"); for (k,v in $*) { print k.":".typeof(k)." ".v.":".typeof(v)}
1:string 2:string
abc:string 4:string
5:string xyz:string

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy put -v -a -f ./reg_test/input/test-dsl-stack-allocation.mlr
mlr --from ././reg-test/input/abixy put -v -a -f ././reg-test/input/test-dsl-stack-allocation.mlr
RAW AST:
AST ROOT:
@ -2044,7 +2044,7 @@ e:3:k:10v:20000
e:3:k:100v:789
e:val:3025
mlr --from ./reg_test/input/abixy put a=a; $oa = a
mlr --from ././reg-test/input/abixy put a=a; $oa = a
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -2056,7 +2056,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put a=a; $oa = a; a = a; $ob = a
mlr --from ././reg-test/input/abixy put a=a; $oa = a; a = a; $ob = a
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -2068,7 +2068,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put a=a; $oa = a; a = a; $ob = a; a = b; $oc = a
mlr --from ././reg-test/input/abixy put a=a; $oa = a; a = a; $ob = a; a = b; $oc = a
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -2080,7 +2080,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put a=a; $oa = a; a = a; $ob = a; a = b; $oc = a; b = 3; b = a; $od = a
mlr --from ././reg-test/input/abixy put a=a; $oa = a; a = a; $ob = a; a = b; $oc = a; b = 3; b = a; $od = a
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -2092,7 +2092,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put a=a; $oa = a; a = a; $ob = a; a = b; $oc = a; b = 3; b = a; $od = a; b = 4;a = b; $oe= a
mlr --from ././reg-test/input/abixy put a=a; $oa = a; a = a; $ob = a; a = b; $oc = a; b = 3; b = a; $od = a; b = 4;a = b; $oe= a
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,oe=4
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,oe=4
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,oe=4

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
$* = {
"a": $a,
"x": $x,
@ -16,68 +16,68 @@ a=zee,x=0.598554
a=hat,x=0.031442
a=pan,x=0.502626
mlr --from ./reg_test/input/xyz345 put func f(): int { return 999 } $y=f()
mlr --from ././reg-test/input/xyz345 put func f(): int { return 999 } $y=f()
x=3,y=999,z=5
mlr --from ./reg_test/input/xyz345 put func f(): int { return 999 } $y=f(,)
mlr --from ././reg-test/input/xyz345 put func f(): int { return 999 } $y=f(,)
mlr DSL: syntax error at ","
mlr put: syntax error on DSL parse of 'func f(): int { return 999 } $y=f(,)'
mlr --from ./reg_test/input/xyz345 put func f(a,): int { return a*2 } $y=f(NR)
mlr --from ././reg-test/input/xyz345 put func f(a,): int { return a*2 } $y=f(NR)
x=3,y=2,z=5
mlr --from ./reg_test/input/xyz345 put func f(a,,): int { return a*2 } $y=f(NR)
mlr --from ././reg-test/input/xyz345 put func f(a,,): int { return a*2 } $y=f(NR)
mlr DSL: syntax error at ","
mlr put: syntax error on DSL parse of 'func f(a,,): int { return a*2 } $y=f(NR)'
mlr --from ./reg_test/input/xyz345 put func f(int a,): int { return a*2 } $y=f(NR)
mlr --from ././reg-test/input/xyz345 put func f(int a,): int { return a*2 } $y=f(NR)
x=3,y=2,z=5
mlr --from ./reg_test/input/xyz345 put func f(int a,,): int { return a*2 } $y=f(NR)
mlr --from ././reg-test/input/xyz345 put func f(int a,,): int { return a*2 } $y=f(NR)
mlr DSL: syntax error at ","
mlr put: syntax error on DSL parse of 'func f(int a,,): int { return a*2 } $y=f(NR)'
mlr --from ./reg_test/input/xyz345 put subr s() { print 999 } call s()
mlr --from ././reg-test/input/xyz345 put subr s() { print 999 } call s()
999
x=3,y=4,z=5
mlr --from ./reg_test/input/xyz345 put subr s() { print 999 } call s(,)
mlr --from ././reg-test/input/xyz345 put subr s() { print 999 } call s(,)
mlr DSL: syntax error at ","
mlr put: syntax error on DSL parse of 'subr s() { print 999 } call s(,)'
mlr --from ./reg_test/input/xyz345 put subr s(a,) { print a*2 } call s(NR)
mlr --from ././reg-test/input/xyz345 put subr s(a,) { print a*2 } call s(NR)
2
x=3,y=4,z=5
mlr --from ./reg_test/input/xyz345 put subr s(a,,) { print a*2 } call s(NR)
mlr --from ././reg-test/input/xyz345 put subr s(a,,) { print a*2 } call s(NR)
mlr DSL: syntax error at ","
mlr put: syntax error on DSL parse of 'subr s(a,,) { print a*2 } call s(NR)'
mlr --from ./reg_test/input/xyz345 put subr s(int a,) { print a*2 } call s(NR)
mlr --from ././reg-test/input/xyz345 put subr s(int a,) { print a*2 } call s(NR)
2
x=3,y=4,z=5
mlr --from ./reg_test/input/xyz345 put subr s(int a,,) { print a*2 } call s(NR)
mlr --from ././reg-test/input/xyz345 put subr s(int a,,) { print a*2 } call s(NR)
mlr DSL: syntax error at ","
mlr put: syntax error on DSL parse of 'subr s(int a,,) { print a*2 } call s(NR)'
mlr --from ./reg_test/input/xyz345 put $y=log10($x)
mlr --from ././reg-test/input/xyz345 put $y=log10($x)
x=3,y=0.477121,z=5
mlr --from ./reg_test/input/xyz345 put $y=log10($x,)
mlr --from ././reg-test/input/xyz345 put $y=log10($x,)
x=3,y=0.477121,z=5
mlr --from ./reg_test/input/xyz345 put $y=log10($x,,)
mlr --from ././reg-test/input/xyz345 put $y=log10($x,,)
mlr DSL: syntax error at ","
mlr put: syntax error on DSL parse of '$y=log10($x,,)'
mlr --from ./reg_test/input/xyz345 put $y=log10(,$x)
mlr --from ././reg-test/input/xyz345 put $y=log10(,$x)
mlr DSL: syntax error at ","
mlr put: syntax error on DSL parse of '$y=log10(,$x)'
mlr --from ./reg_test/input/xyz345 put $y=pow($x,2)
mlr --from ././reg-test/input/xyz345 put $y=pow($x,2)
x=3,y=9.000000,z=5
mlr --from ./reg_test/input/xyz345 put $y=pow($x,2,)
mlr --from ././reg-test/input/xyz345 put $y=pow($x,2,)
x=3,y=9.000000,z=5

View file

@ -1,5 +1,5 @@
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num sum = 0;
num a = 1;
for (;;) {
@ -23,7 +23,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 36
hat wye 9 0.03144187646093577 0.7495507603507059 45
pan wye 10 0.5026260055412137 0.9526183602969864 55
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num sum = 0;
num a = 1;
for (;;) {
@ -47,7 +47,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 36
hat wye 9 0.03144187646093577 0.7495507603507059 45
pan wye 10 0.5026260055412137 0.9526183602969864 55
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num sum = 0;
for (num a = 1; ;) {
if (a > NR) {
@ -70,7 +70,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 36
hat wye 9 0.03144187646093577 0.7495507603507059 45
pan wye 10 0.5026260055412137 0.9526183602969864 55
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num sum = 0;
num a = 1;
for (; ; a += 1) {
@ -93,7 +93,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 36
hat wye 9 0.03144187646093577 0.7495507603507059 45
pan wye 10 0.5026260055412137 0.9526183602969864 55
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num sum = 0;
for (num a=1; ; a += 1) {
if (a > NR) {
@ -115,7 +115,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 36
hat wye 9 0.03144187646093577 0.7495507603507059 45
pan wye 10 0.5026260055412137 0.9526183602969864 55
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num sum = 0;
for (num a=1; a <= NR; a += 1) {
sum += a;
@ -156,7 +156,7 @@ a:209,b:309
a:210,b:310
x=1,oa=100,ob=311
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
for ( ; $x <= 10; $x += 1) {
}
@ -171,7 +171,7 @@ a=zee,b=wye,i=8,x=10.598554,y=0.976181385699006
a=hat,b=wye,i=9,x=10.031442,y=0.7495507603507059
a=pan,b=wye,i=10,x=10.502626,y=0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num a = 100;
b = 200;
@c = 300;
@ -199,7 +199,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 410 110 210 310 410
hat wye 9 0.03144187646093577 0.7495507603507059 410 110 210 310 410
pan wye 10 0.5026260055412137 0.9526183602969864 410 110 210 310 410
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num sum = 0;
for (num a = 1; a <= 10; a += 1) {
continue;
@ -219,7 +219,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 0
hat wye 9 0.03144187646093577 0.7495507603507059 0
pan wye 10 0.5026260055412137 0.9526183602969864 0
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num sum = 0;
for (num a = 1; a <= 10; a += 1) {
sum += a;
@ -239,7 +239,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 1
hat wye 9 0.03144187646093577 0.7495507603507059 1
pan wye 10 0.5026260055412137 0.9526183602969864 1
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
num sum = 0;
for (num a = 1; a <= NR; a += 1) {
if (a == 4 || a == 5) {
@ -264,7 +264,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 19
hat wye 9 0.03144187646093577 0.7495507603507059 19
pan wye 10 0.5026260055412137 0.9526183602969864 19
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
for ($o1 = 1; ; $o3 = 3) {
break;
}
@ -281,7 +281,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 1
hat wye 9 0.03144187646093577 0.7495507603507059 1
pan wye 10 0.5026260055412137 0.9526183602969864 1
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
for ($o1 = 1; $o1 < NR; $o1 += 1) {
}
@ -297,20 +297,20 @@ zee wye 8 0.5985540091064224 0.976181385699006 8
hat wye 9 0.03144187646093577 0.7495507603507059 9
pan wye 10 0.5026260055412137 0.9526183602969864 10
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
for ($o1 = 1, $o2 = 2; $o3 = 3; $o4 = 4) {
}
mlr: the final triple-for continutation statement must be a bare boolean.
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
for ($o1 = 1, $o2 = 2; $o3 < 3, $o4 = 4; $o5 = 5) {
break;
}
mlr: the final triple-for continutation statement must be a bare boolean.
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
$o4 = 0;
for ($o1 = 1, $o2 = 2; $o3 = 3, $o4 < 4; $o5 = 5) {
break;

View file

@ -1,5 +1,5 @@
mlr --xtab put $y = $pi1 + $pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $y = $pi1 + $pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -12,7 +12,7 @@ pi2 76
ni2 -76
y 151
mlr --xtab put -F $y = $pi1 + $pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y = $pi1 + $pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -25,7 +25,7 @@ pi2 76
ni2 -76
y 151.000000
mlr --xtab put -S $y = $pi1 . $pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -S $y = $pi1 . $pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -38,7 +38,7 @@ pi2 76
ni2 -76
y 7576
mlr --xtab filter 999 != $pi1 + $pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab filter 999 != $pi1 + $pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -50,7 +50,7 @@ zi 0
pi2 76
ni2 -76
mlr --xtab filter -F 999 != $pi1 + $pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab filter -F 999 != $pi1 + $pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -62,7 +62,7 @@ zi 0
pi2 76
ni2 -76
mlr --xtab filter -S "999" != $pi1 . $pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab filter -S "999" != $pi1 . $pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -110,7 +110,7 @@ tt string
tu int
tv float
mlr --xtab put $y=abs($pf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=abs($pf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -123,7 +123,7 @@ pi2 76
ni2 -76
y 71.200000
mlr --xtab put $y=abs($nf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=abs($nf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -136,7 +136,7 @@ pi2 76
ni2 -76
y 71.200000
mlr --xtab put $y=abs($zf) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=abs($zf) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -149,7 +149,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put $y=abs($pi1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=abs($pi1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -162,7 +162,7 @@ pi2 76
ni2 -76
y 75
mlr --xtab put $y=abs($ni1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=abs($ni1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -175,7 +175,7 @@ pi2 76
ni2 -76
y 75
mlr --xtab put $y=abs($zi) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=abs($zi) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -188,7 +188,7 @@ pi2 76
ni2 -76
y 0
mlr --xtab put -F $y=abs($pf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=abs($pf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -201,7 +201,7 @@ pi2 76
ni2 -76
y 71.200000
mlr --xtab put -F $y=abs($nf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=abs($nf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -214,7 +214,7 @@ pi2 76
ni2 -76
y 71.200000
mlr --xtab put -F $y=abs($zf) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=abs($zf) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -227,7 +227,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put -F $y=abs($pi1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=abs($pi1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -240,7 +240,7 @@ pi2 76
ni2 -76
y 75.000000
mlr --xtab put -F $y=abs($ni1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=abs($ni1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -253,7 +253,7 @@ pi2 76
ni2 -76
y 75.000000
mlr --xtab put -F $y=abs($zi) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=abs($zi) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -266,7 +266,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put $y=ceil($pf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=ceil($pf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -279,7 +279,7 @@ pi2 76
ni2 -76
y 72.000000
mlr --xtab put $y=ceil($nf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=ceil($nf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -292,7 +292,7 @@ pi2 76
ni2 -76
y -71.000000
mlr --xtab put $y=ceil($zf) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=ceil($zf) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -305,7 +305,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put $y=ceil($pi1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=ceil($pi1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -318,7 +318,7 @@ pi2 76
ni2 -76
y 75
mlr --xtab put $y=ceil($ni1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=ceil($ni1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -331,7 +331,7 @@ pi2 76
ni2 -76
y -75
mlr --xtab put $y=ceil($zi) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=ceil($zi) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -344,7 +344,7 @@ pi2 76
ni2 -76
y 0
mlr --xtab put -F $y=floor($pf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=floor($pf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -357,7 +357,7 @@ pi2 76
ni2 -76
y 71.000000
mlr --xtab put -F $y=floor($nf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=floor($nf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -370,7 +370,7 @@ pi2 76
ni2 -76
y -72.000000
mlr --xtab put -F $y=floor($zf) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=floor($zf) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -383,7 +383,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put -F $y=floor($pi1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=floor($pi1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -396,7 +396,7 @@ pi2 76
ni2 -76
y 75.000000
mlr --xtab put -F $y=floor($ni1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=floor($ni1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -409,7 +409,7 @@ pi2 76
ni2 -76
y -75.000000
mlr --xtab put -F $y=floor($zi) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=floor($zi) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -422,7 +422,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put $y=round($pf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=round($pf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -435,7 +435,7 @@ pi2 76
ni2 -76
y 71.000000
mlr --xtab put $y=round($nf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=round($nf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -448,7 +448,7 @@ pi2 76
ni2 -76
y -71.000000
mlr --xtab put $y=round($zf) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=round($zf) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -461,7 +461,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put $y=round($pi1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=round($pi1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -474,7 +474,7 @@ pi2 76
ni2 -76
y 75
mlr --xtab put $y=round($ni1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=round($ni1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -487,7 +487,7 @@ pi2 76
ni2 -76
y -75
mlr --xtab put $y=round($zi) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=round($zi) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -500,7 +500,7 @@ pi2 76
ni2 -76
y 0
mlr --xtab put -F $y=round($pf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=round($pf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -513,7 +513,7 @@ pi2 76
ni2 -76
y 71.000000
mlr --xtab put -F $y=round($nf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=round($nf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -526,7 +526,7 @@ pi2 76
ni2 -76
y -71.000000
mlr --xtab put -F $y=round($zf) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=round($zf) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -539,7 +539,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put -F $y=round($pi1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=round($pi1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -552,7 +552,7 @@ pi2 76
ni2 -76
y 75.000000
mlr --xtab put -F $y=round($ni1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=round($ni1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -565,7 +565,7 @@ pi2 76
ni2 -76
y -75.000000
mlr --xtab put -F $y=round($zi) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=round($zi) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -578,7 +578,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put $y=sgn($pf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=sgn($pf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -591,7 +591,7 @@ pi2 76
ni2 -76
y 1.000000
mlr --xtab put $y=sgn($nf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=sgn($nf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -604,7 +604,7 @@ pi2 76
ni2 -76
y -1.000000
mlr --xtab put $y=sgn($zf) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=sgn($zf) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -617,7 +617,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put $y=sgn($pi1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=sgn($pi1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -630,7 +630,7 @@ pi2 76
ni2 -76
y 1
mlr --xtab put $y=sgn($ni1) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=sgn($ni1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -643,7 +643,7 @@ pi2 76
ni2 -76
y -1
mlr --xtab put $y=sgn($zi) ./reg_test/input/mixed-types.xtab
mlr --xtab put $y=sgn($zi) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -656,7 +656,7 @@ pi2 76
ni2 -76
y 0
mlr --xtab put -F $y=sgn($pf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=sgn($pf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -669,7 +669,7 @@ pi2 76
ni2 -76
y 1.000000
mlr --xtab put -F $y=sgn($nf1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=sgn($nf1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -682,7 +682,7 @@ pi2 76
ni2 -76
y -1.000000
mlr --xtab put -F $y=sgn($zf) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=sgn($zf) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -695,7 +695,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put -F $y=sgn($pi1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=sgn($pi1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -708,7 +708,7 @@ pi2 76
ni2 -76
y 1.000000
mlr --xtab put -F $y=sgn($ni1) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=sgn($ni1) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -721,7 +721,7 @@ pi2 76
ni2 -76
y -1.000000
mlr --xtab put -F $y=sgn($zi) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $y=sgn($zi) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -734,7 +734,7 @@ pi2 76
ni2 -76
y 0.000000
mlr --xtab put $min=min($pf1,$pf2);$max=max($pf1,$pf2) ./reg_test/input/mixed-types.xtab
mlr --xtab put $min=min($pf1,$pf2);$max=max($pf1,$pf2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -748,7 +748,7 @@ ni2 -76
min 71.200000
max 73.400000
mlr --xtab put $min=min($pf1,$pi2);$max=max($pf1,$pi2) ./reg_test/input/mixed-types.xtab
mlr --xtab put $min=min($pf1,$pi2);$max=max($pf1,$pi2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -762,7 +762,7 @@ ni2 -76
min 71.200000
max 76.000000
mlr --xtab put $min=min($pi1,$pf2);$max=max($pi1,$pf2) ./reg_test/input/mixed-types.xtab
mlr --xtab put $min=min($pi1,$pf2);$max=max($pi1,$pf2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -776,7 +776,7 @@ ni2 -76
min 73.400000
max 75.000000
mlr --xtab put $min=min($pi1,$pi2);$max=max($pi1,$pi2) ./reg_test/input/mixed-types.xtab
mlr --xtab put $min=min($pi1,$pi2);$max=max($pi1,$pi2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -790,7 +790,7 @@ ni2 -76
min 75
max 76
mlr --xtab put -F $min=min($pf1,$pf2);$max=max($pf1,$pf2) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $min=min($pf1,$pf2);$max=max($pf1,$pf2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -804,7 +804,7 @@ ni2 -76
min 71.200000
max 73.400000
mlr --xtab put -F $min=min($pf1,$pi2);$max=max($pf1,$pi2) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $min=min($pf1,$pi2);$max=max($pf1,$pi2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -818,7 +818,7 @@ ni2 -76
min 71.200000
max 76.000000
mlr --xtab put -F $min=min($pi1,$pf2);$max=max($pi1,$pf2) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $min=min($pi1,$pf2);$max=max($pi1,$pf2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -832,7 +832,7 @@ ni2 -76
min 73.400000
max 75.000000
mlr --xtab put -F $min=min($pi1,$pi2);$max=max($pi1,$pi2) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $min=min($pi1,$pi2);$max=max($pi1,$pi2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -846,7 +846,7 @@ ni2 -76
min 75.000000
max 76.000000
mlr --xtab put $min=min($pf1,$pf2);$max=max($pf1,$pf2) ./reg_test/input/mixed-types.xtab
mlr --xtab put $min=min($pf1,$pf2);$max=max($pf1,$pf2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -860,7 +860,7 @@ ni2 -76
min 71.200000
max 73.400000
mlr --xtab put $min=min($pf1,$pi2);$max=max($pf1,$pi2) ./reg_test/input/mixed-types.xtab
mlr --xtab put $min=min($pf1,$pi2);$max=max($pf1,$pi2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -874,7 +874,7 @@ ni2 -76
min 71.200000
max 76.000000
mlr --xtab put $min=min($pi1,$pf2);$max=max($pi1,$pf2) ./reg_test/input/mixed-types.xtab
mlr --xtab put $min=min($pi1,$pf2);$max=max($pi1,$pf2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -888,7 +888,7 @@ ni2 -76
min 73.400000
max 75.000000
mlr --xtab put $min=min($pi1,$pi2);$max=max($pi1,$pi2) ./reg_test/input/mixed-types.xtab
mlr --xtab put $min=min($pi1,$pi2);$max=max($pi1,$pi2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -902,7 +902,7 @@ ni2 -76
min 75
max 76
mlr --xtab put -F $min=min($pf1,$pf2);$max=max($pf1,$pf2) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $min=min($pf1,$pf2);$max=max($pf1,$pf2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -916,7 +916,7 @@ ni2 -76
min 71.200000
max 73.400000
mlr --xtab put -F $min=min($pf1,$pi2);$max=max($pf1,$pi2) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $min=min($pf1,$pi2);$max=max($pf1,$pi2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -930,7 +930,7 @@ ni2 -76
min 71.200000
max 76.000000
mlr --xtab put -F $min=min($pi1,$pf2);$max=max($pi1,$pf2) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $min=min($pi1,$pf2);$max=max($pi1,$pf2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -944,7 +944,7 @@ ni2 -76
min 73.400000
max 75.000000
mlr --xtab put -F $min=min($pi1,$pi2);$max=max($pi1,$pi2) ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $min=min($pi1,$pi2);$max=max($pi1,$pi2) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -958,7 +958,7 @@ ni2 -76
min 75.000000
max 76.000000
mlr --xtab put $sum=$pf1+$pf2;$diff=$pf1-$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $sum=$pf1+$pf2;$diff=$pf1-$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -972,7 +972,7 @@ ni2 -76
sum 144.600000
diff -2.200000
mlr --xtab put $sum=$pf1+$pi2;$diff=$pf1-$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $sum=$pf1+$pi2;$diff=$pf1-$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -986,7 +986,7 @@ ni2 -76
sum 147.200000
diff -4.800000
mlr --xtab put $sum=$pi1+$pf2;$diff=$pi1-$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $sum=$pi1+$pf2;$diff=$pi1-$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1000,7 +1000,7 @@ ni2 -76
sum 148.400000
diff 1.600000
mlr --xtab put $sum=$pi1+$pi2;$diff=$pi1-$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $sum=$pi1+$pi2;$diff=$pi1-$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1014,7 +1014,7 @@ ni2 -76
sum 151
diff -1
mlr --xtab put -F $sum=$pf1+$pf2;$diff=$pf1-$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $sum=$pf1+$pf2;$diff=$pf1-$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1028,7 +1028,7 @@ ni2 -76
sum 144.600000
diff -2.200000
mlr --xtab put -F $sum=$pf1+$pi2;$diff=$pf1-$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $sum=$pf1+$pi2;$diff=$pf1-$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1042,7 +1042,7 @@ ni2 -76
sum 147.200000
diff -4.800000
mlr --xtab put -F $sum=$pi1+$pf2;$diff=$pi1-$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $sum=$pi1+$pf2;$diff=$pi1-$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1056,7 +1056,7 @@ ni2 -76
sum 148.400000
diff 1.600000
mlr --xtab put -F $sum=$pi1+$pi2;$diff=$pi1-$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $sum=$pi1+$pi2;$diff=$pi1-$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1070,7 +1070,7 @@ ni2 -76
sum 151.000000
diff -1.000000
mlr --xtab put $prod=$pf1*$pf2;$quot=$pf1/$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $prod=$pf1*$pf2;$quot=$pf1/$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1084,7 +1084,7 @@ ni2 -76
prod 5226.080000
quot 0.970027
mlr --xtab put $prod=$pf1*$pi2;$quot=$pf1/$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $prod=$pf1*$pi2;$quot=$pf1/$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1098,7 +1098,7 @@ ni2 -76
prod 5411.200000
quot 0.936842
mlr --xtab put $prod=$pi1*$pf2;$quot=$pi1/$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $prod=$pi1*$pf2;$quot=$pi1/$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1112,7 +1112,7 @@ ni2 -76
prod 5505.000000
quot 1.021798
mlr --xtab put $prod=$pi1*$pi2;$quot=$pi1/$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $prod=$pi1*$pi2;$quot=$pi1/$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1126,7 +1126,7 @@ ni2 -76
prod 5700
quot 0.986842
mlr --xtab put -F $prod=$pf1*$pf2;$quot=$pf1/$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $prod=$pf1*$pf2;$quot=$pf1/$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1140,7 +1140,7 @@ ni2 -76
prod 5226.080000
quot 0.970027
mlr --xtab put -F $prod=$pf1*$pi2;$quot=$pf1/$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $prod=$pf1*$pi2;$quot=$pf1/$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1154,7 +1154,7 @@ ni2 -76
prod 5411.200000
quot 0.936842
mlr --xtab put -F $prod=$pi1*$pf2;$quot=$pi1/$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $prod=$pi1*$pf2;$quot=$pi1/$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1168,7 +1168,7 @@ ni2 -76
prod 5505.000000
quot 1.021798
mlr --xtab put -F $prod=$pi1*$pi2;$quot=$pi1/$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $prod=$pi1*$pi2;$quot=$pi1/$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1182,7 +1182,7 @@ ni2 -76
prod 5700.000000
quot 0.986842
mlr --xtab put $iquot=$pf1//$pf2;$mod=$pf1%$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $iquot=$pf1//$pf2;$mod=$pf1%$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1196,7 +1196,7 @@ ni2 -76
iquot 0.000000
mod 71.200000
mlr --xtab put $iquot=$pf1//$pi2;$mod=$pf1%$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $iquot=$pf1//$pi2;$mod=$pf1%$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1210,7 +1210,7 @@ ni2 -76
iquot 0.000000
mod 71.200000
mlr --xtab put $iquot=$pi1//$pf2;$mod=$pi1%$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $iquot=$pi1//$pf2;$mod=$pi1%$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1224,7 +1224,7 @@ ni2 -76
iquot 1.000000
mod 1.600000
mlr --xtab put $iquot=$pi1//$pi2;$mod=$pi1%$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put $iquot=$pi1//$pi2;$mod=$pi1%$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1238,7 +1238,7 @@ ni2 -76
iquot 0
mod 75
mlr --xtab put -F $iquot=$pf1//$pf2;$mod=$pf1%$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $iquot=$pf1//$pf2;$mod=$pf1%$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1252,7 +1252,7 @@ ni2 -76
iquot 0.000000
mod 71.200000
mlr --xtab put -F $iquot=$pf1//$pi2;$mod=$pf1%$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $iquot=$pf1//$pi2;$mod=$pf1%$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1266,7 +1266,7 @@ ni2 -76
iquot 0.000000
mod 71.200000
mlr --xtab put -F $iquot=$pi1//$pf2;$mod=$pi1%$pf2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $iquot=$pi1//$pf2;$mod=$pi1%$pf2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1280,7 +1280,7 @@ ni2 -76
iquot 1.000000
mod 1.600000
mlr --xtab put -F $iquot=$pi1//$pi2;$mod=$pi1%$pi2 ./reg_test/input/mixed-types.xtab
mlr --xtab put -F $iquot=$pi1//$pi2;$mod=$pi1%$pi2 ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1294,7 +1294,7 @@ ni2 -76
iquot 0.000000
mod 75.000000
mlr --xtab put $a=roundm($pf1,10.0);$b=roundm($pf1,-10.0) ./reg_test/input/mixed-types.xtab
mlr --xtab put $a=roundm($pf1,10.0);$b=roundm($pf1,-10.0) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1308,7 +1308,7 @@ ni2 -76
a 70.000000
b 70.000000
mlr --xtab put $a=roundm($pf1,10) ;$b=roundm($pf1,-10) ./reg_test/input/mixed-types.xtab
mlr --xtab put $a=roundm($pf1,10) ;$b=roundm($pf1,-10) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1322,7 +1322,7 @@ ni2 -76
a 70.000000
b 70.000000
mlr --xtab put $a=roundm($pi1,10.0);$b=roundm($pi1,-10.0) ./reg_test/input/mixed-types.xtab
mlr --xtab put $a=roundm($pi1,10.0);$b=roundm($pi1,-10.0) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0
@ -1336,7 +1336,7 @@ ni2 -76
a 80.000000
b 80.000000
mlr --xtab put $a=roundm($pi1,10) ;$b=roundm($pi1,-10) ./reg_test/input/mixed-types.xtab
mlr --xtab put $a=roundm($pi1,10) ;$b=roundm($pi1,-10) ././reg-test/input/mixed-types.xtab
pf1 71.2
nf1 -71.2
zf 0.0

View file

@ -1,5 +1,5 @@
mlr --from ./reg_test/input/abixy --opprint put for (k, v in $*) { $[k."_type"] = typeof(v) }
mlr --from ././reg-test/input/abixy --opprint put for (k, v in $*) { $[k."_type"] = typeof(v) }
a b i x y a_type b_type i_type x_type y_type
pan pan 1 0.3467901443380824 0.7268028627434533 string string int float float
eks pan 2 0.7586799647899636 0.5221511083334797 string string int float float
@ -12,7 +12,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 string string int float f
hat wye 9 0.03144187646093577 0.7495507603507059 string string int float float
pan wye 10 0.5026260055412137 0.9526183602969864 string string int float float
mlr --from ./reg_test/input/abixy-het put -q for (k,v in $*) {if (is_float(v)) {@float[NR][k] = v}} end{ emit @float, "NR", "k" }
mlr --from ././reg-test/input/abixy-het put -q for (k,v in $*) {if (is_float(v)) {@float[NR][k] = v}} end{ emit @float, "NR", "k" }
NR=1,k=x,float=0.346790
NR=1,k=y,float=0.726803
NR=2,k=x,float=0.758680
@ -34,7 +34,7 @@ NR=9,k=y,float=0.749551
NR=10,k=x,float=0.502626
NR=10,k=y,float=0.952618
mlr --from ./reg_test/input/abixy-het put -q for (k,v in $*) {if (is_int(v)) {@int[NR][k] = v}} end{ emit @int, "NR", "k" }
mlr --from ././reg-test/input/abixy-het put -q for (k,v in $*) {if (is_int(v)) {@int[NR][k] = v}} end{ emit @int, "NR", "k" }
NR=1,k=i,int=1
NR=2,k=i,int=2
NR=3,k=i,int=3
@ -46,7 +46,7 @@ NR=8,k=i,int=8
NR=9,k=i,int=9
NR=10,k=i,int=10
mlr --from ./reg_test/input/abixy-het put -q for (k,v in $*) {if (is_numeric(v)) {@numeric[NR][k] = v}} end{ emit @numeric, "NR", "k" }
mlr --from ././reg-test/input/abixy-het put -q for (k,v in $*) {if (is_numeric(v)) {@numeric[NR][k] = v}} end{ emit @numeric, "NR", "k" }
NR=1,k=i,numeric=1
NR=1,k=x,numeric=0.346790
NR=1,k=y,numeric=0.726803
@ -78,7 +78,7 @@ NR=10,k=i,numeric=10
NR=10,k=x,numeric=0.502626
NR=10,k=y,numeric=0.952618
mlr --from ./reg_test/input/abixy-het put -q for (k,v in $*) {if (is_string(v)) {@string[NR][k] = v}} end{ emit @string, "NR", "k" }
mlr --from ././reg-test/input/abixy-het put -q for (k,v in $*) {if (is_string(v)) {@string[NR][k] = v}} end{ emit @string, "NR", "k" }
NR=1,k=a,string=pan
NR=1,k=b,string=pan
NR=2,k=a,string=eks
@ -100,9 +100,9 @@ NR=9,k=bbb,string=wye
NR=10,k=a,string=pan
NR=10,k=b,string=wye
mlr --from ./reg_test/input/abixy-het put -q for (k,v in $*) {if (is_bool(v)) {@bool[NR][k] = v}} end{ emit @bool, "NR", "k" }
mlr --from ././reg-test/input/abixy-het put -q for (k,v in $*) {if (is_bool(v)) {@bool[NR][k] = v}} end{ emit @bool, "NR", "k" }
mlr --from ./reg_test/input/abixy-het put -q for (k,v in $*) {if (is_bool(NR==2)) {@bool[NR][k] = "NR==2"}} end{ emit @bool, "NR", "k" }
mlr --from ././reg-test/input/abixy-het put -q for (k,v in $*) {if (is_bool(NR==2)) {@bool[NR][k] = "NR==2"}} end{ emit @bool, "NR", "k" }
NR=1,k=a,bool=NR==2
NR=1,k=b,bool=NR==2
NR=1,k=i,bool=NR==2

View file

@ -3,22 +3,22 @@
================================================================
DSL TYPED OVERLAY
mlr put $y = string($x); $z=$y.$y ./reg_test/input/int-float.dkvp
mlr put $y = string($x); $z=$y.$y ././reg-test/input/int-float.dkvp
x=1,y=1,z=11
x=2,y=2,z=22
x=3,y=3,z=33
mlr put $z=string($x).string($x) ./reg_test/input/int-float.dkvp
mlr put $z=string($x).string($x) ././reg-test/input/int-float.dkvp
x=1,y=10.1,z=11
x=2,y=10.2,z=22
x=3,y=10.3,z=33
mlr put $y = string($x) then put $z=$y.$y ./reg_test/input/int-float.dkvp
mlr put $y = string($x) then put $z=$y.$y ././reg-test/input/int-float.dkvp
x=1,y=1,z=11
x=2,y=2,z=22
x=3,y=3,z=33
mlr put $a="hello" then put $b=$a." world";$z=$x+$y;$c=$b;$a=sub($b,"hello","farewell") ./reg_test/input/int-float.dkvp
mlr put $a="hello" then put $b=$a." world";$z=$x+$y;$c=$b;$a=sub($b,"hello","farewell") ././reg-test/input/int-float.dkvp
x=1,y=10.1,z=11.100000,a=farewell world,b=hello world,c=hello world
x=2,y=10.2,z=12.200000,a=farewell world,b=hello world,c=hello world
x=3,y=10.3,z=13.300000,a=farewell world,b=hello world,c=hello world

View file

@ -1,5 +1,5 @@
mlr --opprint --from ./reg_test/input/abixy put subr s(a,b) { $[a] = b } call s("W", 999)
mlr --opprint --from ././reg-test/input/abixy put subr s(a,b) { $[a] = b } call s("W", 999)
a b i x y W
pan pan 1 0.3467901443380824 0.7268028627434533 999
eks pan 2 0.7586799647899636 0.5221511083334797 999
@ -12,7 +12,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 999
hat wye 9 0.03144187646093577 0.7495507603507059 999
pan wye 10 0.5026260055412137 0.9526183602969864 999
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
func f(x,y,z) {
return x + y + z
}
@ -35,7 +35,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9.574735 8 YES
hat wye 9 0.03144187646093577 0.7495507603507059 9.780993 9 YES
pan wye 10 0.5026260055412137 0.9526183602969864 11.455244 10 YES
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
func f(x,y,z) {
return x + y + z
}
@ -59,7 +59,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9.574735 8
hat wye 9 0.03144187646093577 0.7495507603507059 9.780993 9
pan wye 10 0.5026260055412137 0.9526183602969864 11.455244 10
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(x,y,z) {
return x + y + z
}
@ -72,7 +72,7 @@ mlr --from ./reg_test/input/abixy put
mlr: return statements within user-defined subroutines must not return a value.
mlr --from ./reg_test/input/abixy put
mlr --from ././reg-test/input/abixy put
func f(x,y,z) {
return # func must return value
}
@ -84,7 +84,7 @@ mlr --from ./reg_test/input/abixy put
mlr: return statements within user-defined functions must return a value.
mlr --from ./reg_test/input/abixy --opprint put func f(x) {return k} for (k,v in $*) {$o=f($x)}
mlr --from ././reg-test/input/abixy --opprint put func f(x) {return k} for (k,v in $*) {$o=f($x)}
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -97,7 +97,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --from ./reg_test/input/abixy --opprint put subr foo() {print "k is [".k."]"} for (k,v in $*) {call foo()}
mlr --from ././reg-test/input/abixy --opprint put subr foo() {print "k is [".k."]"} for (k,v in $*) {call foo()}
k is []
k is []
k is []
@ -160,10 +160,10 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --opprint --from ./reg_test/input/abixy put func log(x) { return 0 } $o = log($x)
mlr --opprint --from ././reg-test/input/abixy put func log(x) { return 0 } $o = log($x)
mlr: function named "log" must not override a built-in function of the same name.
mlr --from ./reg_test/input/abixy put subr log() { print "hello record ". NR } call log()
mlr --from ././reg-test/input/abixy put subr log() { print "hello record ". NR } call log()
hello record 1
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
hello record 2
@ -185,67 +185,67 @@ a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
hello record 10
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy --opprint put func f(x) { begin {} }
mlr --from ././reg-test/input/abixy --opprint put func f(x) { begin {} }
mlr: begin statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint put func f(x) { end {} }
mlr --from ././reg-test/input/abixy --opprint put func f(x) { end {} }
mlr: end statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint put subr s(x) { begin {} }
mlr --from ././reg-test/input/abixy --opprint put subr s(x) { begin {} }
mlr: begin statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint put subr s(x) { end {} }
mlr --from ././reg-test/input/abixy --opprint put subr s(x) { end {} }
mlr: end statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint put func f(x) { func g(y) {} }
mlr --from ././reg-test/input/abixy --opprint put func f(x) { func g(y) {} }
mlr: func statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint put func f(x) { subr t(y) {} }
mlr --from ././reg-test/input/abixy --opprint put func f(x) { subr t(y) {} }
mlr: subr statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint put subr s(x) { func g(y) {} }
mlr --from ././reg-test/input/abixy --opprint put subr s(x) { func g(y) {} }
mlr: func statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint put subr s(x) { subr t(y) {} }
mlr --from ././reg-test/input/abixy --opprint put subr s(x) { subr t(y) {} }
mlr: subr statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint filter func f(x) { begin {} }; true
mlr --from ././reg-test/input/abixy --opprint filter func f(x) { begin {} }; true
mlr: begin statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint filter func f(x) { end {} }; true
mlr --from ././reg-test/input/abixy --opprint filter func f(x) { end {} }; true
mlr: end statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint filter subr s(x) { begin {} }; true
mlr --from ././reg-test/input/abixy --opprint filter subr s(x) { begin {} }; true
mlr: begin statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint filter subr s(x) { end {} }; true
mlr --from ././reg-test/input/abixy --opprint filter subr s(x) { end {} }; true
mlr: end statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint filter func f(x) { func g(y) {} }; true
mlr --from ././reg-test/input/abixy --opprint filter func f(x) { func g(y) {} }; true
mlr: func statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint filter func f(x) { subr t(y) {} }; true
mlr --from ././reg-test/input/abixy --opprint filter func f(x) { subr t(y) {} }; true
mlr: subr statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint filter subr s(x) { func g(y) {} }; true
mlr --from ././reg-test/input/abixy --opprint filter subr s(x) { func g(y) {} }; true
mlr: func statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint filter subr s(x) { subr t(y) {} }; true
mlr --from ././reg-test/input/abixy --opprint filter subr s(x) { subr t(y) {} }; true
mlr: subr statements are only valid at top level.
mlr --from ./reg_test/input/abixy --opprint put func log(x) { return $x + 1 }
mlr --from ././reg-test/input/abixy --opprint put func log(x) { return $x + 1 }
mlr: function named "log" must not override a built-in function of the same name.
mlr --from ./reg_test/input/abixy --opprint put func f(x) { return $x + 1 } func f(x) { return $x + 1}
mlr --from ././reg-test/input/abixy --opprint put func f(x) { return $x + 1 } func f(x) { return $x + 1}
mlr: function named "f" has already been defined.
mlr --from ./reg_test/input/abixy --opprint put subr s() { } subr s() { }
mlr --from ././reg-test/input/abixy --opprint put subr s() { } subr s() { }
mlr: subroutine named "s" has already been defined.
mlr --from ./reg_test/input/abixy --opprint put subr s() { } subr s(x) { }
mlr --from ././reg-test/input/abixy --opprint put subr s() { } subr s(x) { }
mlr: subroutine named "s" has already been defined.
mlr --from ./reg_test/input/abixy --opprint put subr log(text) { print "TEXT IS ".text } call log("NR is ".NR)
mlr --from ././reg-test/input/abixy --opprint put subr log(text) { print "TEXT IS ".text } call log("NR is ".NR)
TEXT IS NR is 1
TEXT IS NR is 2
TEXT IS NR is 3
@ -268,7 +268,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --from ./reg_test/input/abixy put -v
mlr --from ././reg-test/input/abixy put -v
func f(x) {
return x**2
}
@ -576,7 +576,7 @@ a=10
b=20
c=30
mlr --from ./reg_test/input/abixy --opprint put subr log(text) { print "TEXT IS ".text } call log("NR is ".NR)
mlr --from ././reg-test/input/abixy --opprint put subr log(text) { print "TEXT IS ".text } call log("NR is ".NR)
TEXT IS NR is 1
TEXT IS NR is 2
TEXT IS NR is 3
@ -599,7 +599,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --from ./reg_test/input/abixy --opprint put func f(text) { print "TEXT IS ".text; return text.text } $o = f($a)
mlr --from ././reg-test/input/abixy --opprint put func f(text) { print "TEXT IS ".text; return text.text } $o = f($a)
TEXT IS pan
TEXT IS eks
TEXT IS wye
@ -622,7 +622,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 zeezee
hat wye 9 0.03144187646093577 0.7495507603507059 hathat
pan wye 10 0.5026260055412137 0.9526183602969864 panpan
mlr --from ./reg_test/input/abixy put begin{@x=1} func f(x) { dump; print "hello" } $o=f($i)
mlr --from ././reg-test/input/abixy put begin{@x=1} func f(x) { dump; print "hello" } $o=f($i)
{
"x": 1
}
@ -674,9 +674,9 @@ a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
hello
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --from ./reg_test/input/abixy put begin{@x=1} func f(x) { dump; print "hello"; tee > "x", $* } $o=f($i)
mlr --from ././reg-test/input/abixy put begin{@x=1} func f(x) { dump; print "hello"; tee > "x", $* } $o=f($i)
mlr: tee statements are not valid within func blocks.
mlr --from ./reg_test/input/abixy put begin{@x=1} func f(x) { dump; print "hello"; emit > "x", @* } $o=f($i)
mlr --from ././reg-test/input/abixy put begin{@x=1} func f(x) { dump; print "hello"; emit > "x", @* } $o=f($i)
mlr: emit statements are not valid within func blocks.

View file

@ -3,7 +3,7 @@
================================================================
USER-DEFINED FUNCTIONS
mlr --opprint --from ./reg_test/input/abixy put func f(u,v){return u+v} $o=f(NR*1000,$x)
mlr --opprint --from ././reg-test/input/abixy put func f(u,v){return u+v} $o=f(NR*1000,$x)
a b i x y o
pan pan 1 0.3467901443380824 0.7268028627434533 1000.346790
eks pan 2 0.7586799647899636 0.5221511083334797 2000.758680
@ -16,10 +16,10 @@ zee wye 8 0.5985540091064224 0.976181385699006 8000.598554
hat wye 9 0.03144187646093577 0.7495507603507059 9000.031442
pan wye 10 0.5026260055412137 0.9526183602969864 10000.502626
mlr --opprint --from ./reg_test/input/abixy put func f(x,y,z){$nnn=999; int n=10; return $y} $o=f($i,$x,$y)
mlr --opprint --from ././reg-test/input/abixy put func f(x,y,z){$nnn=999; int n=10; return $y} $o=f($i,$x,$y)
mlr: assignments to $-variables are not valid within func blocks.
mlr -n put -q -f ./reg_test/input/sieve.mlr
mlr -n put -q -f ././reg-test/input/sieve.mlr
2
3
5
@ -46,7 +46,7 @@ mlr -n put -q -f ./reg_test/input/sieve.mlr
89
97
mlr -n put -q -f ./reg_test/input/mand.mlr -e begin {@verbose = true}
mlr -n put -q -f ././reg-test/input/mand.mlr -e begin {@verbose = true}
RCORN = -2.000000
ICORN = -2.000000
SIDE = 4.000000
@ -106,7 +106,7 @@ CHARS = @X*o-.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
mlr --from ./reg_test/input/abixy put func f(x,y) { return 2*y } $o = f($x,$y)
mlr --from ././reg-test/input/abixy put func f(x,y) { return 2*y } $o = f($x,$y)
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,o=1.453606
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,o=1.044302
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,o=0.676637
@ -118,7 +118,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006,o=1.952363
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,o=1.499102
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,o=1.905237
mlr --opprint --from ./reg_test/input/abixy put $o1 = a; int a=1000+NR; $o2 = a; a=2000+NR; $o3 = a
mlr --opprint --from ././reg-test/input/abixy put $o1 = a; int a=1000+NR; $o2 = a; a=2000+NR; $o3 = a
a b i x y o2 o3
pan pan 1 0.3467901443380824 0.7268028627434533 1001 2001
eks pan 2 0.7586799647899636 0.5221511083334797 1002 2002
@ -131,7 +131,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 1008 2008
hat wye 9 0.03144187646093577 0.7495507603507059 1009 2009
pan wye 10 0.5026260055412137 0.9526183602969864 1010 2010
mlr --opprint --from ./reg_test/input/abixy put
mlr --opprint --from ././reg-test/input/abixy put
func f(n) {
if (is_numeric(n)) {
if (n > 0) {
@ -156,7 +156,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 40320
hat wye 9 0.03144187646093577 0.7495507603507059 362880
pan wye 10 0.5026260055412137 0.9526183602969864 3628800
mlr --from ./reg_test/input/abixy --opprint put
mlr --from ././reg-test/input/abixy --opprint put
func f(n) {
return n+1;
}
@ -179,7 +179,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 9 10 11 12 13 14
hat wye 9 0.03144187646093577 0.7495507603507059 10 11 12 13 14 15
pan wye 10 0.5026260055412137 0.9526183602969864 11 12 13 14 15 16
mlr --from ./reg_test/input/abixy --opprint put
mlr --from ././reg-test/input/abixy --opprint put
func f(n) {
if (n < 2) {
return 1
@ -201,7 +201,7 @@ zee wye 8 0.5985540091064224 0.976181385699006 34
hat wye 9 0.03144187646093577 0.7495507603507059 55
pan wye 10 0.5026260055412137 0.9526183602969864 89
mlr --from ./reg_test/input/abixy --opprint put
mlr --from ././reg-test/input/abixy --opprint put
func f(n) {
if (is_present(@fcache[n])) {
return @fcache[n]

View file

@ -3,7 +3,7 @@
================================================================
USER-DEFINED SUBROUTINES
mlr --opprint --from ./reg_test/input/abixy head -n 5 then put
mlr --opprint --from ././reg-test/input/abixy head -n 5 then put
subr s(n) {
print "n = " . n;
if (is_numeric(n)) {

View file

@ -1,30 +1,30 @@
mlr --icsvlite --opprint put $langue = toupper($langue) ./reg_test/input/utf8-1.csv
mlr --icsvlite --opprint put $langue = toupper($langue) ././reg-test/input/utf8-1.csv
langue nom jour
FRANÇAIS françois vendredi
ŽUSZ éloignée -
mlr --icsvlite --opprint put $nom = toupper($nom) ./reg_test/input/utf8-1.csv
mlr --icsvlite --opprint put $nom = toupper($nom) ././reg-test/input/utf8-1.csv
langue nom jour
français FRANÇOIS vendredi
žusz ÉLOIGNÉE -
mlr --icsvlite --opprint put $jour = toupper($jour) ./reg_test/input/utf8-1.csv
mlr --icsvlite --opprint put $jour = toupper($jour) ././reg-test/input/utf8-1.csv
langue nom jour
français françois VENDREDI
žusz éloignée -
mlr --icsvlite --opprint put $langue = capitalize($langue) ./reg_test/input/utf8-1.csv
mlr --icsvlite --opprint put $langue = capitalize($langue) ././reg-test/input/utf8-1.csv
langue nom jour
Français françois vendredi
Žusz éloignée -
mlr --icsvlite --opprint put $nom = capitalize($nom) ./reg_test/input/utf8-1.csv
mlr --icsvlite --opprint put $nom = capitalize($nom) ././reg-test/input/utf8-1.csv
langue nom jour
français François vendredi
žusz Éloignée -
mlr --icsvlite --opprint put $jour = capitalize($jour) ./reg_test/input/utf8-1.csv
mlr --icsvlite --opprint put $jour = capitalize($jour) ././reg-test/input/utf8-1.csv
langue nom jour
français françois Vendredi
žusz éloignée -

View file

@ -1,11 +1,11 @@
mlr --csv fill-down -f a,b,c ./reg_test/input/fill-down.csv
mlr --csv fill-down -f a,b,c ././reg-test/input/fill-down.csv
a,b,c
1,,3
4,5,6
7,5,9
mlr --csv fill-down -f a,b,c -a ./reg_test/input/fill-down.csv
mlr --csv fill-down -f a,b,c -a ././reg-test/input/fill-down.csv
a,b,c
1,,3
4,5,6

View file

@ -1,5 +1,5 @@
mlr --d2t cat ./reg_test/input/abixy.dkvp
mlr --d2t cat ././reg-test/input/abixy.dkvp
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -12,7 +12,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --d2n cat ./reg_test/input/abixy.dkvp
mlr --d2n cat ././reg-test/input/abixy.dkvp
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
wye wye 3 0.20460330576630303 0.33831852551664776
@ -24,7 +24,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --d2j cat ./reg_test/input/abixy.dkvp
mlr --d2j cat ././reg-test/input/abixy.dkvp
{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 }
{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 }
{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 }
@ -36,7 +36,7 @@ mlr --d2j cat ./reg_test/input/abixy.dkvp
{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 }
{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 }
mlr --d2p cat ./reg_test/input/abixy.dkvp
mlr --d2p cat ././reg-test/input/abixy.dkvp
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -49,7 +49,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --d2x cat ./reg_test/input/abixy.dkvp
mlr --d2x cat ././reg-test/input/abixy.dkvp
a pan
b pan
i 1
@ -110,7 +110,7 @@ i 10
x 0.5026260055412137
y 0.9526183602969864
mlr --d2m cat ./reg_test/input/abixy.dkvp
mlr --d2m cat ././reg-test/input/abixy.dkvp
| a | b | i | x | y |
| --- | --- | --- | --- | --- |
| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 |
@ -124,7 +124,7 @@ mlr --d2m cat ./reg_test/input/abixy.dkvp
| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 |
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |
mlr --c2t cat ./reg_test/input/abixy.csv
mlr --c2t cat ././reg-test/input/abixy.csv
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -137,7 +137,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --c2d cat ./reg_test/input/abixy.csv
mlr --c2d cat ././reg-test/input/abixy.csv
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -149,7 +149,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --c2n cat ./reg_test/input/abixy.csv
mlr --c2n cat ././reg-test/input/abixy.csv
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
wye wye 3 0.20460330576630303 0.33831852551664776
@ -161,7 +161,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --c2j cat ./reg_test/input/abixy.csv
mlr --c2j cat ././reg-test/input/abixy.csv
{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 }
{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 }
{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 }
@ -173,7 +173,7 @@ mlr --c2j cat ./reg_test/input/abixy.csv
{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 }
{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 }
mlr --c2p cat ./reg_test/input/abixy.csv
mlr --c2p cat ././reg-test/input/abixy.csv
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -186,7 +186,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --c2x cat ./reg_test/input/abixy.csv
mlr --c2x cat ././reg-test/input/abixy.csv
a pan
b pan
i 1
@ -247,7 +247,7 @@ i 10
x 0.5026260055412137
y 0.9526183602969864
mlr --c2m cat ./reg_test/input/abixy.csv
mlr --c2m cat ././reg-test/input/abixy.csv
| a | b | i | x | y |
| --- | --- | --- | --- | --- |
| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 |
@ -261,7 +261,7 @@ mlr --c2m cat ./reg_test/input/abixy.csv
| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 |
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |
mlr --t2c cat ./reg_test/input/abixy.tsv
mlr --t2c cat ././reg-test/input/abixy.tsv
a,b,i,x,y
pan,pan,1,0.3467901443380824,0.7268028627434533
eks,pan,2,0.7586799647899636,0.5221511083334797
@ -274,7 +274,7 @@ zee,wye,8,0.5985540091064224,0.976181385699006
hat,wye,9,0.03144187646093577,0.7495507603507059
pan,wye,10,0.5026260055412137,0.9526183602969864
mlr --t2d cat ./reg_test/input/abixy.tsv
mlr --t2d cat ././reg-test/input/abixy.tsv
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -286,7 +286,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --t2n cat ./reg_test/input/abixy.tsv
mlr --t2n cat ././reg-test/input/abixy.tsv
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
wye wye 3 0.20460330576630303 0.33831852551664776
@ -298,7 +298,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --t2j cat ./reg_test/input/abixy.tsv
mlr --t2j cat ././reg-test/input/abixy.tsv
{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 }
{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 }
{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 }
@ -310,7 +310,7 @@ mlr --t2j cat ./reg_test/input/abixy.tsv
{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 }
{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 }
mlr --t2p cat ./reg_test/input/abixy.tsv
mlr --t2p cat ././reg-test/input/abixy.tsv
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -323,7 +323,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --t2x cat ./reg_test/input/abixy.tsv
mlr --t2x cat ././reg-test/input/abixy.tsv
a pan
b pan
i 1
@ -384,7 +384,7 @@ i 10
x 0.5026260055412137
y 0.9526183602969864
mlr --t2m cat ./reg_test/input/abixy.tsv
mlr --t2m cat ././reg-test/input/abixy.tsv
| a | b | i | x | y |
| --- | --- | --- | --- | --- |
| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 |
@ -398,7 +398,7 @@ mlr --t2m cat ./reg_test/input/abixy.tsv
| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 |
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |
mlr --n2c cat ./reg_test/input/abixy.nidx
mlr --n2c cat ././reg-test/input/abixy.nidx
1,2,3,4,5
pan,pan,1,0.3467901443380824,0.7268028627434533
eks,pan,2,0.7586799647899636,0.5221511083334797
@ -411,7 +411,7 @@ zee,wye,8,0.5985540091064224,0.976181385699006
hat,wye,9,0.03144187646093577,0.7495507603507059
pan,wye,10,0.5026260055412137,0.9526183602969864
mlr --n2t cat ./reg_test/input/abixy.nidx
mlr --n2t cat ././reg-test/input/abixy.nidx
1 2 3 4 5
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -424,7 +424,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --n2d cat ./reg_test/input/abixy.nidx
mlr --n2d cat ././reg-test/input/abixy.nidx
1=pan,2=pan,3=1,4=0.3467901443380824,5=0.7268028627434533
1=eks,2=pan,3=2,4=0.7586799647899636,5=0.5221511083334797
1=wye,2=wye,3=3,4=0.20460330576630303,5=0.33831852551664776
@ -436,7 +436,7 @@ mlr --n2d cat ./reg_test/input/abixy.nidx
1=hat,2=wye,3=9,4=0.03144187646093577,5=0.7495507603507059
1=pan,2=wye,3=10,4=0.5026260055412137,5=0.9526183602969864
mlr --n2j cat ./reg_test/input/abixy.nidx
mlr --n2j cat ././reg-test/input/abixy.nidx
{ "1": "pan", "2": "pan", "3": 1, "4": 0.3467901443380824, "5": 0.7268028627434533 }
{ "1": "eks", "2": "pan", "3": 2, "4": 0.7586799647899636, "5": 0.5221511083334797 }
{ "1": "wye", "2": "wye", "3": 3, "4": 0.20460330576630303, "5": 0.33831852551664776 }
@ -448,7 +448,7 @@ mlr --n2j cat ./reg_test/input/abixy.nidx
{ "1": "hat", "2": "wye", "3": 9, "4": 0.03144187646093577, "5": 0.7495507603507059 }
{ "1": "pan", "2": "wye", "3": 10, "4": 0.5026260055412137, "5": 0.9526183602969864 }
mlr --n2p cat ./reg_test/input/abixy.nidx
mlr --n2p cat ././reg-test/input/abixy.nidx
1 2 3 4 5
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -461,7 +461,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --n2x cat ./reg_test/input/abixy.nidx
mlr --n2x cat ././reg-test/input/abixy.nidx
1 pan
2 pan
3 1
@ -522,7 +522,7 @@ mlr --n2x cat ./reg_test/input/abixy.nidx
4 0.5026260055412137
5 0.9526183602969864
mlr --n2m cat ./reg_test/input/abixy.nidx
mlr --n2m cat ././reg-test/input/abixy.nidx
| 1 | 2 | 3 | 4 | 5 |
| --- | --- | --- | --- | --- |
| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 |
@ -536,7 +536,7 @@ mlr --n2m cat ./reg_test/input/abixy.nidx
| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 |
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |
mlr --j2c cat ./reg_test/input/abixy.json
mlr --j2c cat ././reg-test/input/abixy.json
a,b,i,x,y
pan,pan,1,0.3467901443380824,0.7268028627434533
eks,pan,2,0.7586799647899636,0.5221511083334797
@ -549,7 +549,7 @@ zee,wye,8,0.5985540091064224,0.976181385699006
hat,wye,9,0.03144187646093577,0.7495507603507059
pan,wye,10,0.5026260055412137,0.9526183602969864
mlr --j2t cat ./reg_test/input/abixy.json
mlr --j2t cat ././reg-test/input/abixy.json
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -562,7 +562,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --j2d cat ./reg_test/input/abixy.json
mlr --j2d cat ././reg-test/input/abixy.json
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -574,7 +574,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --j2n cat ./reg_test/input/abixy.json
mlr --j2n cat ././reg-test/input/abixy.json
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
wye wye 3 0.20460330576630303 0.33831852551664776
@ -586,7 +586,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --j2p cat ./reg_test/input/abixy.json
mlr --j2p cat ././reg-test/input/abixy.json
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -599,7 +599,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --j2x cat ./reg_test/input/abixy.json
mlr --j2x cat ././reg-test/input/abixy.json
a pan
b pan
i 1
@ -660,7 +660,7 @@ i 10
x 0.5026260055412137
y 0.9526183602969864
mlr --j2m cat ./reg_test/input/abixy.json
mlr --j2m cat ././reg-test/input/abixy.json
| a | b | i | x | y |
| --- | --- | --- | --- | --- |
| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 |
@ -674,7 +674,7 @@ mlr --j2m cat ./reg_test/input/abixy.json
| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 |
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |
mlr --p2c cat ./reg_test/input/abixy.pprint
mlr --p2c cat ././reg-test/input/abixy.pprint
a,b,i,x,y
pan,pan,1,0.3467901443380824,0.7268028627434533
eks,pan,2,0.7586799647899636,0.5221511083334797
@ -687,7 +687,7 @@ zee,wye,8,0.5985540091064224,0.976181385699006
hat,wye,9,0.03144187646093577,0.7495507603507059
pan,wye,10,0.5026260055412137,0.9526183602969864
mlr --p2t cat ./reg_test/input/abixy.pprint
mlr --p2t cat ././reg-test/input/abixy.pprint
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -700,7 +700,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --p2d cat ./reg_test/input/abixy.pprint
mlr --p2d cat ././reg-test/input/abixy.pprint
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -712,7 +712,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --p2n cat ./reg_test/input/abixy.pprint
mlr --p2n cat ././reg-test/input/abixy.pprint
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
wye wye 3 0.20460330576630303 0.33831852551664776
@ -724,7 +724,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --p2j cat ./reg_test/input/abixy.pprint
mlr --p2j cat ././reg-test/input/abixy.pprint
{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 }
{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 }
{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 }
@ -736,7 +736,7 @@ mlr --p2j cat ./reg_test/input/abixy.pprint
{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 }
{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 }
mlr --p2x cat ./reg_test/input/abixy.pprint
mlr --p2x cat ././reg-test/input/abixy.pprint
a pan
b pan
i 1
@ -797,7 +797,7 @@ i 10
x 0.5026260055412137
y 0.9526183602969864
mlr --p2m cat ./reg_test/input/abixy.pprint
mlr --p2m cat ././reg-test/input/abixy.pprint
| a | b | i | x | y |
| --- | --- | --- | --- | --- |
| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 |
@ -811,7 +811,7 @@ mlr --p2m cat ./reg_test/input/abixy.pprint
| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 |
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |
mlr --x2c cat ./reg_test/input/abixy.xtab
mlr --x2c cat ././reg-test/input/abixy.xtab
a,b,i,x,y
pan,pan,1,0.3467901443380824,0.7268028627434533
eks,pan,2,0.7586799647899636,0.5221511083334797
@ -824,7 +824,7 @@ zee,wye,8,0.5985540091064224,0.976181385699006
hat,wye,9,0.03144187646093577,0.7495507603507059
pan,wye,10,0.5026260055412137,0.9526183602969864
mlr --x2t cat ./reg_test/input/abixy.xtab
mlr --x2t cat ././reg-test/input/abixy.xtab
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -837,7 +837,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --x2d cat ./reg_test/input/abixy.xtab
mlr --x2d cat ././reg-test/input/abixy.xtab
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -849,7 +849,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr --x2n cat ./reg_test/input/abixy.xtab
mlr --x2n cat ././reg-test/input/abixy.xtab
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
wye wye 3 0.20460330576630303 0.33831852551664776
@ -861,7 +861,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --x2j cat ./reg_test/input/abixy.xtab
mlr --x2j cat ././reg-test/input/abixy.xtab
{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 }
{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 }
{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 }
@ -873,7 +873,7 @@ mlr --x2j cat ./reg_test/input/abixy.xtab
{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 }
{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 }
mlr --x2p cat ./reg_test/input/abixy.xtab
mlr --x2p cat ././reg-test/input/abixy.xtab
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
@ -886,7 +886,7 @@ zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
mlr --x2m cat ./reg_test/input/abixy.xtab
mlr --x2m cat ././reg-test/input/abixy.xtab
| a | b | i | x | y |
| --- | --- | --- | --- | --- |
| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 |

View file

@ -1,5 +1,5 @@
mlr format-values ./reg_test/input/abixy
mlr format-values ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.346790,y=0.726803
a=eks,b=pan,i=2,x=0.758680,y=0.522151
a=wye,b=wye,i=3,x=0.204603,y=0.338319
@ -11,7 +11,7 @@ a=zee,b=wye,i=8,x=0.598554,y=0.976181
a=hat,b=wye,i=9,x=0.031442,y=0.749551
a=pan,b=wye,i=10,x=0.502626,y=0.952618
mlr format-values -n ./reg_test/input/abixy
mlr format-values -n ././reg-test/input/abixy
a=pan,b=pan,i=1.000000,x=0.346790,y=0.726803
a=eks,b=pan,i=2.000000,x=0.758680,y=0.522151
a=wye,b=wye,i=3.000000,x=0.204603,y=0.338319
@ -23,7 +23,7 @@ a=zee,b=wye,i=8.000000,x=0.598554,y=0.976181
a=hat,b=wye,i=9.000000,x=0.031442,y=0.749551
a=pan,b=wye,i=10.000000,x=0.502626,y=0.952618
mlr format-values -i %08llx -f %.6le -s X%sX ./reg_test/input/abixy
mlr format-values -i %08llx -f %.6le -s X%sX ././reg-test/input/abixy
a=XpanX,b=XpanX,i=00000001,x=3.467901e-01,y=7.268029e-01
a=XeksX,b=XpanX,i=00000002,x=7.586800e-01,y=5.221511e-01
a=XwyeX,b=XwyeX,i=00000003,x=2.046033e-01,y=3.383185e-01
@ -35,7 +35,7 @@ a=XzeeX,b=XwyeX,i=00000008,x=5.985540e-01,y=9.761814e-01
a=XhatX,b=XwyeX,i=00000009,x=3.144188e-02,y=7.495508e-01
a=XpanX,b=XwyeX,i=0000000a,x=5.026260e-01,y=9.526184e-01
mlr format-values -i %08llx -f %.6le -s X%sX -n ./reg_test/input/abixy
mlr format-values -i %08llx -f %.6le -s X%sX -n ././reg-test/input/abixy
a=XpanX,b=XpanX,i=1.000000e+00,x=3.467901e-01,y=7.268029e-01
a=XeksX,b=XpanX,i=2.000000e+00,x=7.586800e-01,y=5.221511e-01
a=XwyeX,b=XwyeX,i=3.000000e+00,x=2.046033e-01,y=3.383185e-01

View file

@ -1,5 +1,5 @@
mlr fraction -f x,y ./reg_test/input/abixy-het
mlr fraction -f x,y ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_fraction=0.087507,y_fraction=0.146286
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_fraction=0.191441,y_fraction=0.105095
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,x_fraction=0.051628,y_fraction=0.068095
@ -11,7 +11,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_fraction=0.151035
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,x_fraction=0.007934,y_fraction=0.150865
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_fraction=0.126830,y_fraction=0.191737
mlr fraction -f x,y -g a ./reg_test/input/abixy-het
mlr fraction -f x,y -g a ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_fraction=0.408269,y_fraction=0.432770
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_fraction=0.433070,y_fraction=0.618498
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -23,7 +23,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_fraction=0.531727
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_fraction=0.591731,y_fraction=0.567230
mlr fraction -f x,y -g a,b ./reg_test/input/abixy-het
mlr fraction -f x,y -g a,b ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_fraction=1.000000,y_fraction=1.000000
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_fraction=1.000000,y_fraction=1.000000
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -35,7 +35,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_fraction=1.000000
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_fraction=1.000000,y_fraction=1.000000
mlr fraction -f x,y -p ./reg_test/input/abixy-het
mlr fraction -f x,y -p ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_percent=8.750687,y_percent=14.628624
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_percent=19.144058,y_percent=10.509524
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,x_percent=5.162832,y_percent=6.809459
@ -47,7 +47,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_percent=15.103539
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,x_percent=0.793385,y_percent=15.086479
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_percent=12.682952,y_percent=19.173694
mlr fraction -f x,y -g a -p ./reg_test/input/abixy-het
mlr fraction -f x,y -g a -p ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_percent=40.826884,y_percent=43.276985
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_percent=43.307027,y_percent=61.849773
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -59,7 +59,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_percent=53.172653
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_percent=59.173116,y_percent=56.723015
mlr fraction -f x,y -g a,b -p ./reg_test/input/abixy-het
mlr fraction -f x,y -g a,b -p ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_percent=100.000000,y_percent=100.000000
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_percent=100.000000,y_percent=100.000000
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -71,7 +71,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_percent=100.000000
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_percent=100.000000,y_percent=100.000000
mlr fraction -f x,y -c ./reg_test/input/abixy-het
mlr fraction -f x,y -c ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_cumulative_fraction=0.087507,y_cumulative_fraction=0.146286
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_cumulative_fraction=0.278947,y_cumulative_fraction=0.251381
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,x_cumulative_fraction=0.330576,y_cumulative_fraction=0.319476
@ -83,7 +83,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_cumulative_fraction
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,x_cumulative_fraction=0.873170,y_cumulative_fraction=0.808263
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_cumulative_fraction=1.000000,y_cumulative_fraction=1.000000
mlr fraction -f x,y -g a -c ./reg_test/input/abixy-het
mlr fraction -f x,y -g a -c ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_cumulative_fraction=0.408269,y_cumulative_fraction=0.432770
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_cumulative_fraction=0.433070,y_cumulative_fraction=0.618498
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -95,7 +95,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_cumulative_fraction
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_cumulative_fraction=1.000000,y_cumulative_fraction=1.000000
mlr fraction -f x,y -g a,b -c ./reg_test/input/abixy-het
mlr fraction -f x,y -g a,b -c ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_cumulative_fraction=1.000000,y_cumulative_fraction=1.000000
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_cumulative_fraction=1.000000,y_cumulative_fraction=1.000000
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -107,7 +107,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_cumulative_fraction
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_cumulative_fraction=1.000000,y_cumulative_fraction=1.000000
mlr fraction -f x,y -p -c ./reg_test/input/abixy-het
mlr fraction -f x,y -p -c ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_cumulative_percent=8.750687,y_cumulative_percent=14.628624
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_cumulative_percent=27.894745,y_cumulative_percent=25.138148
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776,x_cumulative_percent=33.057577,y_cumulative_percent=31.947608
@ -119,7 +119,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_cumulative_percent=
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059,x_cumulative_percent=87.317048,y_cumulative_percent=80.826306
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_cumulative_percent=100.000000,y_cumulative_percent=100.000000
mlr fraction -f x,y -g a -p -c ./reg_test/input/abixy-het
mlr fraction -f x,y -g a -p -c ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_cumulative_percent=40.826884,y_cumulative_percent=43.276985
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_cumulative_percent=43.307027,y_cumulative_percent=61.849773
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -131,7 +131,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006,x_cumulative_percent=
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864,x_cumulative_percent=100.000000,y_cumulative_percent=100.000000
mlr fraction -f x,y -g a,b -p -c ./reg_test/input/abixy-het
mlr fraction -f x,y -g a,b -p -c ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533,x_cumulative_percent=100.000000,y_cumulative_percent=100.000000
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797,x_cumulative_percent=100.000000,y_cumulative_percent=100.000000
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776

View file

@ -1,12 +1,12 @@
mlr grep pan ./reg_test/input/abixy-het
mlr grep pan ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=pan,i=5,xxx=0.5732889198020006,y=0.8636244699032729
a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr grep -v pan ./reg_test/input/abixy-het
mlr grep -v pan ././reg-test/input/abixy-het
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=eks,bbb=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694

View file

@ -1,5 +1,5 @@
mlr group-by a ./reg_test/input/abixy
mlr group-by a ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
@ -11,7 +11,7 @@ a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
mlr group-by a,b ./reg_test/input/abixy
mlr group-by a,b ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776

View file

@ -1,5 +1,5 @@
mlr group-like ./reg_test/input/het.dkvp
mlr group-like ././reg-test/input/het.dkvp
host=jupiter
host=saturn
host=mars

View file

@ -1,5 +1,5 @@
mlr having-fields --at-least a,b ./reg_test/input/abixy
mlr having-fields --at-least a,b ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -11,9 +11,9 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr having-fields --at-least a,c ./reg_test/input/abixy
mlr having-fields --at-least a,c ././reg-test/input/abixy
mlr having-fields --at-least a,b,i,x,y ./reg_test/input/abixy
mlr having-fields --at-least a,b,i,x,y ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -25,9 +25,9 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr having-fields --which-are a,b,i,x ./reg_test/input/abixy
mlr having-fields --which-are a,b,i,x ././reg-test/input/abixy
mlr having-fields --which-are a,b,i,x,y ./reg_test/input/abixy
mlr having-fields --which-are a,b,i,x,y ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -39,7 +39,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr having-fields --which-are a,b,i,y,x ./reg_test/input/abixy
mlr having-fields --which-are a,b,i,y,x ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -51,13 +51,13 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr having-fields --which-are a,b,i,x,w ./reg_test/input/abixy
mlr having-fields --which-are a,b,i,x,w ././reg-test/input/abixy
mlr having-fields --which-are a,b,i,x,y,z ./reg_test/input/abixy
mlr having-fields --which-are a,b,i,x,y,z ././reg-test/input/abixy
mlr having-fields --at-most a,c ./reg_test/input/abixy
mlr having-fields --at-most a,c ././reg-test/input/abixy
mlr having-fields --at-most a,b,i,x,y ./reg_test/input/abixy
mlr having-fields --at-most a,b,i,x,y ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -69,7 +69,7 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr having-fields --at-most a,b,i,x,y,z ./reg_test/input/abixy
mlr having-fields --at-most a,b,i,x,y,z ././reg-test/input/abixy
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
@ -81,24 +81,24 @@ a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr having-fields --all-matching "^[a-z][a-z][a-z]$" ./reg_test/input/having-fields-regex.dkvp
mlr having-fields --all-matching "^[a-z][a-z][a-z]$" ././reg-test/input/having-fields-regex.dkvp
abc=1,def=11
mlr having-fields --any-matching "^[a-z][a-z][a-z]$" ./reg_test/input/having-fields-regex.dkvp
mlr having-fields --any-matching "^[a-z][a-z][a-z]$" ././reg-test/input/having-fields-regex.dkvp
abc=1,def=11
abcd=3,ghi=13
abcde=5,ghi=15
mlr having-fields --none-matching "^[a-z][a-z][a-z]$" ./reg_test/input/having-fields-regex.dkvp
mlr having-fields --none-matching "^[a-z][a-z][a-z]$" ././reg-test/input/having-fields-regex.dkvp
ABC=2,DEF=12
ABCD=4,GHI=14
ABCDE=6,GHI=16
mlr having-fields --all-matching "^[a-z][a-z][a-z]$"i ./reg_test/input/having-fields-regex.dkvp
mlr having-fields --all-matching "^[a-z][a-z][a-z]$"i ././reg-test/input/having-fields-regex.dkvp
abc=1,def=11
ABC=2,DEF=12
mlr having-fields --any-matching "^[a-z][a-z][a-z]$"i ./reg_test/input/having-fields-regex.dkvp
mlr having-fields --any-matching "^[a-z][a-z][a-z]$"i ././reg-test/input/having-fields-regex.dkvp
abc=1,def=11
ABC=2,DEF=12
abcd=3,ghi=13
@ -106,5 +106,5 @@ ABCD=4,GHI=14
abcde=5,ghi=15
ABCDE=6,GHI=16
mlr having-fields --none-matching "^[a-z][a-z][a-z]$"i ./reg_test/input/having-fields-regex.dkvp
mlr having-fields --none-matching "^[a-z][a-z][a-z]$"i ././reg-test/input/having-fields-regex.dkvp

View file

@ -1,10 +1,10 @@
mlr head -n 2 then put end{ print "Final NR is ".NR} ./reg_test/input/abixy-wide
mlr head -n 2 then put end{ print "Final NR is ".NR} ././reg-test/input/abixy-wide
a=cat,b=pan,i=1,x=0.5117389009583777,y=0.08295224980036853,x2=0.2618767027540883,xy=0.0424498931448654,y2=0.006881075746942741
a=pan,b=wye,i=2,x=0.5225940442098578,y=0.511678736087022,x2=0.27310453504361476,xy=0.2674002600279053,y2=0.26181512896361225
Final NR is 3
mlr head -n 2 -g a then put end{ print "Final NR is ".NR} ./reg_test/input/abixy-wide
mlr head -n 2 -g a then put end{ print "Final NR is ".NR} ././reg-test/input/abixy-wide
a=cat,b=pan,i=1,x=0.5117389009583777,y=0.08295224980036853,x2=0.2618767027540883,xy=0.0424498931448654,y2=0.006881075746942741
a=pan,b=wye,i=2,x=0.5225940442098578,y=0.511678736087022,x2=0.27310453504361476,xy=0.2674002600279053,y2=0.26181512896361225
a=wye,b=cat,i=3,x=0.8150401717873625,y=0.07989551500795256,x2=0.6642904816271734,xy=0.06511805427712146,y2=0.006383293318385972
@ -17,17 +17,17 @@ a=cat,b=hat,i=12,x=0.6335445699880142,y=0.15467178563525052,x2=0.401378722161297
a=hat,b=wye,i=13,x=0.35922068401384877,y=0.8502678133887914,x2=0.1290394998233774,xy=0.30543378552048117,y2=0.7229553544849566
Final NR is 2000
mlr cat then head -n 2 then put end{ print "Final NR is ".NR} ./reg_test/input/abixy-wide
mlr cat then head -n 2 then put end{ print "Final NR is ".NR} ././reg-test/input/abixy-wide
a=cat,b=pan,i=1,x=0.5117389009583777,y=0.08295224980036853,x2=0.2618767027540883,xy=0.0424498931448654,y2=0.006881075746942741
a=pan,b=wye,i=2,x=0.5225940442098578,y=0.511678736087022,x2=0.27310453504361476,xy=0.2674002600279053,y2=0.26181512896361225
Final NR is 3
mlr tac then head -n 2 then put end{ print "Final NR is ".NR} ./reg_test/input/abixy-wide
mlr tac then head -n 2 then put end{ print "Final NR is ".NR} ././reg-test/input/abixy-wide
Final NR is 2000
a=wye,b=cat,i=2000,x=0.10887569736363611,y=0.3480524315645718,x2=0.01185391747641808,xy=0.037894451205701986,y2=0.12114049511801092
a=hat,b=dog,i=1999,x=0.010819574860139292,y=0.8983779455002124,x2=0.00011706320015415817,xy=0.009720067434037685,y2=0.8070829329611827
mlr head -n 2 then put end{ print "Final NR is ".NR} ./reg_test/input/abixy-wide ./reg_test/input/abixy-wide ./reg_test/input/abixy-wide
mlr head -n 2 then put end{ print "Final NR is ".NR} ././reg-test/input/abixy-wide ././reg-test/input/abixy-wide ././reg-test/input/abixy-wide
a=cat,b=pan,i=1,x=0.5117389009583777,y=0.08295224980036853,x2=0.2618767027540883,xy=0.0424498931448654,y2=0.006881075746942741
a=pan,b=wye,i=2,x=0.5225940442098578,y=0.511678736087022,x2=0.27310453504361476,xy=0.2674002600279053,y2=0.26181512896361225
Final NR is 3

View file

@ -1,9 +1,9 @@
mlr head -n 2 ./reg_test/input/abixy-het
mlr head -n 2 ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
mlr head -n 2 -g a ./reg_test/input/abixy-het
mlr head -n 2 -g a ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=eks,bbb=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
@ -12,7 +12,7 @@ a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
mlr head -n 2 -g a,b ./reg_test/input/abixy-het
mlr head -n 2 -g a,b ././reg-test/input/abixy-het
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=pan,i=5,xxx=0.5732889198020006,y=0.8636244699032729

View file

@ -1,39 +1,39 @@
mlr --icsvlite --odkvp cat ./reg_test/input/a.csv
mlr --icsvlite --odkvp cat ././reg-test/input/a.csv
a=1,b=2,c=3
a=4,b=5,c=6
mlr --icsvlite --odkvp cat ./reg_test/input/b.csv
mlr --icsvlite --odkvp cat ././reg-test/input/b.csv
d=5,e=6,f=7
mlr --icsvlite --odkvp cat ./reg_test/input/c.csv
mlr --icsvlite --odkvp cat ././reg-test/input/c.csv
a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
mlr --icsvlite --odkvp cat ./reg_test/input/d.csv
mlr --icsvlite --odkvp cat ././reg-test/input/d.csv
h=3,i=4,j=5
m=8,n=9,o=10
mlr --icsvlite --odkvp cat ./reg_test/input/e.csv
mlr --icsvlite --odkvp cat ././reg-test/input/e.csv
a=1,b=2,c=3
a=4,b=5,c=6
mlr --icsvlite --odkvp cat ./reg_test/input/f.csv
mlr --icsvlite --odkvp cat ././reg-test/input/f.csv
mlr --icsvlite --odkvp cat ./reg_test/input/g.csv
mlr --icsvlite --odkvp cat ././reg-test/input/g.csv
mlr --icsvlite --odkvp cat ./reg_test/input/a.csv ./reg_test/input/a.csv
mlr --icsvlite --odkvp cat ././reg-test/input/a.csv ././reg-test/input/a.csv
a=1,b=2,c=3
a=4,b=5,c=6
a=1,b=2,c=3
a=4,b=5,c=6
mlr --icsvlite --odkvp cat ./reg_test/input/b.csv ./reg_test/input/b.csv
mlr --icsvlite --odkvp cat ././reg-test/input/b.csv ././reg-test/input/b.csv
d=5,e=6,f=7
d=5,e=6,f=7
mlr --icsvlite --odkvp cat ./reg_test/input/c.csv ./reg_test/input/c.csv
mlr --icsvlite --odkvp cat ././reg-test/input/c.csv ././reg-test/input/c.csv
a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
@ -41,53 +41,53 @@ a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
mlr --icsvlite --odkvp cat ./reg_test/input/d.csv ./reg_test/input/d.csv
mlr --icsvlite --odkvp cat ././reg-test/input/d.csv ././reg-test/input/d.csv
h=3,i=4,j=5
m=8,n=9,o=10
h=3,i=4,j=5
m=8,n=9,o=10
mlr --icsvlite --odkvp cat ./reg_test/input/e.csv ./reg_test/input/e.csv
mlr --icsvlite --odkvp cat ././reg-test/input/e.csv ././reg-test/input/e.csv
a=1,b=2,c=3
a=4,b=5,c=6
a=1,b=2,c=3
a=4,b=5,c=6
mlr --icsvlite --odkvp cat ./reg_test/input/f.csv ./reg_test/input/f.csv
mlr --icsvlite --odkvp cat ././reg-test/input/f.csv ././reg-test/input/f.csv
mlr --icsvlite --odkvp cat ./reg_test/input/g.csv ./reg_test/input/g.csv
mlr --icsvlite --odkvp cat ././reg-test/input/g.csv ././reg-test/input/g.csv
mlr --icsvlite --odkvp cat ./reg_test/input/a.csv ./reg_test/input/b.csv
mlr --icsvlite --odkvp cat ././reg-test/input/a.csv ././reg-test/input/b.csv
a=1,b=2,c=3
a=4,b=5,c=6
d=5,e=6,f=7
mlr --icsvlite --odkvp cat ./reg_test/input/b.csv ./reg_test/input/c.csv
mlr --icsvlite --odkvp cat ././reg-test/input/b.csv ././reg-test/input/c.csv
d=5,e=6,f=7
a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
mlr --icsvlite --odkvp cat ./reg_test/input/c.csv ./reg_test/input/d.csv
mlr --icsvlite --odkvp cat ././reg-test/input/c.csv ././reg-test/input/d.csv
a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
h=3,i=4,j=5
m=8,n=9,o=10
mlr --icsvlite --odkvp cat ./reg_test/input/d.csv ./reg_test/input/e.csv
mlr --icsvlite --odkvp cat ././reg-test/input/d.csv ././reg-test/input/e.csv
h=3,i=4,j=5
m=8,n=9,o=10
a=1,b=2,c=3
a=4,b=5,c=6
mlr --icsvlite --odkvp cat ./reg_test/input/e.csv ./reg_test/input/f.csv
mlr --icsvlite --odkvp cat ././reg-test/input/e.csv ././reg-test/input/f.csv
a=1,b=2,c=3
a=4,b=5,c=6
mlr --icsvlite --odkvp cat ./reg_test/input/f.csv ./reg_test/input/g.csv
mlr --icsvlite --odkvp cat ././reg-test/input/f.csv ././reg-test/input/g.csv
mlr --icsvlite --odkvp cat ./reg_test/input/a.csv ./reg_test/input/b.csv ./reg_test/input/c.csv ./reg_test/input/d.csv ./reg_test/input/e.csv ./reg_test/input/f.csv ./reg_test/input/g.csv
mlr --icsvlite --odkvp cat ././reg-test/input/a.csv ././reg-test/input/b.csv ././reg-test/input/c.csv ././reg-test/input/d.csv ././reg-test/input/e.csv ././reg-test/input/f.csv ././reg-test/input/g.csv
a=1,b=2,c=3
a=4,b=5,c=6
d=5,e=6,f=7
@ -99,30 +99,30 @@ m=8,n=9,o=10
a=1,b=2,c=3
a=4,b=5,c=6
mlr --icsvlite --odkvp tac ./reg_test/input/het.csv
mlr --icsvlite --odkvp tac ././reg-test/input/het.csv
resource=/some/other/path,loadsec=0.97,ok=false
record_count=150,resource=/path/to/second/file
resource=/path/to/second/file,loadsec=0.32,ok=true
record_count=100,resource=/path/to/file
resource=/path/to/file,loadsec=0.45,ok=true
mlr --headerless-csv-output --csvlite tac ./reg_test/input/a.csv
mlr --headerless-csv-output --csvlite tac ././reg-test/input/a.csv
4,5,6
1,2,3
mlr --headerless-csv-output --csvlite tac ./reg_test/input/c.csv
mlr --headerless-csv-output --csvlite tac ././reg-test/input/c.csv
7,8,9
4,5,6
1,2,3
mlr --headerless-csv-output --csvlite tac ./reg_test/input/a.csv ./reg_test/input/c.csv
mlr --headerless-csv-output --csvlite tac ././reg-test/input/a.csv ././reg-test/input/c.csv
7,8,9
4,5,6
1,2,3
4,5,6
1,2,3
mlr --headerless-csv-output --csvlite tac ./reg_test/input/het.csv
mlr --headerless-csv-output --csvlite tac ././reg-test/input/het.csv
/some/other/path,0.97,false
150,/path/to/second/file
@ -133,7 +133,7 @@ mlr --headerless-csv-output --csvlite tac ./reg_test/input/het.csv
/path/to/file,0.45,true
mlr --headerless-csv-output --csvlite group-like ./reg_test/input/het.csv
mlr --headerless-csv-output --csvlite group-like ././reg-test/input/het.csv
/path/to/file,0.45,true
/path/to/second/file,0.32,true
/some/other/path,0.97,false

View file

@ -1,39 +1,39 @@
mlr --ipprint --odkvp cat ./reg_test/input/a.pprint
mlr --ipprint --odkvp cat ././reg-test/input/a.pprint
a=1,b=2,c=3
a=4,b=5,c=6
mlr --ipprint --odkvp cat ./reg_test/input/b.pprint
mlr --ipprint --odkvp cat ././reg-test/input/b.pprint
d=5,e=6,f=7
mlr --ipprint --odkvp cat ./reg_test/input/c.pprint
mlr --ipprint --odkvp cat ././reg-test/input/c.pprint
a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
mlr --ipprint --odkvp cat ./reg_test/input/d.pprint
mlr --ipprint --odkvp cat ././reg-test/input/d.pprint
h=3,i=4,j=5
m=8,n=9,o=10
mlr --ipprint --odkvp cat ./reg_test/input/e.pprint
mlr --ipprint --odkvp cat ././reg-test/input/e.pprint
a=1,b=2,c=3
a=4,b=5,c=6
mlr --ipprint --odkvp cat ./reg_test/input/f.pprint
mlr --ipprint --odkvp cat ././reg-test/input/f.pprint
mlr --ipprint --odkvp cat ./reg_test/input/g.pprint
mlr --ipprint --odkvp cat ././reg-test/input/g.pprint
mlr --ipprint --odkvp cat ./reg_test/input/a.pprint ./reg_test/input/a.pprint
mlr --ipprint --odkvp cat ././reg-test/input/a.pprint ././reg-test/input/a.pprint
a=1,b=2,c=3
a=4,b=5,c=6
a=1,b=2,c=3
a=4,b=5,c=6
mlr --ipprint --odkvp cat ./reg_test/input/b.pprint ./reg_test/input/b.pprint
mlr --ipprint --odkvp cat ././reg-test/input/b.pprint ././reg-test/input/b.pprint
d=5,e=6,f=7
d=5,e=6,f=7
mlr --ipprint --odkvp cat ./reg_test/input/c.pprint ./reg_test/input/c.pprint
mlr --ipprint --odkvp cat ././reg-test/input/c.pprint ././reg-test/input/c.pprint
a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
@ -41,53 +41,53 @@ a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
mlr --ipprint --odkvp cat ./reg_test/input/d.pprint ./reg_test/input/d.pprint
mlr --ipprint --odkvp cat ././reg-test/input/d.pprint ././reg-test/input/d.pprint
h=3,i=4,j=5
m=8,n=9,o=10
h=3,i=4,j=5
m=8,n=9,o=10
mlr --ipprint --odkvp cat ./reg_test/input/e.pprint ./reg_test/input/e.pprint
mlr --ipprint --odkvp cat ././reg-test/input/e.pprint ././reg-test/input/e.pprint
a=1,b=2,c=3
a=4,b=5,c=6
a=1,b=2,c=3
a=4,b=5,c=6
mlr --ipprint --odkvp cat ./reg_test/input/f.pprint ./reg_test/input/f.pprint
mlr --ipprint --odkvp cat ././reg-test/input/f.pprint ././reg-test/input/f.pprint
mlr --ipprint --odkvp cat ./reg_test/input/g.pprint ./reg_test/input/g.pprint
mlr --ipprint --odkvp cat ././reg-test/input/g.pprint ././reg-test/input/g.pprint
mlr --ipprint --odkvp cat ./reg_test/input/a.pprint ./reg_test/input/b.pprint
mlr --ipprint --odkvp cat ././reg-test/input/a.pprint ././reg-test/input/b.pprint
a=1,b=2,c=3
a=4,b=5,c=6
d=5,e=6,f=7
mlr --ipprint --odkvp cat ./reg_test/input/b.pprint ./reg_test/input/c.pprint
mlr --ipprint --odkvp cat ././reg-test/input/b.pprint ././reg-test/input/c.pprint
d=5,e=6,f=7
a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
mlr --ipprint --odkvp cat ./reg_test/input/c.pprint ./reg_test/input/d.pprint
mlr --ipprint --odkvp cat ././reg-test/input/c.pprint ././reg-test/input/d.pprint
a=1,b=2,c=3
a=4,b=5,c=6
a=7,b=8,c=9
h=3,i=4,j=5
m=8,n=9,o=10
mlr --ipprint --odkvp cat ./reg_test/input/d.pprint ./reg_test/input/e.pprint
mlr --ipprint --odkvp cat ././reg-test/input/d.pprint ././reg-test/input/e.pprint
h=3,i=4,j=5
m=8,n=9,o=10
a=1,b=2,c=3
a=4,b=5,c=6
mlr --ipprint --odkvp cat ./reg_test/input/e.pprint ./reg_test/input/f.pprint
mlr --ipprint --odkvp cat ././reg-test/input/e.pprint ././reg-test/input/f.pprint
a=1,b=2,c=3
a=4,b=5,c=6
mlr --ipprint --odkvp cat ./reg_test/input/f.pprint ./reg_test/input/g.pprint
mlr --ipprint --odkvp cat ././reg-test/input/f.pprint ././reg-test/input/g.pprint
mlr --ipprint --odkvp cat ./reg_test/input/a.pprint ./reg_test/input/b.pprint ./reg_test/input/c.pprint ./reg_test/input/d.pprint ./reg_test/input/e.pprint ./reg_test/input/f.pprint ./reg_test/input/g.pprint
mlr --ipprint --odkvp cat ././reg-test/input/a.pprint ././reg-test/input/b.pprint ././reg-test/input/c.pprint ././reg-test/input/d.pprint ././reg-test/input/e.pprint ././reg-test/input/f.pprint ././reg-test/input/g.pprint
a=1,b=2,c=3
a=4,b=5,c=6
d=5,e=6,f=7

Some files were not shown because too many files have changed in this diff Show more