package bap-std
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 state
method enter_exp : t -> 'a -> 'a
method visit_exp : t -> 'a -> 'a
method leave_exp : t -> 'a -> 'a
Store (dst,addr,src,endian,size)
method enter_extract : hi:int -> lo:int -> t -> 'a -> 'a
Extract (hi,lo,e)
method visit_extract : hi:int -> lo:int -> t -> 'a -> 'a
method leave_extract : hi:int -> lo:int -> t -> 'a -> 'a
method enter_int : word -> 'a -> 'a
Int w
method visit_int : word -> 'a -> 'a
method leave_int : word -> 'a -> 'a
method enter_var : var -> 'a -> 'a
Var v
method visit_var : var -> 'a -> 'a
method leave_var : var -> 'a -> 'a
method enter_unknown : string -> typ -> 'a -> 'a
Unknown (str,typ)
method visit_unknown : string -> typ -> 'a -> 'a
method leave_unknown : string -> typ -> 'a -> 'a
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>