Run program once over all provided files or in parallel #111
Labels
discussion
Further discussion on this topic required
feature
New feature or request
help wanted
Extra attention is needed
Tokay's current implementation runs the provided program separately on every input file:
tokay program.tok -- file1 file2 file3
runstokay.tok
onfile1
,file2
andfile3
separately and sequentially. This might not always be intended.This behavior should be customizable and moved into the VM/Parselet-main layer.
awk
s way, for example, is to run the provided PROGRAM on all files. Thenextfile
instruction forces to continue the program flow on the next file.Additionally,
tokay
s current way of running a program sequentially and separately on all provided files could be improved to run on all files simultaneously and in parallel.This should be configured by command-line switches, and needs further investigation.
So these 3 modes could be useful:
nextfile
function or similar.The text was updated successfully, but these errors were encountered: