9 #include "../diff/diff.h"
24 states _current_state
;
25 QString _current_line
;
26 Tokens::token _current_token
;
37 void _changeState(states
);
39 QString
_capCurrentLine(int);
41 void _createNewFile();
44 void _createNewHunk();
47 void _addCurrentLineToContext();
48 void _finishContext();
49 void _addCurrentLineToAdded();
51 void _addCurrentLineToDeleted();
52 void _finishDeleted();
53 void _finishChanged();
64 Parser(std::string type
, QTextStream
*in
) :
65 _current_state(START_STATE
),
67 _cur_file(NULL
), _cur_hunk(NULL
) { _tokens
= factory(type
); }