<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com.au/group/comp.lang.lisp</id>
  <title type="text">comp.lang.lisp Google Group</title>
  <subtitle type="text">
  Discussion about LISP.
  </subtitle>
  <link href="/group/comp.lang.lisp/feed/atom_v1_0_msgs.xml" rel="self" title="comp.lang.lisp feed"/>
  <updated>2009-11-08T21:36:05Z</updated>
  <generator uri="http://groups.google.com.au" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Pascal J. Bourguignon</name>
  <email>p...@informatimago.com</email>
  </author>
  <updated>2009-11-08T21:36:05Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/d37eca661c7d5a81?show_docid=d37eca661c7d5a81</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/d37eca661c7d5a81?show_docid=d37eca661c7d5a81"/>
  <title type="text">Re: How to tell reader that strings are delimited with `&lt;&#39; and `&gt;&#39; ?</title>
  <summary type="html" xml:space="preserve">
  CLHS 2.4.5 says: &lt;br&gt; The double-quote is used to begin and end a string. When a &lt;br&gt; double-quote is encountered, characters are read from the input &lt;br&gt; stream and accumulated until another double-quote is &lt;br&gt; encountered. If a single escape character is seen, the single &lt;br&gt; escape character is discarded, the next character is accumulated,
  </summary>
  </entry>
  <entry>
  <author>
  <name>Vassil Nikolov</name>
  <email>vniko...@pobox.com</email>
  </author>
  <updated>2009-11-08T21:34:18Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/4d2fa39ec49b12d2?show_docid=4d2fa39ec49b12d2</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/4d2fa39ec49b12d2?show_docid=4d2fa39ec49b12d2"/>
  <title type="text">Re: How to tell reader that strings are delimited with `&lt;&#39; and `&gt;&#39; ?</title>
  <summary type="html" xml:space="preserve">
  P.S. Depending on what _exactly_ you are processing [*], you might &lt;br&gt; get away with the kludge of &lt;br&gt; (set-syntax-from-char #\&amp;lt; #\Space) &lt;br&gt; (set-syntax-from-char #\&amp;gt; #\Space) &lt;br&gt; to read the above as the symbol LABEL (I see no reason why one would &lt;br&gt; insist on reading strings here). &lt;br&gt; _________ &lt;br&gt; [*] e.g. whether such tags may contain non-constituent characters
  </summary>
  </entry>
  <entry>
  <author>
  <name>Vassil Nikolov</name>
  <email>vniko...@pobox.com</email>
  </author>
  <updated>2009-11-08T21:24:08Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/1250f9ea0cdcead1?show_docid=1250f9ea0cdcead1</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/1250f9ea0cdcead1?show_docid=1250f9ea0cdcead1"/>
  <title type="text">Re: How to tell reader that strings are delimited with `&lt;&#39; and `&gt;&#39; ?</title>
  <summary type="html" xml:space="preserve">
  CL-USER&amp;gt; (set-syntax-from-char #\&amp;lt; #\&amp;quot;) &lt;br&gt; CL-USER&amp;gt; (set-syntax-from-char #\&amp;gt; #\&amp;quot;) &lt;br&gt; It actually expects the same delimiter at the end as in the &lt;br&gt; beginning (maybe not according to CLHS, but to CLtL), so after the &lt;br&gt; above, &amp;lt;foo&amp;lt; would be read as &amp;quot;foo&amp;quot; and so would &amp;gt;foo&amp;gt; (which is &lt;br&gt; still not what is desired, of course).
  </summary>
  </entry>
  <entry>
  <author>
  <name>Pascal J. Bourguignon</name>
  <email>p...@informatimago.com</email>
  </author>
  <updated>2009-11-08T21:07:49Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/93df50ed2d573db8?show_docid=93df50ed2d573db8</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/93df50ed2d573db8?show_docid=93df50ed2d573db8"/>
  <title type="text">Re: How to tell reader that strings are delimited with `&lt;&#39; and `&gt;&#39; ?</title>
  <summary type="html" xml:space="preserve">
  To be able to use &amp;lt;abc&amp;gt; in lisp sources, just run: &lt;br&gt; (set-macro-character #\&amp;lt; (function bracket-string-reader) *readtable*) &lt;br&gt; on the REPL readtable. Above I showed a benign example installing the &lt;br&gt; reader macro on a temporary local readtable, but of course you can &lt;br&gt; modify directly *readtable*. &lt;br&gt; This errors comes from the fact that the predefined reader macro for
  </summary>
  </entry>
  <entry>
  <author>
  <name>Vassil Nikolov</name>
  <email>vniko...@pobox.com</email>
  </author>
  <updated>2009-11-08T20:43:57Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/ae529c46ba0ef565?show_docid=ae529c46ba0ef565</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/ae529c46ba0ef565?show_docid=ae529c46ba0ef565"/>
  <title type="text">Re: How to tell reader that strings are delimited with `&lt;&#39; and `&gt;&#39; ?</title>
  <summary type="html" xml:space="preserve">
  The latter is exactly achieved by doing the former (i.e. by suitably &lt;br&gt; defining #\&amp;lt; as a macro character), so in what way would you like to &lt;br&gt; do better? &lt;br&gt; Note that the only way the (standard Common Lisp) reader algorithm &lt;br&gt; can return a string is through the use of macro characters (only &lt;br&gt; numbers and symbols are produced from extended tokens).
  </summary>
  </entry>
  <entry>
  <author>
  <name>Mirko</name>
  <email>mirko.vuko...@gmail.com</email>
  </author>
  <updated>2009-11-08T20:43:17Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/6760fe1179bafc8f?show_docid=6760fe1179bafc8f</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/6760fe1179bafc8f?show_docid=6760fe1179bafc8f"/>
  <title type="text">Re: How to tell reader that strings are delimited with `&lt;&#39; and `&gt;&#39; ?</title>
  <summary type="html" xml:space="preserve">
  On Nov 8, 3:01 pm, p...@informatimago.com (Pascal J. Bourguignon) &lt;br&gt; wrote: &lt;br&gt; Thanks Pascal, that is what I had so far. &lt;br&gt; I was looking for something like this (and which does not work): &lt;br&gt; CL-USER&amp;gt; (set-syntax-from-char #\&amp;lt; #\&amp;quot;) &lt;br&gt; T &lt;br&gt; CL-USER&amp;gt; (set-syntax-from-char #\&amp;gt; #\&amp;quot;) &lt;br&gt; T &lt;br&gt; CL-USER&amp;gt; (read-from-string &amp;quot;&amp;lt;abc&amp;gt;&amp;quot;)
  </summary>
  </entry>
  <entry>
  <author>
  <name>Pascal Costanza</name>
  <email>p...@p-cos.net</email>
  </author>
  <updated>2009-11-08T20:37:17Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/ed5b754218baaeed/4dec46eef02b8837?show_docid=4dec46eef02b8837</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/ed5b754218baaeed/4dec46eef02b8837?show_docid=4dec46eef02b8837"/>
  <title type="text">Re: Is there a better way to store this?</title>
  <summary type="html" xml:space="preserve">
  Are you aware of the following link? &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://web.archive.org/web/20040815123650/http://lecture.pentaside.org/paper/persistence-lemmens.txt&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; Pascal
  </summary>
  </entry>
  <entry>
  <author>
  <name>Vassil Nikolov</name>
  <email>vniko...@pobox.com</email>
  </author>
  <updated>2009-11-08T20:23:50Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/0460484cf7acb349/c5cee32944e7ede5?show_docid=c5cee32944e7ede5</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/0460484cf7acb349/c5cee32944e7ede5?show_docid=c5cee32944e7ede5"/>
  <title type="text">Re: Ron Garret considered harmful</title>
  <summary type="html" xml:space="preserve">
  Thank you so much for your guidance, even though I was actually &lt;br&gt; objecting to the statement that &amp;quot;only a monkey&amp;quot; would have used &lt;br&gt; &amp;quot;shrunk&amp;quot; as the past tense form (instead of &amp;quot;shrank&amp;quot;), which is &lt;br&gt; somewhat different. &lt;br&gt; Which is the body that issues pronouncements when a hitherto &lt;br&gt; incorrect form becomes correct in the English language, or a
  </summary>
  </entry>
  <entry>
  <author>
  <name>Pascal J. Bourguignon</name>
  <email>p...@informatimago.com</email>
  </author>
  <updated>2009-11-08T20:01:52Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/223b745d276d1251?show_docid=223b745d276d1251</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/223b745d276d1251?show_docid=223b745d276d1251"/>
  <title type="text">Re: How to tell reader that strings are delimited with `&lt;&#39; and `&gt;&#39; ?</title>
  <summary type="html" xml:space="preserve">
  (defun bracket-string-reader (stream ch) &lt;br&gt; (declare (ignore ch)) &lt;br&gt; (coerce (loop for ch = (read-char stream) &lt;br&gt; until (char= #\&amp;gt; ch) &lt;br&gt; collect ch) &#39;string)) &lt;br&gt; (let ((*readtable* (copy-readtable nil))) &lt;br&gt; (set-macro-character #\&amp;lt; (function bracket-string-reader) *readtable*)
  </summary>
  </entry>
  <entry>
  <author>
  <name>Mirko</name>
  <email>mirko.vuko...@gmail.com</email>
  </author>
  <updated>2009-11-08T19:55:31Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/4df8a07e9cdf2854?show_docid=4df8a07e9cdf2854</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/8efd08cdc19d0b6f/4df8a07e9cdf2854?show_docid=4df8a07e9cdf2854"/>
  <title type="text">How to tell reader that strings are delimited with `&lt;&#39; and `&gt;&#39; ?</title>
  <summary type="html" xml:space="preserve">
  Hello, &lt;br&gt; I am parsing a file that has snippets such as &lt;br&gt; &amp;lt;label&amp;gt; &lt;br&gt; I would like to coax the reader to return a string &amp;quot;label&amp;quot;. Right &lt;br&gt; now, I have defined a macro character #\&amp;lt; to collect characters from &lt;br&gt; the input stream until the matching &amp;gt; is found. But I wonder if I can &lt;br&gt; coax the reader to interpret &amp;lt;label&amp;gt; as a &amp;quot;label&amp;quot; string.
  </summary>
  </entry>
  <entry>
  <author>
  <name>George Neuner</name>
  <email>gneun...@comcast.net</email>
  </author>
  <updated>2009-11-08T19:39:27Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/7cf5bfcaf68d2361/87429ed5dcffb10d?show_docid=87429ed5dcffb10d</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/7cf5bfcaf68d2361/87429ed5dcffb10d?show_docid=87429ed5dcffb10d"/>
  <title type="text">Re: How to set the value?</title>
  <summary type="html" xml:space="preserve">
  On Sun, 08 Nov 2009 03:33:50 +0100, Adam Michalik &amp;lt;dode...@gmail.com&amp;gt; &lt;br&gt; wrote: &lt;br&gt; You mean browner - the US being the source of global warming and &lt;br&gt; whatnot.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Kenneth Tilton</name>
  <email>kentil...@gmail.com</email>
  </author>
  <updated>2009-11-08T18:58:28Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/0460484cf7acb349/c22f4f1b068b79df?show_docid=c22f4f1b068b79df</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/0460484cf7acb349/c22f4f1b068b79df?show_docid=c22f4f1b068b79df"/>
  <title type="text">Re: Ron Garret considered harmful</title>
  <summary type="html" xml:space="preserve">
  And creationists cannot believe the immune system evolved naturally. You &lt;br&gt; are in dubious company. &lt;br&gt; Chomsky is such an idiot. He always argued that there must be a language &lt;br&gt; organ otherwise how could infants learn language so perfectly when &lt;br&gt; everyone around them speaks it imperfectly. Hello? &lt;br&gt; C&#39;est vrai, mais mon professor toujours dit &amp;quot;La peuple determine la
  </summary>
  </entry>
  <entry>
  <author>
  <name>Pascal J. Bourguignon</name>
  <email>p...@informatimago.com</email>
  </author>
  <updated>2009-11-08T17:40:41Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/0460484cf7acb349/8fa70e4f7a06bddd?show_docid=8fa70e4f7a06bddd</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/0460484cf7acb349/8fa70e4f7a06bddd?show_docid=8fa70e4f7a06bddd"/>
  <title type="text">Re: Ron Garret considered harmful</title>
  <summary type="html" xml:space="preserve">
  I beg to differ slightly. &lt;br&gt; For one thing, I believe most languages are at least to some degree &lt;br&gt; artificial. &lt;br&gt; I mean, I just cannot believe that complex schemes such as latin &lt;br&gt; declinations evolved naturaly. &lt;br&gt; Besides, Edo Nyland&#39;s &amp;quot;Linguistic Archaeology&amp;quot; seems to give good &lt;br&gt; arguments in this direction. &lt;br&gt; But even if it wasn&#39;t the case historically, to get an efficient
  </summary>
  </entry>
  <entry>
  <author>
  <name>Vassil Nikolov</name>
  <email>vniko...@pobox.com</email>
  </author>
  <updated>2009-11-08T16:18:06Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/7cf5bfcaf68d2361/e6800b8a23902aea?show_docid=e6800b8a23902aea</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/7cf5bfcaf68d2361/e6800b8a23902aea?show_docid=e6800b8a23902aea"/>
  <title type="text">Re: How to set the value?</title>
  <summary type="html" xml:space="preserve">
  Add Bulgaria to this list. &lt;br&gt; As a sidenote, there is (at least in Bulgarian) an expression that &lt;br&gt; literally means &amp;quot;see stars in the middle of a white day&amp;quot;, which &lt;br&gt; refers to the &amp;quot;stars&amp;quot; one &amp;quot;sees&amp;quot; after a strike on the head, but &lt;br&gt; that is a rather special case of surprise. &lt;br&gt; ---Vassil.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tamas K Papp</name>
  <email>tkp...@gmail.com</email>
  </author>
  <updated>2009-11-08T16:12:26Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/0460484cf7acb349/9fb5cafeca6a1f51?show_docid=9fb5cafeca6a1f51</id>
  <link href="http://groups.google.com.au/group/comp.lang.lisp/browse_thread/thread/0460484cf7acb349/9fb5cafeca6a1f51?show_docid=9fb5cafeca6a1f51"/>
  <title type="text">Re: Ron Garret considered harmful</title>
  <summary type="html" xml:space="preserve">
  There is no &amp;quot;correct&amp;quot; or &amp;quot;incorrect&amp;quot; usage for (natural) languages. &lt;br&gt; You can distinguish dialects, traditional and modern variants, etc, &lt;br&gt; but none of them are more &amp;quot;correct&amp;quot; than the other. Language is not &lt;br&gt; math. &lt;br&gt; The best that dictionaries can do is to present common/current usage &lt;br&gt; and variants, so those who aspire to follow them for various reasons
  </summary>
  </entry>
</feed>
