On Jul 22, 2008, at 10:26 PM, Darren Landrum wrote:
> I've been looking around for a library to read and write SFZ files,
I'd strongly suggest you consider learning C if you want to maximize
other people using your library. If you write the library in C++ it
will be hard for anyone but C++ users to use it. If you write it in
straight C, or at least expose a plain C interface, it will be
trivial to use for C users, C++ users, Objective C users, Python
users, Smalltalk users and some scheme and lisp users, and I'm sure
I'm missing other languages that can interface with C easily.
Also, I suggest that you learn how to use a lex program like Flex.
You could also possibly use a parser generator, something like yacc/
bison on top of that. The time spent learning flex will be time very
well spent and the time spent learning it will probably pay itself
back immediately as your write your tokenizer. There are quite a few
good free lex and/or yacc guides available, often on university web
Linux-audio-dev mailing list