Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Jan 3, 2025
1 parent 3ebf98d commit b6be6d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ And then you can use it in your code:
```ocaml
print_endline [%yay]
(* Transforms to *)
print_endline "r3p14ccd 70 r4nd0m 5tr1n9"
print_endline "Hello future compiler engineer!"
```
3 changes: 2 additions & 1 deletion src/ppx.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
open Ppxlib
module Ast_builder = Ast_builder.Default

let expander ~loc ~path:_ = Ast_builder.estring ~loc "r3p14ccd 70 r4nd0m 5tr1n9"
let expander ~loc ~path:_ =
Ast_builder.estring ~loc "Hello future compiler engineer!"

let pattern =
let open Ast_pattern in
Expand Down
2 changes: 1 addition & 1 deletion test/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Create a file input.ml with the following content
Run the ppx and print the output
$ ./standalone.exe --impl input.ml
let () = print_endline "r3p14ccd 70 r4nd0m 5tr1n9"
let () = print_endline "Hello future compiler engineer!"

0 comments on commit b6be6d8

Please sign in to comment.