Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsexplain
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verified Software
jsexplain
Commits
332c8504
Commit
332c8504
authored
9 years ago
by
Thomas Wood
Browse files
Options
Downloads
Patches
Plain Diff
Module application support
parent
585385c1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generator/js_of_ast.ml
+5
-2
5 additions, 2 deletions
generator/js_of_ast.ml
with
5 additions
and
2 deletions
generator/js_of_ast.ml
+
5
−
2
View file @
332c8504
...
@@ -198,6 +198,9 @@ let ppf_ident_name =
...
@@ -198,6 +198,9 @@ let ppf_ident_name =
let
ppf_ident
i
=
let
ppf_ident
i
=
i
|>
Ident
.
name
|>
ppf_ident_name
i
|>
Ident
.
name
|>
ppf_ident_name
let
ppf_path
=
Path
.
name
let
ppf_module
content
=
let
ppf_module
content
=
Printf
.
sprintf
"{@,%s@,}"
content
Printf
.
sprintf
"{@,%s@,}"
content
...
@@ -217,8 +220,8 @@ and js_of_submodule m =
...
@@ -217,8 +220,8 @@ and js_of_submodule m =
match
m
.
mod_desc
with
match
m
.
mod_desc
with
|
Tmod_structure
s
->
ppf_module
(
js_of_structure
s
)
|
Tmod_structure
s
->
ppf_module
(
js_of_structure
s
)
|
Tmod_functor
(
id
,
_
,
mtyp
,
mexp
)
->
ppf_function
(
ppf_ident
id
)
(
js_of_submodule
mexp
)
|
Tmod_functor
(
id
,
_
,
mtyp
,
mexp
)
->
ppf_function
(
ppf_ident
id
)
(
js_of_submodule
mexp
)
|
Tmod_
ident
_
->
out_of_scope
loc
"
module
ident"
|
Tmod_
apply
(
m1
,
m2
,
_
)
->
ppf_apply
(
js_of_submodule
m1
)
(
js_of_sub
module
m2
)
|
Tmod_
apply
_
->
out_of_scope
loc
"module apply"
|
Tmod_
ident
(
p
,_
)
->
ppf_path
p
|
Tmod_constraint
_
->
out_of_scope
loc
"module constraint"
|
Tmod_constraint
_
->
out_of_scope
loc
"module constraint"
|
Tmod_unpack
_
->
out_of_scope
loc
"module unpack"
|
Tmod_unpack
_
->
out_of_scope
loc
"module unpack"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment