Re: s-expression data language



Antonio Menezes Leitao wrote:
"Rob Thorpe" <robert.thorpe@xxxxxxxxxxxx> writes:

The problems of XML have been quite often discussed here. People have
often mentioned how lisp read syntax performs the same job much more
simply.

But lisp read syntax in its normal state has some problems. Different
lisp implementations read it in slightly different ways, for example.
Also there is no way to describe a "valid" piece of data, except by a
lisp program that checks it.

These things would not be impossible to solve. Has anyone actually
done this and written a list based system similar in aims to XML?

Take a look at http://theory.lcs.mit.edu/~rivest/sexp.html

and also

http://www.umu.se/it/projupp/spocp/doc/intro.html

Thankyou, that was what I was looking for.

Maybe it would be useful to modernise this a bit (adding Unicode
support for example, like in SCOCP) and create a new version.

I might have a go if I get a little time in the next few months.

.



Relevant Pages

  • Re: Cons cell archaic!?
    ... How would the implementation of a Lisp without a using cons look like? ... the irregularity in its often cited regular syntax. ... Lisp at core is based on functional programing on lists. ...
    (comp.lang.lisp)
  • Re: Parsing s-expression trees
    ... expressions --> lisp. ... the irregularity in its often cited regular syntax. ... programers can pretty much tell what piece of source code ... Lisp relies on a regular nested syntax. ...
    (comp.lang.lisp)
  • Re: Xah on Lisp
    ... Lisp relies on a regular nested syntax. ... Whether the syntax "irregularities" due to the five mentioned characters ... You want me to define the power of a computer language? ...
    (comp.lang.lisp)
  • Re: Whats the best language to learn...
    ... on processors designed to run Lisp and Lisp OSes. ... sence that the language make effective use of them. ... No other programming language can do what lisp can do. ... is exactly because of its syntax. ...
    (comp.programming)
  • Re: When is Xah going to ease up on Emacs...
    ... Fundamental Problems of Lisp ... However, the lisp syntax has ... it allows transformation of the source code by a simple ... what this means is that lisp's lists is ...
    (comp.lang.lisp)