README 885 B

1234567891011121314151617
  1. A C preprocessor is a part of a C compiler responsible for macro
  2. replacement, conditional compilation and inclusion of header files.
  3. It is often found as a stand-alone program on Unix systems.
  4. ucpp is such a preprocessor; it is designed to be quick and light,
  5. but anyway fully compliant to the ISO standard 9899:1999, also known
  6. as C99. ucpp can be compiled as a stand-alone program, or linked to
  7. some other code; in the latter case, ucpp will output tokens, one
  8. at a time, on demand, as an integrated lexer.
  9. ucpp operates in two modes:
  10. -- lexer mode: ucpp is linked to some other code and outputs a stream of
  11. tokens (each call to the lex() function will yield one token)
  12. -- non-lexer mode: ucpp preprocesses text and outputs the resulting text
  13. to a file descriptor; if linked to some other code, the cpp() function
  14. must be called repeatedly, otherwise ucpp is a stand-alone binary.