Add some API to handle scan_info from outside expr.c

To handle scan_info from outside expr.c - in example, mrb.c -, we have to get more public API.