./lang/pnut, C compiler written in POSIX shell and generating POSIX shell scripts

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.0.20240724, Package name: pnut-0.0.20240724, Maintainer: pkgsrc-users

Pnut compiles a reasonably large subset of C99 to human-readable POSIX
shell scripts. It can be used to generate portable shell scripts without
having to write shell.

Its main uses are:

- As a transpiler to write portable shell scripts in C
- As a way to bootstrap a compiler written in C with an executable
version that is still human readable

Main features:

- No new language to learn -- C code in, shell code out
- The human-readable shell script is easy to read and understand.
- A runtime library including file I/O and dynamic memory allocations
- A preprocessor
- Integrates easily with existing shell scripts


Master sites:


Version history: (Expand)


CVS history: (Expand)


   2024-07-30 15:59:59 by Amitai Schleier | Files touched by this commit (2)
Log message:
pnut: fix staged installation. Reported by wiz@.
   2024-07-24 13:48:59 by Amitai Schleier | Files touched by this commit (5)
Log message:
Add pnut: C compiler written in POSIX shell and generating POSIX shell scripts

Pnut compiles a reasonably large subset of C99 to human-readable POSIX
shell scripts. It can be used to generate portable shell scripts without
having to write shell.

Its main uses are:

- As a transpiler to write portable shell scripts in C
- As a way to bootstrap a compiler written in C with an executable
  version that is still human readable

Main features:

- No new language to learn -- C code in, shell code out
- The human-readable shell script is easy to read and understand.
- A runtime library including file I/O and dynamic memory allocations
- A preprocessor
- Integrates easily with existing shell scripts