ppx_html.syntax
For_testing.Ocaml_parsing
ppx_html
ppx_html.examples
ppx_html.expander
ppx_html.kernel
ppx_html.runtime
ppx_html.test
ppxlib
yojson
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.
string_of_tokens s
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
Some ("EXPR", "Foo")
rsplit_on_hash will correctly ignore escaped `#`'s in situations like:
`EXPR "#"`.