-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: minimal support for unicode identifiers in OCaml 5.3 (#1290)
- Loading branch information
1 parent
a56fb5c
commit 7fc2144
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
$ . ./setup.sh | ||
|
||
With PPX application | ||
|
||
$ cat > x.ml <<EOF | ||
> type saison = Hiver | Été | Printemps | Automne | ||
> let x = Été | ||
> EOF | ||
$ melc x.ml | ||
// Generated by Melange | ||
'use strict'; | ||
const x = /* Été */1; | ||
exports.x = x; | ||
/* No side effect */ | ||
With PPX application | ||
$ melc -ppx melppx x.ml | ||
// Generated by Melange | ||
'use strict'; | ||
const x = /* Été */1; | ||
exports.x = x; | ||
/* No side effect */ | ||
Add `@mel.as` string | ||
$ cat > x.ml <<EOF | ||
> type saison = Hiver | Été [@mel.as "Été"] | Printemps | Automne | ||
> let x = Été | ||
> EOF | ||
$ melc x.ml | ||
// Generated by Melange | ||
'use strict'; | ||
const x = /* Été */"Été"; | ||
exports.x = x; | ||
/* No side effect */ |