Module For_testing.Ocaml_parsing

val string_tokens : string -> Ocaml_common.Parser.token list Core.Or_error.t

string_of_tokens s will return the OCaml tokens for s as a list. If there is a syntax error, then it'll return an error.

val rsplit_on_hash : string -> (string * string) option

rsplit_on_hash will split a string like `EXPR#Foo` into Some ("EXPR", "Foo").

rsplit_on_hash will correctly ignore escaped `#`'s in situations like:

`EXPR "#"`.