Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #63646

Re: Auto-generate C code for initialized structs

From Joe Pfeiffer <pfeiffer@cs.nmsu.edu>
Newsgroups comp.lang.c
Subject Re: Auto-generate C code for initialized structs
Date 2015-06-19 18:20 -0600
Organization A noiseless patient Spider
Message-ID <1blhfftema.fsf@pfeifferfamily.net> (permalink)
References <mm18gg$n2f$1@dont-email.me>

Show all headers | View raw


pozz <pozzugno@gmail.com> writes:
>
> So I was thinking it would be nice to have a non-C data file, simple
> to write and maintain, as a starting point. And a small tool that
> converts the data file to a C code.
>
> Any suggestions on the data file and the transformation tool?
>
> I was reading about XSLT/XML, but I couldn't find a read-to-use XSL
> code for C code generation.

TSV (tab-separated-values).  Easy to maintain in any spreadsheet
program, *really* easy to parse and generate your C code.

Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Auto-generate C code for initialized structs pozz <pozzugno@gmail.com> - 2015-06-19 16:22 +0200
  Re: Auto-generate C code for initialized structs Lőrinczy Zsigmond <zsiga@nospam.for.me> - 2015-06-19 17:40 +0200
  Re: Auto-generate C code for initialized structs luser droog <luser.droog@gmail.com> - 2015-06-19 09:27 -0700
  Re: Auto-generate C code for initialized structs Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2015-06-19 18:20 -0600

csiph-web