PageRenderTime 97ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/TeXmacs-1.0.7.11-src/src/Data/Tree/tree_correct.hpp

#
C++ Header | 36 lines | 21 code | 6 blank | 9 comment | 0 complexity | d23b6203afb2d0533dd0acdc9f02a75f MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, MPL-2.0-no-copyleft-exception
  1. /******************************************************************************
  2. * MODULE : tree_correct.hpp
  3. * DESCRIPTION: make a tree syntactically match a drd
  4. * COPYRIGHT : (C) 2005 Joris van der Hoeven
  5. *******************************************************************************
  6. * This software falls under the GNU general public license version 3 or later.
  7. * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
  8. * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
  9. ******************************************************************************/
  10. #ifndef TREE_CORRECT_H
  11. #define TREE_CORRECT_H
  12. #include "drd_std.hpp"
  13. tree drd_correct (drd_info drd, tree t);
  14. tree with_correct (tree t);
  15. tree superfluous_with_correct (tree t);
  16. tree superfluous_invisible_correct (tree t);
  17. tree missing_invisible_correct (tree t, int force= -1);
  18. tree upgrade_brackets (tree t, string mode= "text");
  19. tree upgrade_big (tree t);
  20. tree downgrade_brackets (tree t, bool del_miss= false, bool big_dot= true);
  21. tree downgrade_big (tree t);
  22. tree move_brackets (tree t);
  23. int count_math_errors (tree t, int mode= 0);
  24. void math_status_cumul (tree t);
  25. void math_status_print ();
  26. void math_status_reset ();
  27. tree latex_correct (tree t);
  28. tree automatic_correct (tree t, string version);
  29. tree manual_correct (tree t);
  30. #endif // defined TREE_CORRECT_H