maxprofs-llcio / cl-heredoc Goto Github PK
View Code? Open in Web Editor NEWCommon Lisp reader heredoc dispatcher
Home Page: http://www.cliki.net/cl-heredoc
License: GNU General Public License v3.0
Common Lisp reader heredoc dispatcher
Home Page: http://www.cliki.net/cl-heredoc
License: GNU General Public License v3.0
cl-heredoc - Common Lisp reader heredoc dispatcher ================================================== cl-heredoc is an implementation of "here documents" [1] that allow the user to embed literal strings into code or data without any need for quoting, something that is missing in both ANSI CL and popular implementations. cl-heredoc is completely written in Common Lisp and licensed under the GPLv3+[2]. Please see the file COPYING in the top-level directory of the distribution tarball or see the link at [2] if you didn't receive a copy along with this file. Usage ===== cl-heredoc primarily exports a single function, READ-HEREDOC, that is meant to be used with the CL reader by attaching it to a dispatch character, e.g. CL-USER> (set-dispatch-macro-character #\# #\> #'cl-heredoc:read-heredoc) CL-USER> #>eof>Write whatever (you) "want", no matter how many lines or what characters until the magic end sequence has been reached!eof Will read everything starting after "#>eof>" until the given sequence, here "eof", is found and return the result as a string. The enclosed text is not subject to any kind of evaluation and needs no quoting. If used in a non-interactive fashion, i.e. outside the REPL, an error will be signaled if EOF is reached. The underlying function READ-UNTIL-MATCH may also be used directly: It takes two arguments, a stream and a termination string and will read from the stream until the terminating sequence is found. Everything read so far excluding the terminator is returned as a string. Links and References ==================== Homepage: http://www.cliki.net/cl-heredoc Hacking: http://github.com/e-user/cl-heredoc [1] http://en.wikipedia.org/wiki/Here_document [2] http://www.gnu.org/licenses/gpl-3.0-standalone.html -------------------------------------------------------------------------------- Copyright (C) 2009, 2010 Alexander Kahl <[email protected]> This file is part of cl-heredoc. cl-heredoc 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 3 of the License, or (at your option) any later version. cl-heredoc 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. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.