lawrancej / CompilerKit

Compiler construction library in C.
GNU Lesser General Public License v2.1
55 stars 33 forks source link

Nice to have shortcut macros for constructing regex, cfg #17

Closed lawrancej closed 12 years ago

lawrancej commented 12 years ago

It'd still be nice to have a macro to shorten this up. Perhaps in a separate file: CompilerKit/convenience.h?

lawrancej commented 12 years ago

#define many(x) (compilerkit_kleene_star_new(x))

lawrancej commented 12 years ago

Come to think of it, it's probably better to ensure all regex related constructors return a GObject* instead of their actual type, just so composition is easier. (That part is FIXED).