yandex / pire

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

Make pire_inline capable of cross-compiling regexps #2

Closed dprokoptsev closed 13 years ago

dprokoptsev commented 13 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.