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
1a43bad7
Commit
1a43bad7
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2003-12-13 14:07:08 by afrisch] Doc
Original author: afrisch Date: 2003-12-13 14:07:08+00:00
parent
5380b16c
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/manual/interpreter.xml
View file @
1a43bad7
...
...
@@ -26,12 +26,14 @@ String* ]</code>, which means sequence of character strings). </li>
<li>
The option
<code>
--compile
</code>
produces a cduce object file
(suffix
<code>
.cdo
</code>
) that can be later executed by
<code>
cduce --run
</code>
.
</li>
(suffix
<code>
.cdo
</code>
) that can be later executed by
<code>
cduce --run
</code>
.
The option
<code>
--obj-dir %%directory%%
</code>
specifies where to put the
<code>
.cdo
</code>
file (default: same directory as the source file).
</li>
<li>
The option
<code>
--I %%directory%%
</code>
adds a directory to the
search path for imported units.
</li>
<li>
The switch
<code>
--quiet
</code>
suppresses normal output (typing,
results). This option is normally used when the CDuce interpreter is used in
the context of batch processing.
</li>
<li>
The switch
<code>
--verbose
</code>
displays the types of exported
values when compiling or running a script.
</li>
<li>
The options
<code>
--save %%filename%%
</code>
and
<code>
--load %%filename%%
</code>
allows persistence
...
...
@@ -64,7 +66,7 @@ scripts, which are executed successively.
<box
title=
"Scripting"
link=
"scripting"
>
<p>
CDuce can also be used for writing
using
scripts. As usual it suffices to start
CDuce can also be used for writing scripts. As usual it suffices to start
the script file by
<code>
#!%%install_dir%%/cduce
</code>
to call in a batch way
the CDuce interpreter. Here is an example of a script file that prints all the
titles of the filters of an Evolution mail client.
...
...
@@ -139,6 +141,14 @@ and global namespace default <code>namespace "%%...%%"</code>
(see
<local
href=
"namespaces"
/>
).
</li>
<li>
Schema declaration
<code>
schema %%name%% = "%%...%%"
</code>
(see
<local
href=
"manual_schema"
>
XML Schema
</local>
).
</li>
<li>
Import external unit
<code>
using %%name%% = "%%unit%%"
</code>
:
import a pre-compiled
<code>
%%unit%%.cdo
</code>
CDuce unit. Values
and types from this unit can be referred to as
<code>
%%name%%:%%ident%%
</code>
</li>
</ul>
</box>
...
...
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