Skip to content

A general-purpose macro processor library for .NET. Inspired by m4.

License

Notifications You must be signed in to change notification settings

NPreprocessor/NPreprocessor

Repository files navigation

NPreprocessor

Code Smells Lines of Code Duplicated Lines (%) Coverage FOSSA Status

Description

NPreprocessor is a general purpose macro processor for .NET.

The library takes ideas from GNU m4 library: https://www.gnu.org/software/m4/

At the moment following base macros are supported:

  • define(name, [expansion])
  • undefine(name)
  • ifdef(name, string-1, [string-2])
  • ifndef(name, string-1, [string-2])
  • incr(variable)
  • decr(varible)
  • include(name)
  • dnl

There are also following macros supported which interally uses base macros:

  • #include
  • #define
  • #undefine
  • #ifdef
  • #ifndef
  • #endif
  • #else

The # character can be replaced by any string.

Roadmap

  • Add features from m4
  • Add features from gcc preprocessor
  • Add features from C# preprocessor

License

FOSSA Status

About

A general-purpose macro processor library for .NET. Inspired by m4.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages