Next: Dialog boxes
Up: Various attributes and functions
Previous: Clipboard functionalities
Undo functionalities
The following builtin functions provides a mechanism to implement the UNDO &
REDO functionalities.
-
Undo:Save(AST,SAVESYMTAB,SAVEDECL)
-
This function saves a AST in the UNDO list
- AST (input AST) is the AST to saved. It must be in the current
unit (i.e. see $cunit) and must contains the modified AST.
- SAVESYMTAB (input BOOLEAN) indicates that the symbol table must be
save (not yet implemented)
- SAVEDECL (input BOOLEAN) indicates that the declaration AST must be
saved (not yet implemented)
Example 59:Save the AST before a transformation
SCRIPT transfWithUndo()
stat:=$cstat
foo:=Undo:Save(stat.PARENT,TRUE,TRUE)
stat <- PARSESTAT(" print *,100")
ENDSCRIPT
Yann Mevel
1999-04-30