New files containing a simplified and sanitized version of the state

Mon Mar 27 21:44:04 2006  Soeren Sandmann  <sandmann@redhat.com>

        * sformat.[ch]: New files containing a simplified and sanitized
        version of the state machine and type system from sfile.c.

        * sfile.c: Move the state machine and type management to separate
        files. Make the amount of memory used during loading and saving
        less obscene.

        * stackstash.c (stack_stash_new_from_root): Make this function
        store the root again.
This commit is contained in:
Soeren Sandmann
2006-03-28 03:02:21 +00:00
committed by Søren Sandmann Pedersen
parent 3c5240c7ef
commit 6534ca13c0
9 changed files with 1237 additions and 986 deletions

10
TODO
View File

@ -128,6 +128,16 @@ Before 1.2:
- split out dfa in its own generic class
- Formats should become first-class, stand-alone objects that offers
help with parsing and nothing else.
ParseContext* format_get_parse_context (format, err);
gboolean parse_context_begin (parse_context, name, err);
gboolean parse_context_end (parse_format, name, err);
basically, a Format encapsulates a DFA, and a ParseContext encapsulates
the current state.
- make a generic representation of xml files with quarks for strings:
struct item {
int begin/end/text;