examples: add example of rewriting AST node

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>