Is there a "tree structure editor" for Lisp?

I heard that S-expressions can be represented as trees; like (f 1 (g 2) 3)how

      .
 .  .  .    .
f  1   .      3          [first level]
      g  2               [second level]

Is there an editor (preferably free) for directly editing this type of structure? This will

  • Avoid "all these parentheses"
  • Show the elegance I understood in lisp.
+5
source share
4 answers

S-expressions are a tree, not the other way around. Your example formatted with newlines:

(f 1
   (g 2)
   3)

It represents the following cons tree:

    +---+---+   +---+---+   +---+---+   +---+---+
--->| f | ----->| 1 | ----->| ¦ | ----->| 3 |NIL|
    +---+---+   +---+---+   + ¦ +---+   +---+---+
                              v
                            +---+---+   +---+---+
                            | g | ----->| 2 |NIL|
                            +---+---+   +---+---+

— , .

- , . Emacs paredit-mode, , .

+5

(, ), Interlisp-D. , Common Lisp , , , -, . . , . ( ). , , - XML Oxygen.

( , , , Interlisp , - , , , .)

+2

ParEdit emacs .

, , , CUSP Eclipse, .

+2

Gingko as a Tree Structure editor for lisp

, Lisp Gingko ( ).

, , , - ( Gingko 3 ).

[ , Lisp.]

+2

All Articles