package bap-std
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=63ada71fa4f602bd679174dc6bf780d54aeded40ad4ec20d256df15886e3d2d5
md5=b8b1aff8c6846f2213eafc54de07b304
doc/bap/Bap/Std/Exp/class-visitor/index.html
Class Exp.visitor
expression visitor.
A class for observing expression trees.
Visits AST providing lots of hooks.
For each AST constructor C the visitor provides three methods: enter_C, visit_C, leave_C. The default implementation for enter_C and leave_C is to return its argument. The default implementation for visit_C is the following: 1. call enter_C 2. visit all children 3. call leave_C.
It is recommended to override enter_C method if you only need to visit C constructor without changing a way you're visiting the tree.
See also Bil.visitor and Term.visitor for visiting a program in AST and Graph representation, respectively.
inherit statemethod enter_exp : t -> 'a -> 'amethod visit_exp : t -> 'a -> 'amethod leave_exp : t -> 'a -> 'aStore (dst,addr,src,endian,size)
method enter_extract : hi:int -> lo:int -> t -> 'a -> 'aExtract (hi,lo,e)
method visit_extract : hi:int -> lo:int -> t -> 'a -> 'amethod leave_extract : hi:int -> lo:int -> t -> 'a -> 'amethod enter_int : word -> 'a -> 'aInt w
method visit_int : word -> 'a -> 'amethod leave_int : word -> 'a -> 'amethod enter_var : var -> 'a -> 'aVar v
method visit_var : var -> 'a -> 'amethod leave_var : var -> 'a -> 'amethod enter_unknown : string -> typ -> 'a -> 'aUnknown (str,typ)
method visit_unknown : string -> typ -> 'a -> 'amethod leave_unknown : string -> typ -> 'a -> 'a