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
a014f905
Commit
a014f905
authored
Oct 05, 2007
by
Pietro Abate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[r2003-06-07 17:17:13 by cvscast] Benchmarks
Original author: cvscast Date: 2003-06-07 17:17:13+00:00
parent
10e9d0d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
benchmarks/split1.cd
benchmarks/split1.cd
+1
-1
benchmarks/split2.cd
benchmarks/split2.cd
+1
-1
benchmarks/split3.cd
benchmarks/split3.cd
+3
-3
No files found.
benchmarks/split1.cd
View file @
a014f905
type Person = FPerson | MPerson
type FPerson = <person gender
=
"F" >[ Name Children ]
type FPerson = <person gender
=
"F" >[ Name Children ]
type MPerson = <person gender="M">[ Name Children ]
type Children = <children>[Person*]
type Name = <name>[ PCDATA ]
...
...
benchmarks/split2.cd
View file @
a014f905
type Person = FPerson | MPerson
type FPerson = <person gender
=
"F" >[ Name Children ]
type FPerson = <person gender
=
"F" >[ Name Children ]
type MPerson = <person gender="M">[ Name Children ]
type Children = <children>[Person*]
type Name = <name>[ PCDATA ]
...
...
benchmarks/split3.cd
View file @
a014f905
type Person = FPerson | MPerson
type FPerson = <person gender
=
"F" >[ Name Children ]
type FPerson = <person gender
=
"F" >[ Name Children ]
type MPerson = <person gender="M">[ Name Children ]
type Children = <children>[Person*]
type Name = <name>[ PCDATA ]
...
...
@@ -24,7 +24,7 @@ let split_f (FPerson -> Woman)
match argv with
| [ f ] ->
(match load_xml f with
| <doc>(l & [Person*]) ->
<doc>(map l with x & MPerson -> split_m x |
x & FPerson -> split_f x)
| <doc>(l & [Person*]) ->
<doc>(map l with x & MPerson -> split_m x |
x & FPerson -> split_f x)
| _ -> raise "Invalid document")
| _ -> raise "Invalid command line"
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