John Kerl
2be2badfd2
Make fmtnum accept C-style printf format strings for backward compatibility ( #717 )
2021-10-30 23:18:05 -04:00
John Kerl
c819e280cf
Fix link-typos on streaming/memory webdoc page ( #715 )
...
* Improve release docs
* Fix link-typos on streaming/memory webdoc page
2021-10-29 10:26:35 -04:00
John Kerl
b045cd7c44
New mlr -S/-A/-O type-inference flags to replace mlr put/filter -S/-F ( #713 )
...
* -S/-F/-O flags
* neaten mlrval_new.go et al.
* re-think previous not-so-great -S/-F/-O impl
* test-data
* webdocs for -S/-A/-O
2021-10-27 23:50:12 -04:00
John Kerl
25783f8798
Merge branch 'tz-args'
2021-10-26 00:03:18 -04:00
John Kerl
7bd9e54d57
Let all localtime/localdate take timezone from arguments ( #712 )
...
* Add optional TZ argument to localtime DSL functions
* Line-split long DSL-function help strings for source-code storage
* Add optionzl TZ argument to sec2localtime [WIP]
* Rename built-in-function impls to make them easier to find
2021-10-25 23:38:27 -04:00
John Kerl
5c24e33b8c
Rename built-in-function impls to make them easier to find
2021-10-25 23:31:35 -04:00
John Kerl
fddfd34a7d
Add optionzl TZ argument to sec2localtime [WIP]
2021-10-24 16:39:23 -04:00
John Kerl
f2d87d4162
Line-split long DSL-function help strings for source-code storage
2021-10-21 08:38:03 -04:00
John Kerl
2bca2d082b
Datetime/timezones docs page ( #707 )
...
* xvright
* Left/right trim on --repifs
* Fix emit-flatten when main & emit output file formats differ
* Port localtime DSL functions from C to Go
* Port localtime DSL functions from C to Go (#703 )
* xvright
* Left/right trim on --repifs
* Fix emit-flatten when main & emit output file formats differ
* Port localtime DSL functions from C to Go
* Time-related issues: 331, 332, 359, 477
2021-10-20 23:48:43 -04:00
John Kerl
08fdd554f5
Date-time-related issues: 331, 332, 359 ( #704 )
...
* xvright
* Left/right trim on --repifs
* Fix emit-flatten when main & emit output file formats differ
* Port localtime DSL functions from C to Go
* Port localtime DSL functions from C to Go (#703 )
* xvright
* Left/right trim on --repifs
* Fix emit-flatten when main & emit output file formats differ
* Port localtime DSL functions from C to Go
* Time-related issues: 331, 332, 359, 477
2021-10-20 21:48:26 -04:00
John Kerl
f339387fca
Port localtime DSL functions from C to Go ( #703 )
...
* xvright
* Left/right trim on --repifs
* Fix emit-flatten when main & emit output file formats differ
* Port localtime DSL functions from C to Go
2021-10-18 04:15:21 +00:00
John Kerl
26bb93ef03
Left/right trim with --repifs: port from C to Go ( #701 )
...
* xvright
* Left/right trim on --repifs
2021-10-16 12:45:36 -04:00
John Kerl
a060c30ea1
docs regen after previous PR
2021-10-16 00:27:38 -04:00
John Kerl
060a1c5bb5
stats1 --fr ( #699 )
2021-10-16 00:13:34 -04:00
John Kerl
99929469f5
any/every higher-order functions; examples in mlr put/filter --help ( #693 )
...
* Backslash pipe characters in markdown output
* More emit regtest cases
* Higher-order functions any/every
* any/every regression tests
* webdocs for any/every; extended put/filter --help output
2021-10-11 22:08:13 -04:00
John Kerl
86942da102
Auto-string left-hand sides of =~ and !=~ ( #687 )
...
* Improve release docs
* Fix #684
2021-10-05 23:33:58 -04:00
John Kerl
6fa7c48cbd
Improve release docs ( #686 )
2021-10-05 23:18:33 -04:00
John Kerl
728034d184
Fix read of files which lack final newline ( #683 )
...
* Fix regression-test cases using redirects
* Fix more cases
* Update CASEDIR handling on Windows
* Regression-test fixes
* More regtest iteration
* Fix read of files which lack final newline
2021-10-04 23:05:57 -04:00
John Kerl
f5705546cf
Unicode field names ( #680 )
...
* Stop read early for mlr head
* Augment record-transformer API for head-stop
* Allow Unicode field names, variable names, etc.
2021-10-03 10:05:40 -04:00
John Kerl
c62ca15e36
Correct early-out handling for mlr head, even with tee ( #679 )
...
* Stop read early for mlr head
* Augment record-transformer API for head-stop
2021-10-03 00:28:25 -04:00
John Kerl
f46349a86b
todo
2021-10-02 14:50:23 -04:00
John Kerl
0e479ed8cc
Neatens for higher-order functions ( #677 )
...
* Let function-literals access enclosing scope
* Fix stack-offset optimization for nameless UDFs with scope-walk
2021-10-02 00:32:57 -04:00
John Kerl
421ec0a913
Higher-order functions select, apply, reduce, fold ( #676 )
2021-09-30 05:45:03 -04:00
John Kerl
6f507fd111
First-class functions: starting with sort ( #675 )
...
* Add MT_FUNC as Mlrval tpe
* Rename AST node-type FunctionDefinition to NamedFunctionDefintion
* Add UnnamedFunctionDefinition AST node type
* First-class-function bits in the BNF grammar
* BNF mods for first-class functions
* CST mods for first-class functions
2021-09-28 01:21:04 -04:00
John Kerl
dc9f7f062e
Merge branch 'misc-neatens'
2021-09-22 23:59:14 -04:00
John Kerl
ed32519341
Misc neatens ( #674 )
...
* misc neatens
* make abs, ceil, floor, round, & sgn int-preserving as in miller 5
2021-09-22 22:25:23 -04:00
John Kerl
d63d56ee83
make abs, ceil, floor, round, & sgn int-preserving as in miller 5
2021-09-22 21:50:26 -04:00
John Kerl
be4df4a546
misc neatens
2021-09-22 14:30:17 -04:00
John Kerl
d972107896
misc neatens
2021-09-21 23:37:38 -04:00
John Kerl
11960b414c
Misc neatens; --hi/--ho as shorthand alternatives to --implicit-csv-header and --headerless-csv-output ( #673 )
...
* todo
* Input separators as regexes
* To-do neatens
* misc neatens
* --hi/--ho
2021-09-21 22:30:46 -04:00
John Kerl
f08a4d1135
Fix --repifs for Miller 6; also, regexed IFS & IPS ( #672 )
...
* todo
* Input separators as regexes
2021-09-21 19:40:14 -04:00
John Kerl
be62a178d4
Array/string slice/aliased-index regtest cases
2021-09-19 23:53:28 -04:00
John Kerl
d7777e8496
no colorization on nidx output
2021-09-19 23:08:55 -04:00
John Kerl
50bfe61717
Fix in-place mode with compressed data ( #671 )
...
* Misc neatens
* Fix in-place mode and recompression
2021-09-19 23:01:56 -04:00
John Kerl
b4f7891503
Misc. doc neatens
2021-09-19 09:21:36 -04:00
John Kerl
2ba8a14138
Complete DSL sort functions ( #667 )
...
* sortmf first light
* mlr sort -c/-cr
* All DSL sort-func impls; sorting webdoc page
* Regression-test for new DSL sort functions
2021-09-19 01:21:26 -04:00
John Kerl
9722f1f6db
sortmf first light ( #666 )
2021-09-18 10:54:40 -04:00
John Kerl
db2f8711cd
Merge branch 'sortaf-sortmf'
2021-09-18 09:37:05 -04:00
John Kerl
0cf7e9a56c
Start of user-specified sorting ( #664 )
...
* Spaceship operator, and dot-operator precedence
* start stubbingout DSL sort functions
* Array-sort with UDF callback: sortaf first light
* Miller: -> mlr: in all error messages
2021-09-18 09:32:44 -04:00
John Kerl
ef9a8880d5
Miller: -> mlr: in all error messages
2021-09-18 09:12:12 -04:00
John Kerl
cf78a9eee5
Array-sort with UDF callback: sortaf first light
2021-09-18 00:39:08 -04:00
John Kerl
2b744d1d10
Operators and doc improvements; sort function 1st step ( #663 )
...
* Spaceship operator, and dot-operator precedence
* start stubbing out DSL sort functions
2021-09-16 18:30:47 -04:00
John Kerl
af277841c7
To-do items
2021-09-15 07:48:11 -04:00
John Kerl
68eab14dcf
todo
2021-09-14 23:15:44 -04:00
John Kerl
d4ffc525f8
More Miller-6 docs updates ( #661 )
...
* todo/neatens
* bug-fix issue with mlr reorder then something-else
Also, gofmt -s -w
* flatten/unflatten doc iteration
* Include diff output in regtest fail cases, if -vvv
* arrayify on unflatten
* flatten/unflatten page
2021-09-14 23:02:29 -04:00
Nikos Alexandris
b2bb4c2400
Fix some typos ( #649 )
...
* Add missing spaces before --c2t in file-formats.md
* Fix typo in reference-dsl-variables.md.in
* Add missing spaces before --c2t in entry.go
* Undo manually 49a8b7942
Co-authored-by: John Kerl <kerl.john.r@gmail.com>
2021-09-10 18:05:44 -04:00
John Kerl
d7b112c4c3
Path-component examples -> docs
2021-09-08 23:04:16 -04:00
John Kerl
abe061e408
Flags lookup-table and doc autogen ( #655 )
...
* Tableize flag-parsing for on-line help, doc autogen, etc.
* Rename cli,cliutil packages -> climain,cli
* stub for new flag-list page
* Fix alignment & formatting for webdoc/manpage autogen
* per-flag-section info in mlr help
* Fix comparison of actual vs expected stderr file in regtest
* Replace old flag-parser with new
2021-09-08 22:16:40 -04:00
John Kerl
b11e5b6157
sh build-go-src-test-man-doc.sh after previous PR
2021-09-04 23:05:19 -04:00
John Kerl
bc7cbdcff2
merge
2021-09-04 22:58:59 -04:00