]> granicus.if.org Git - re2c/commit
Continued adding "--skeleton" switch.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 7 Apr 2015 16:01:46 +0000 (17:01 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 7 Apr 2015 16:01:46 +0000 (17:01 +0100)
commitdddf15692a146a73da80f16bf81eb318c41a8222
tree8bfe24f4a7882086ed366d76ec733d15e8ef8ac8
parent0834dff1bb96fc192e103b3c40f04334839210d2
Continued adding "--skeleton" switch.

Output input data to a separate file (otherwize we'll have to
keep all generated data in memory, cause output has a complex
structure and cannot be written to file until it's fully
generated)

This reduces memory usage significantly (so that there remain no
memory consumption problems with "--skeleton" switch). However
on some files re2c generated too much data, e.g. case-insensitive
strings:

/*!re2c
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' {}
*/

Exponential growth is a bad thing; must deal with it somehow.
Time grows exponentially as well, of course.
re2c/actions.cc
re2c/code.cc
re2c/dfa.h
re2c/main.cc
re2c/output.cc
re2c/output.h