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: data structure that preserving insertion order
    ... I need to process unicode mapping and unlike ascii which has ... Data structure that handles large data and preserving inser- ... When you say "preserving insertion order", ... of character(character has its own value according ...
    (comp.lang.c)
  • Re: data structure that preserving insertion order
    ... data structure preserving the inorder ... of character(character has its own value according ... sort of data structure, ... In particular what is "Unicode ...
    (comp.lang.c)
  • 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: data structure that preserving insertion order
    ... data structure preserving the inorder ... of character(character has its own value according ... sort of data structure, ... In particular what is "Unicode ...
    (comp.lang.c)
  • Re: data structure that preserving insertion order
    ... like unicode mapping. ... of character(character has its own value according ... sort of data structure, ... In particular what is "Unicode ...
    (comp.lang.c)