yandex / pire

Perl Incompatible Regular Expressions library
http://github.com/dprokoptsev/pire/wiki
Other
329 stars 30 forks source link

Make pire_inline capable of cross-compiling regexps #1

Open dprokoptsev opened 14 years ago

dprokoptsev commented 14 years ago

Scanner representation is not portable between systems with different byte order and potentially word size; hence once regexp is compiled and inlined, the resulting .cpp must be compiled for the same system where pire_inline had been run. As the result, no cross-compiling is possible.

We need to invent a way to specify target platform capabilities and serialize regexp for that platform.