Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
e1ae5c00
Commit
e1ae5c00
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2004-12-28 01:01:28 by afrisch] Demo
Original author: afrisch Date: 2004-12-28 01:03:52+00:00
parent
fcac8a6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
driver/evaluator.ml
View file @
e1ae5c00
...
...
@@ -54,5 +54,7 @@ let () =
let
res
=
try
exec
prog
with
Timeout
->
"Timeout reached !"
in
let
res
=
cut
80
res
in
print_string
header
;
print_endline
res
print_endline
"<pre>"
;
print_endline
res
;
print_endline
"</pre>"
web/demo.xml
View file @
e1ae5c00
...
...
@@ -8,6 +8,7 @@
<xhtml>
<input
type=
"submit"
value=
"Evaluate"
onclick=
"submit('a');"
/>
<input
type=
"button"
value=
"Clear"
onclick=
"clearreq('a');"
/>
<br/>
<textarea
id=
"areq"
cols=
"80"
rows=
"25"
>
let x = 1;;
</textarea>
...
...
@@ -17,6 +18,7 @@ let x = 1;;
<right>
<xhtml>
<input
type=
"button"
value=
"Clear"
onclick=
"show_result('a','');"
/>
<br/>
<div
id=
"ares"
></div>
<script
src=
"demo.js"
type=
"text/javascript"
/>
</xhtml>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment