erlscheme

所属分类:其他
开发工具:Erlang
文件大小:0KB
下载次数:0
上传日期:2023-05-19 11:23:40
上 传 者sh-1993
说明:  Erlang OTP VM的Scheme编程语言的实现。,
(An implementation of the Scheme programming language for the Erlang OTP VM.,)

文件列表:
LICENSE (11323, 2023-05-19)
Makefile (2367, 2023-05-19)
erlscheme.spec (1125, 2023-05-19)
make/ (0, 2023-05-19)
make/erlscheme.in (775, 2023-05-19)
make/gen_es_uc_ctype.escript (9368, 2023-05-19)
priv/ (0, 2023-05-19)
priv/scm/ (0, 2023-05-19)
priv/scm/es-init.scm (718, 2023-05-19)
rebar.config (1820, 2023-05-19)
rebar.config.script (1349, 2023-05-19)
src/ (0, 2023-05-19)
src/erlscheme.app.src (815, 2023-05-19)
src/es_ast_to_core.erl (11275, 2023-05-19)
src/es_compile.erl (2120, 2023-05-19)
src/es_ctype.erl (5114, 2023-05-19)
src/es_datum.erl (5355, 2023-05-19)
src/es_env.erl (1634, 2023-05-19)
src/es_error.erl (1541, 2023-05-19)
src/es_eval.erl (11099, 2023-05-19)
src/es_gloenv.erl (2657, 2023-05-19)
src/es_input_string_iodev.erl (4412, 2023-05-19)
src/es_lexer.erl (27839, 2023-05-19)
src/es_lexinput.erl (6900, 2023-05-19)
src/es_lib_scheme_base.erl (2853, 2023-05-19)
src/es_load.erl (2615, 2023-05-19)
src/es_macros.erl (17962, 2023-05-19)
src/es_main.erl (1272, 2023-05-19)
src/es_parse.erl (24872, 2023-05-19)
src/es_print.erl (5186, 2023-05-19)
src/es_read.erl (3980, 2023-05-19)
src/es_repl.erl (2564, 2023-05-19)
src/es_synenv.erl (2988, 2023-05-19)
src/es_uc_ctype.erl (1202572, 2023-05-19)

Copyright 2014-2022 Mikael Pettersson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ErlScheme ========= ErlScheme is an implementation of the Scheme programming language for the Erlang/OTP virtual machine. ErlScheme aims for Scheme R7RS compatibility, with extensions for Erlang interoperability. ErlScheme added features include: - Calls to Erlang code. * (M:F A1 ... An) calls function F of arity n exported from module M * (lambda M:F/A) evaluates to function F of arity A exported from module M - Separately-compiled modules. A module like (module meaning) (export (/ life 0)) ; or (export life/0) (define (life) 42) in a file "meaning.scm" can be compiled to "meaning.beam", and then called from ErlScheme as (meaning:life) or from Erlang as meaning:life(). - Erlang-like exception handling: (try Expr (of Var Body) (catch EVar Handler) (after After)) ErlScheme exceptions have termination semantics, not resumption semantics as specified by R7RS. - Erlang-like case expressions and pattern matching: (case Expr ('x 'got_an_x) ; quote symbols to treat them as literals (y (when Guard) Body..) ; unquoted symbols are variables (_ Default)) Patterns are datums where symbols denote variables if unquoted, and literals when quoted. References to bound variables are equality constraints, as in Erlang. Scheme's original (case ...) expressions are not supported. They can be supported via a macro if so desired. (This author finds them pointless.) - Erlang processes and message passing. Some Scheme feature are not supported: - No mutable aggregate data structures. This means no set-car!, string-set!, vector-set!, or similar procedures. This is due to inherent limitations in the Erlang/OTP VM. - No call/cc. Supporting this would require a CPS-transform, which would make interoperability with Erlang code difficult. Note that the Erlang VM supports processes and exceptions, so call/cc is not needed to implement those features for ErlScheme. - No "full numeric tower". This is mainly due to the Erlang/OTP VM only supporting integers (fixnums and bignums) and flonums. - No variadic functions. The Erlang/OTP VM does not support this feature, and emulating it requires changing calling conventions which ends up making interoperability with Erlang code more difficult. - No resumption from exception handlers. Like call/cc, supporting this would require a CPS-transform, making interoperability with Erlang code difficult. ErlScheme is a Work In Progress =============================== ErlScheme is far from finished, so here is an incomplete list of known omissions and planned extensions: Omissions: - Most of the Scheme standard bindings are not yet implemented. - The R6RS/R7RS library system is not implemented, and may never be. - No documentation. - The macro / syntax system is old-fashioned and primitive. Planned extensions: - Write more of the system in ErlScheme itself.

近期下载者

相关文件


收藏者