How do I use the read-table to collapse symbol-table references?

From: Ray Dillinger (bear_at_sonic.net)
Date: 03/30/04


Date: Tue, 30 Mar 2004 17:25:37 GMT


Is there any way I can key on the '%' character to use the readtable
to transform

foo%bar

in source into

(get 'foo 'bar)

in data structure?

I'd also like to collapse

foo%bar%<datum>

in source into

(setf (get 'foo 'bar) <datum>)

in data structure.

Just looking for a way to make property-list references more concise.
Am I missing something about the readtable, or do I have to use a
prefix character before 'foo'? ie, as

%foo%bar
and
%foo%bar%<datum>

it looks like there's a straightforward way to do this.

                                Bear



Relevant Pages

  • Re: a roguelike for Forth
    ... character, you'll have to create a data structure that contains ... by keeping track of randomly generated screens (so you can walk back to ... screen, terrain info is saved, so the next screen will have a n% chance of ...
    (comp.lang.forth)
  • Re: 64 bit data structure
    ... >> struct block { ... > I understand why an unsigned character might be chosen. ... > a personal distaste for declaring a data structure to contain a ...
    (comp.programming)
  • Re: fields in a cursor
    ... For i = 1 To fldcnt ... You need to get the field contents as character datatype, ... TRANSFORM() will do that for you. ... converts each possible data type to character. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: XslCompiledTransform
    ... character \u2013 at index 3637 to specified code page. ... What output encoding are you trying to transform to? ... and that character is not contained in the code page you want to use ... serializing the result tree with the desired encoding fails. ...
    (microsoft.public.dotnet.languages.csharp)
  • [XSL] How do i get & #160; to pass through?
    ... I am trying to get a Java/Xalan transform to pass through a numeric ... character to its UNICODE representation. ... windows CMD window): ...
    (comp.lang.java.programmer)