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
33a29ee6
Commit
33a29ee6
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2003-01-17 20:09:19 by cvscast] Empty log message
Original author: cvscast Date: 2003-01-17 20:10:20+00:00
parent
7b235fa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/memento.xml
View file @
33a29ee6
...
...
@@ -50,15 +50,16 @@ which includes a few built-in examples.
<br/>
<duce>
+,*,-,div
</duce>
: Integer,Integer -> Integer
</li>
<li>
Prefix:
<br/><duce>
flatten
</duce>
: polymorphic
<br/><duce>
load_xml,load_html
</duce>
: String -> Any
<br/><duce>
print_xml
</duce>
: Any -> String
<br/><duce>
print_xml
</duce>
: String -> []
<br/><duce>
int_of
</duce>
: [('0'--'9')
*
] -> Integer
<br/><duce>
int_of
</duce>
: [('0'--'9')
+
] -> Integer
<br/><duce>
string_of
</duce>
: Integer -> String
</li>
</ul>
<li>
Postfix:
<br/><duce>
?,*,+,??,*?,+?
</duce>
: for regexp
</li>
</ul>
</section>
<section>
...
...
@@ -81,7 +82,7 @@ which includes a few built-in examples.
<li>
Expressions:
<duce>
[ 1 2 3 ]
</duce>
,
which is syntactic sugar for
<duce>
(1,(2,(3,`nil)))
</duce>
</li>
<li>
A sub-sequence can be escaped by !:
<duce>
[ 1 2 ![ 3 4 ] 5
]
</duce>
.
</li>
]
</duce>
is then equal to
<duce>
[ 1 2 3 4 5 ]
</duce>
.
</li>
<li>
Types and patterns :
<duce>
[ R ]
</duce>
where
<duce>
R
</duce>
is
a regular expression built on types and patterns:
<ul>
...
...
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