Stmt.mapperAST transformation. mapper allows one to map AST, performing some limited amount of transformations on it. Mapper provides extra flexibility by mapping stmt to stmt list, thus allowing to remove statements from the output (by mapping to empty list) or to map one statement to several. This is particularly useful when you map if or while statements.
inherit Exp.mapperinherit statemethod map_cpuexn : int -> t listmethod map_special : string -> t list