Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cduce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cduce
cduce
Commits
847b5f6a
Commit
847b5f6a
authored
Oct 05, 2007
by
Pietro Abate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[r2002-11-15 22:40:12 by cvscast] Empty log message
Original author: cvscast Date: 2002-11-15 22:40:12+00:00
parent
76ab1ffc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
driver/run.ml
driver/run.ml
+1
-2
tests/notes.xml
tests/notes.xml
+1
-1
tests/stress_opt_seq.cd
tests/stress_opt_seq.cd
+5
-1
types/types.ml
types/types.ml
+2
-2
No files found.
driver/run.ml
View file @
847b5f6a
...
...
@@ -27,7 +27,7 @@ let do_file s =
let
input
=
Stream
.
of_channel
chan
in
let
ok
=
Cduce
.
run
ppf
ppf_err
input
in
if
s
<>
""
then
close_in
chan
;
if
not
ok
then
exit
1
if
not
ok
then
(
Format
.
fprintf
ppf_err
"@."
;
exit
1
)
...
...
@@ -60,5 +60,4 @@ let main () =
let
()
=
main
()
tests/notes.xml
View file @
847b5f6a
<doc>
CDuce
<note>
Frisch, Castagna, Benzaken
</note>
is
an XML
<note>
a W3C standard
</note>
-friendly programming language.
</doc>
\ No newline at end of file
</doc>
tests/stress_opt_seq.cd
View file @
847b5f6a
type T = [ `A? `B? `C? `D? `E? `F? `G? `H? `I? `J?
`K? `L? `M? `N? `O? `P? `Q? `R? ];;
let fun f (Any -> T) T & x -> x | x -> f x;;
(*
debug compile Any T;;
*)
(*
debug compile T
P1 where
P1 = (`A & (a := 1), P2) | (a := 2) & P2 and
...
...
@@ -12,6 +15,7 @@ P1 where
P3 = (`C & (c := 1), P4) | (c := 2) & P4 and
P4 = (`D & (d := 1), P5) | (d := 2) & P5 and
P5 = `nil;;
*)
(*
match [ `A `B `C ] with (P1 where
...
...
@@ -20,4 +24,4 @@ match [ `A `B `C ] with (P1 where
P3 = (`C & (c := 1), P4) | (c := 2) & P4 and
P4 = (`D & (d := 1), P5) | (d := 2) & P5 and
P5 = `nil) -> (a,b,c,d);;
*)
*)
\ No newline at end of file
types/types.ml
View file @
847b5f6a
...
...
@@ -376,7 +376,7 @@ This version explodes when dealing with
(t & t1, s - s1) | ... | (t & tn, s - sn) | (t - (t1|...|tn), s)
*)
(*
let get_aux d =
let accu = ref [] in
let line (left,right) =
...
...
@@ -398,7 +398,7 @@ This version explodes when dealing with
in
List.iter line d;
!accu
*)
let
get
?
(
kind
=
`Normal
)
d
=
match
kind
with
|
`Normal
->
get_aux
d
.
times
...
...
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