Ответы: Решённые задачи
Описание
Характеристики ответов (шпаргалок)
Список файлов
- Прочти меня!!!.txt 136 b
- Решённые задачи
- Descript.ion 163 b
- TESTING.RSL 10,93 Kb
- task8
- Library.cpp 30,85 Kb
- algebr.rsl 5,08 Kb
- explicit.rsl 3,64 Kb
- implicit.rsl 2,72 Kb
- test.rsl 9,46 Kb
- taskX
- Algebr.rsl 7,46 Kb
- Explicit.rsl 7,68 Kb
- Implicit.rsl 3,25 Kb
- TEST.RSL 9,97 Kb
- Программы
- LICENSE.txt 963 b
- README.rsl 5,49 Kb
- README.txt 4,62 Kb
- dos
- cwsdpmi
- cwsdpmi.exe 19,99 Kb
- rsltc
- Raise
- RSL
- Cwsdpmi.exe 19,99 Kb
- rsltc.exe 1,41 Mb
- gnu
- emacs
- _emacs 3,04 Kb
- lisp
- dos-term.el 4,78 Kb
- rsltc.el 3,29 Kb
- readme 4,03 Kb
- rsl-mode.el 7,01 Kb
- rsltc.el 7,88 Kb
Файл скачан с сайта StudIzba.com
При копировании или цитировании материалов на других сайтах обязательно используйте ссылку на источник
RSL Type Checker Version 1
Copyright (C) 1998 UNU/IIST
LICENSE
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
You may obtain pre-built binaries or build the program yourself
from source. To build the program from source you will need to
obtain the Gentle Compiler Construction System, which you can
obtain from http://www.first.gmd.de/gentle. If you modify the
program and distribute such a modified version this has to be done
under the terms of the GNU General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
RSL Type Checker
Copyright (C) 1998 UNU/IIST
The RSL type checker is available free for both PC and Unix platforms.
See the LICENSE file for details of the license conditions.
Binaries for Windows, Dos, Linux, Sun OS (4.1.X) and Solaris can be
found in the appropriate sub-directory.
There is also a vcg directory containing the vcg graph drawing tool.
There is a Windows versions (you need both zip files) and a tar file
for building it for Unix or Linux. You can use vcg to display the
module dependencies of an RSL specification.
There is also a sml directory containing a self-extracting archive for
Standartd ML for Windows. SML for other architectures can be obtained
from http://cm.bell-labs.com/cm/cs/what/smlnj /. rsltc includes a
translator to SML.
Use
===
RSL modules (schemes or objects) should be placed in files with .rsl
extension, one module per file. If a module is called S then the file
name should be S.rsl. The windows/dos version does not care if the case
of the module name matches the case of the file name, so s.rsl is also
OK.
The type checker can then be run as a shell command
rsltc <options> S
or, in dos,
rsltc <options> s
Command line options
====================
none type check
-c type check plus confidence condition generation on current module
-cc type check plus confidence condition generation on all modules
-d parser (no type check) plus display of module dependencies
-p pretty-print with line length 60
-pl n pretty-print with line length n (must be at least 30)
-g generate vcg input file
-m generate SML input file
Use with emacs
==============
The emacs compile facility provides a very convenient interface to
rsltc, as you have the rsl file in one window and the output from the
tool in another.
emacs is not standard with windows so the windows version includes a
minimal version of GNU emacs from the DJGPP distribution
(http://www.delorie.com/djgpp/). If you already have emacs then just
get the rsltc.el and rsl-mode.el files from this directory and load them
from your .emacs file. You may need to change "rsltc" near the
beginning of rsltc.el to "path/rsltc" if you store the executable
rsltc other than on your standard path.
If you have Standard ML of New Jersey then you should include
(require 'sml-site)
in your .emacs file before you load rsl-mode.el. Then the option to
run SML on the output of the rsltc translation will be available in
the RSL menu.
When a .rsl file is open in emacs you can use M-x (Meta-key or Alt
with x, or Esc followed by x) rsltc to run the type checker, M-x rslpp
to run the pretty-printer, M-x rslgg to run vcg (provided vcg is
installed). emacs will start a second window to display output.
Errors and confidence conditions start with a "file:line:column"
string and clicking with the mouse button 2 on a line starting with
this string places the cursor at the relevant position in that file in
the first window.
Options for rsltc in emacs:
--------------------------
none type check
-c type check plus confidence condition generation on current module
-cc type check plus confidence condition generation on all modules
-d parser (no type check) plus display of module dependencies
-m generate SML input file
Options for rslpp:
-----------------
n line length (must be at least 30). Defaults to 60.
Options for rslgg: none
-----------------
These commands are also available in the RSL menu when visiting an RSL
file in emacs.
Contexts
========
A module S that uses other modules A and B needs to tell the type
checker that A and B are its context. The .rsl file for S will start
A, B
scheme S = ...
The type checker will check A and B (recursively including any modules
in their contexts) and then S. The order of A and B does not matter.
If B is also in the context of A then it does not matter if B is
included in the context of S or not.
The context illustrated above means that the type checker will look
for A.rsl and B.rsl in the same directory as S.rsl. Context files may
also be in other directories. References to them may use
absolute or relative paths, and Unix-style paths are used (so that RSL
files may be passed between Windows and Unix systems).
For example, suppose S.rsl is in /home/raise/rsl, and A.rsl is in
/home/raise/rsl/lower. Then the context reference to A in S.rsl may be
lower/A or
/home/raise/rsl/lower/A or even
../rsl/lower/A
Sources
=======
If you want to build rsltc for yourself, to run on another
architecture or to change it, you can find sources in the source
directory.
Начать зарабатывать