rsdoiel / Artemis

Artemis is my project to create portable Oberon-07 modules that can be used in POSIX and Oberon System.
https://rsdoiel.github.io/Artemis
BSD 3-Clause "New" or "Revised" License
12 stars 3 forks source link

I need an Exec module for Oberon 07 programs running under Unix. #11

Open rsdoiel opened 2 years ago

rsdoiel commented 2 years ago

I would like to port some of my text processing code from Go to Oberon 07. One of them is a preprocessor for Pandoc. It needs to build up data structures, write them out as JSON documents in a tmp file and then run exec using Pandoc to process the final output.

In Go (like Python or even C) this is provided in a module. The go "os/exec" module has a nice interface and is not far from being Oberon-ish. Think about adding an Exec.Mod, ExecTest.Mod to Artemis project source. It could be implemented using C's exec. I will need to pay close attention to handling standard input, error and output.