This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -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 ()
|
||||
Loading…
Add table
Add a link
Reference in a new issue