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
1775e4aa
Commit
1775e4aa
authored
9 years ago
by
Alan Schmitt
Browse files
Options
Downloads
Patches
Plain Diff
support for logging argument
parent
e882e0e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
generator/Makefile
+4
-1
4 additions, 1 deletion
generator/Makefile
generator/js_of_ast.ml
+2
-1
2 additions, 1 deletion
generator/js_of_ast.ml
with
6 additions
and
2 deletions
generator/Makefile
+
4
−
1
View file @
1775e4aa
...
@@ -50,9 +50,12 @@ tests/jsref/%.ml:
...
@@ -50,9 +50,12 @@ tests/jsref/%.ml:
tests/%.ml.d
:
tests/%.ml
tests/%.ml.d
:
tests/%.ml
$(
OCAMLDEP
)
-I
$(
<D
)
$<
|
$(
DEPSED
)
>
$@
$(
OCAMLDEP
)
-I
$(
<D
)
$<
|
$(
DEPSED
)
>
$@
tests/%.cmi
tests/%.log.js
tests/%.unlog.js
:
tests/%.ml main.byte stdlib
tests/%.cmi tests/%.unlog.js
:
tests/%.ml main.byte stdlib
./main.byte
-I
$(
<D
)
$<
./main.byte
-I
$(
<D
)
$<
tests/%.log.js
:
tests/%.ml tests/%.cmi main.byte stdlib
./main.byte
-I
$(
<D
)
-log
$<
tests
:
$(ML_TESTS:.ml=.log.js)
tests
:
$(ML_TESTS:.ml=.log.js)
tests/lambda
:
tests/lambda/Lambda.log.js
tests/lambda
:
tests/lambda/Lambda.log.js
...
...
This diff is collapsed.
Click to expand it.
generator/js_of_ast.ml
+
2
−
1
View file @
1775e4aa
open
Params
open
Asttypes
open
Asttypes
open
Attributes
open
Attributes
open
Log
open
Log
...
@@ -246,7 +247,7 @@ type generate_mode =
...
@@ -246,7 +247,7 @@ type generate_mode =
|
Mode_line_token
|
Mode_line_token
|
Mode_logged
|
Mode_logged
let
current_mode
=
Mode_unlogged
let
current_mode
=
if
!
logging
then
Mode_logged
else
Mode_unlogged
(****************************************************************)
(****************************************************************)
...
...
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