]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/mathml_editor/src/APushParser.cc
* this is a large commit
[helm.git] / helm / DEVEL / mathml_editor / src / APushParser.cc
1
2 #include "APushParser.hh"
3 #include "AMathMLFactory.hh"
4
5 void
6 APushParser::reset()
7 {
8   if (factory) factory->reset();
9 }
10
11 bool
12 APushParser::freeze()
13 {
14   return freeze_level++ == 0;
15 }
16
17 bool
18 APushParser::thaw()
19 {
20   if (freeze_level > 0)
21     return --freeze_level == 0;
22   else
23     return true;
24 }