Re: newbie: m-expressions



"falcon" <shahbazc@xxxxxxxxx> writes:

> Now I can parse my language and translate it to Lisp...but if there is
> a well thought-out standard way of doing it (I hoped M-Expressions were
> it) then it makes it easier for me.

Via Lemonoder:

http://www.jroller.com/page/trasukg/20050419#while_writing_yaql_i_accidentally

You might find it interesting. As I understand Lisp history, the
short version is that the S-expresion syntax was used to work out the
parse trees in lei of developing an M-expression syntax for production
use. The problem was, the S-exp syntax was so nice and also highly
amenable to macros (something no other language has done yet, so far
as I know) that the Lispers came to love it and stuck with it.

I find it an amusing irony that the dreaded parenthesis of Lisp are
the enabler of its awesome power.

--
An ideal world is left as an excercise to the reader.
--- Paul Graham, On Lisp 8.1
No excuses. No apologies. Just do it.
--- Erik Naggum
.



Relevant Pages

  • [ANN] New Ruby Implementation - RBXML
    ... Ruby is a wonderful language, but its syntax has some shortcomings. ... is difficult to parse by anything but a full Ruby interpreter. ...
    (comp.lang.ruby)
  • Re: Up to date MFC Book
    ... To the developers what matters is that they are comfortable with the language, ... and so is difficult for tools to parse and process ... ... parse the compiler has to do is different from the parse that a refactoring tool ... OO design principles) is that it wraps the Win32 API enough to let you do what ...
    (microsoft.public.vc.mfc)
  • Re: writing data adapter sql commands
    ... MySqlCmdBuilder.QuoteSuffix = "]" to my form load event and like you said it works with out needing to parse the insert statement. ... I really don't understand why I need to set parameters and I'm not using ADO.Net. ... language related problems, but ADO.Net is nothing that is related to the ...
    (microsoft.public.dotnet.languages.vb)
  • What does the simplified sexp-based syntax for C# looks like?
    ... language", parse it, and produce the parse tree from it, then you ... don't have to write functions such as this OCaml example. ... correct by comparing the C# AST I produce against one that I expect. ...
    (comp.lang.lisp)
  • Re: Am I parsing this correctly? (when do I build the symbol table)
    ... language, or try to approximate some other language, and in those ... easier to parse. ... Some designers choose one, some choose ... One design point is reserved words or no reserved words. ...
    (comp.compilers)