-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for overriding ocaml name of an imported module
For example, given an import statement like this: .import [ .module m .ocaml-module "Foo.Bar" .ocaml-name "Fum" ] piqic-ocaml will generate the following statement at the top of the generated _piqi.ml: module Fum = Foo.Bar
- Loading branch information
Showing
3 changed files
with
17 additions
and
5 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 |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
|
||
|
||
.extend [ | ||
.typedef piqi | ||
(.typedef piqi import) | ||
|
||
.with.field [ | ||
.name ocaml-module | ||
|
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
Oops, something went wrong.