docopt / docopt.c

C-code generator for docopt language.
MIT License
318 stars 46 forks source link

updates Tokens object initialization #12

Closed ffunenga closed 11 years ago

ffunenga commented 11 years ago

I forgot to check the C++ compilation, Tried it now with the following commands and it runned without trouble.

$ python docopt_c.py -o docopt.c -t template.c example.docopt 
$ g++ -Wall example.c -o example
$ ./example 
--help == false
--version == false
--tcp == false
--serial == false
--host == localhost
--port == 1234
--timeout == 10
--baud == 9600
kblomqvist commented 11 years ago

Looks good to me and I like the style. Thanks.