/unmaintained/sandbox/syntax/syntax.factor
http://github.com/abeaumont/factor · Factor · 26 lines · 15 code · 8 blank · 3 comment · 1 complexity · abe91afa9f4f1efd0bec12f0f049ad48 MD5 · raw file
- ! Copyright (C) 2009 Maxim Savchenko.
- ! See http://factorcode.org/license.txt for BSD license.
- USING: kernel sequences assocs namespaces lexer vocabs.parser sandbox ;
- IN: sandbox.syntax
- <PRIVATE
- ERROR: sandbox-error vocab ;
- : sandbox-use+ ( alias -- )
- dup whitelist get at [ add-use ] [ sandbox-error ] ?if ;
- PRIVATE>
- SYNTAX: APPLY: scan sandbox-use+ ;
- SYNTAX: APPLYING: ";" parse-tokens [ sandbox-use+ ] each ;
- REVEALING:
- ! #!
- HEX: OCT: BIN: f t CHAR: "
- [ { T{
- ] } ;
- REVEAL: ;