This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,13 @@
open Ppxlib
let expand e = Location.raise_errorf ~loc:e.pexp_loc "error special function"
let expand2 e =
Location.raise_errorf ~loc:e.pexp_loc "second error special function"
let rule = Context_free.Rule.special_function "n_args" expand
let rule2 = Context_free.Rule.special_function "n_args2" expand2;;
Driver.register_transformation ~rules:[ rule; rule2 ] "special_function_demo"
let () = Driver.standalone ()