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
1c981724
Commit
1c981724
authored
8 years ago
by
charguer
Committed by
Thomas Wood
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
merged
parent
623e3213
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
driver.html
+1
-1
1 addition, 1 deletion
driver.html
generator/js_of_ast.ml
+1
-2
1 addition, 2 deletions
generator/js_of_ast.ml
generator/tests/jsref/JsSyntax.ml
+36
-0
36 additions, 0 deletions
generator/tests/jsref/JsSyntax.ml
navig-driver.js
+3
-1
3 additions, 1 deletion
navig-driver.js
with
41 additions
and
4 deletions
driver.html
+
1
−
1
View file @
1c981724
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
}
}
#disp_env_pane
{
#disp_env_pane
{
height
:
1
5
0px
;
height
:
1
8
0px
;
}
}
.CodeMirror-selected
{
background
:
#F3F781
;
}
.CodeMirror-selected
{
background
:
#F3F781
;
}
...
...
This diff is collapsed.
Click to expand it.
generator/js_of_ast.ml
+
1
−
2
View file @
1c981724
...
@@ -864,6 +864,7 @@ and js_of_path_longident path ident =
...
@@ -864,6 +864,7 @@ and js_of_path_longident path ident =
|
"&&"
->
"&&"
|
"&&"
->
"&&"
|
"||"
->
"||"
|
"||"
->
"||"
(* for float: *)
(* for float: *)
|
"="
->
"=="
|
"+."
->
"+"
|
"+."
->
"+"
|
"*."
->
"*"
|
"*."
->
"*"
|
"-."
->
"-"
|
"-."
->
"-"
...
@@ -880,8 +881,6 @@ and js_of_path_longident path ident =
...
@@ -880,8 +881,6 @@ and js_of_path_longident path ident =
|
"/"
->
"/"
|
"/"
->
"/"
(* for string *)
(* for string *)
|
"^"
->
"+"
(* !!TODO: we want to claim ability to type our sublanguage, so we should not use this *)
|
"^"
->
"+"
(* !!TODO: we want to claim ability to type our sublanguage, so we should not use this *)
(* for equality *)
|
"="
->
"=="
|
res
->
|
res
->
let
res
=
if
!
generate_qualified_names
&&
(
Path
.
head
path
)
.
Ident
.
name
<>
"Stdlib"
let
res
=
if
!
generate_qualified_names
&&
(
Path
.
head
path
)
.
Ident
.
name
<>
"Stdlib"
then
ppf_path
path
else
res
in
then
ppf_path
path
else
res
in
...
...
This diff is collapsed.
Click to expand it.
generator/tests/jsref/JsSyntax.ml
+
36
−
0
View file @
1c981724
...
@@ -674,3 +674,39 @@ type codetype =
...
@@ -674,3 +674,39 @@ type codetype =
|
Coq_codetype_global
[
@
f
]
|
Coq_codetype_global
[
@
f
]
|
Coq_codetype_eval
[
@
f
]
|
Coq_codetype_eval
[
@
f
]
(*
let thebound =
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
((fun p -> 1. +. (2. *. p))
1.)))))))))))))))))))))))))))))))
*)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
navig-driver.js
+
3
−
1
View file @
1c981724
...
@@ -86,6 +86,7 @@ var source_files = [
...
@@ -86,6 +86,7 @@ var source_files = [
'
var x = 2;
\n
x
'
,
'
var x = 2;
\n
x
'
,
'
"use strict";
\n
var x = 1;
\n
x++;
\n
x
'
,
'
"use strict";
\n
var x = 1;
\n
x++;
\n
x
'
,
'
{} + {}
'
,
'
{} + {}
'
,
'
x = [1]
'
,
'
throw 3
'
,
'
throw 3
'
,
'
var x = { a : 1, b : 2 };
'
,
'
var x = { a : 1, b : 2 };
'
,
'
var x = { a : 1 };
\n
x.b = 2;
\n
x
'
,
'
var x = { a : 1 };
\n
x.b = 2;
\n
x
'
,
...
@@ -1405,8 +1406,9 @@ readSourceParseAndRun();
...
@@ -1405,8 +1406,9 @@ readSourceParseAndRun();
// $("#reach_condition").val("I_line()");
// $("#reach_condition").val("I_line()");
// button_test_handler();
// button_test_handler();
//
setExample(3);
//
//stepTo(5873);
//stepTo(5873);
setExample
(
3
);
function
showCurrent
()
{
function
showCurrent
()
{
console
.
log
(
tracer_items
[
tracer_pos
]);
console
.
log
(
tracer_items
[
tracer_pos
]);
...
...
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