X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Fmathml_editor%2Fsrc%2FTPushParser.hh;h=143e8fad13acc2646228726269a7ac2d2e399720;hb=8335f6c45ef87edd700b898e91489eb9cb551304;hp=c104eb28c4c3a49ccfff0078fea5f53fd2cb5273;hpb=f761deff2f2f8c0cce674d2885b22a94a972ea85;p=helm.git diff --git a/helm/DEVEL/mathml_editor/src/TPushParser.hh b/helm/DEVEL/mathml_editor/src/TPushParser.hh index c104eb28c..143e8fad1 100644 --- a/helm/DEVEL/mathml_editor/src/TPushParser.hh +++ b/helm/DEVEL/mathml_editor/src/TPushParser.hh @@ -13,13 +13,14 @@ class TPushParser : public APushParser { public: - TPushParser(const class TDictionary&); - TPushParser(const class TDictionary&, class TListener&); + TPushParser(class ALogger&, const class TDictionary&); + TPushParser(class ALogger&, class AMathMLFactory&, const class TDictionary&); virtual ~TPushParser(); virtual void push(const TToken&); - virtual void setCursor(const std::string&); + virtual void setCursorHint(const std::string&); +protected: TDocument document(void) const { return doc; } private: @@ -27,7 +28,7 @@ private: std::string PRIME(void) const; bool isPrimes(const TNode&) const; - + void do_begin(void); void do_end(void); void do_shift(void); @@ -44,6 +45,21 @@ private: void do_comment(void); void do_control(const std::string&); + + void gdelete_prev_token(void); + void gdelete_prev_script(void); + void gdelete_prev_group(void); + void gdelete_prev_macro(void); + void gdelete_prev(void); + + void rgreplace_futher(void); + + void do_gdelete_script(void); + void do_gdelete_macro(void); + void do_gdelete_groupId(void); + void do_gdelete_phantom_group(void); + void do_gdelete(void); + void do_cr(void); void do_apostrophe(void); void advance(const TNode&); @@ -53,18 +69,16 @@ private: struct Frame { Frame(const TDictionary::Entry& e) : entry(e), pos(0) { }; + Frame(const TDictionary::Entry&e, unsigned p) : entry(e), pos(p) { }; const TDictionary::Entry& entry; unsigned pos; }; std::stack frames; - //std::list buffer; unsigned nextId; TDocument doc; TNode cursor; - const class TDictionary& dictionary; - class TListener* listener; }; #endif // __TPushParser_hh__