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,7 @@
(executable
(name identity_standalone)
(libraries ppxlib))
(cram
(package ppxlib)
(deps identity_standalone.exe))

View file

@ -0,0 +1 @@
let _ = Ppxlib.Driver.standalone ()

View file

@ -0,0 +1,15 @@
Keep the error output short in order to avoid different error output between
different compiler versions in the subsequent test
$ export OCAML_ERROR_STYLE=short
Syntax errors in files parsed by ppxlib are reported correctly
$ cat > test.ml << EOF
> let x = 5
> let let
> EOF
$ ./identity_standalone.exe -impl test.ml
File "test.ml", line 2, characters 4-7:
Error: Syntax error
[1]