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
07ea3cd4
Commit
07ea3cd4
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2003-05-09 21:04:14 by cvscast] Empty log message
Original author: cvscast Date: 2003-05-09 21:04:14+00:00
parent
042539d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
driver/examples.ml
View file @
07ea3cd4
...
...
@@ -95,6 +95,7 @@ type Man = <man name=String>[ Sons Daughters ];;
type Woman = <woman name=String>[ Sons Daughters ];;
type Sons = <sons>[ Man* ];;
type Daughters = <daughters>[ Woman* ];;
let fun sort (MPerson -> Man ; FPerson -> Woman)
<person gender=g>[ <name>n <children>[(mc::MPerson | fc::FPerson)*]; _] ->
let tag = match g with
\"
F
\"
-> `woman |
\"
M
\"
-> `man in
...
...
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