From: Andrew J. S. <as...@te...> - 2021-06-28 13:20:44
|
On Mon, Jun 28, 2021 at 09:57:51AM -0300, Vinícius dos Santos Oliveira wrote: > Em seg., 28 de jun. de 2021 às 09:51, Andrew J. Schorr > <as...@te...> escreveu: > > On Mon, Jun 28, 2021 at 09:56:03AM +0200, Manuel Collado wrote: > > > >Maybe that'd do. Can such a function use the statement next? How'd > > > >that work, the plugin calling the function triggering next? > > > > That's a very interesting question. I imagine that all hell > > would break loose. > > Unfortunately triggering next would be one of the obvious error > handling approaches just like triggering nextfile. > > On file-level error, user triggers nextfile on BEGINFILE. > > On record-level error, user triggers next on JSONRECORDERROR. I really don't know. If you can figure out how to create an API to call an awk function, then maybe "next" will just work. But I don't think it will be terribly easy to implement this idea in the first place. I think you just need to mess around. It will be cool if you can pull it off, but it's nontrivial. Regards, Andy |