madmann91 / docoptc

A docopt compiler written in C that generates C code to parse command line options.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docoptc

A docopt compiler written in C that generates C code to parse command line options.

Building

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=<Debug|Release>
cmake --build .

Running

Simply run the compiler with an input text file to generate C code:

docoptc file.txt

Why?

Because the python implementation mandates a dependency on Python. This project only requires a C compiler.

About

A docopt compiler written in C that generates C code to parse command line options.


Languages

Language:C 99.0%Language:CMake 1.0%