Search the web
Sign In
New User? Sign Up
concatenative · Discuss the concatenative variety of computer languages: Joy, Forth, Postscript
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
So what is a concatenative language?   Message List  
Reply | Forward Message #3315 of 4643 |
Re: [stack] So what is a concatenative language?

Christopher Diggins <cdiggins@...> wrote:
> I've made an attempt at creating a more formal definition of
> concatenative languages which I posted on my blog (
> http://cdiggins.com/2007/04/27/what-is-a-concatenative-language/)

A noble ambition! Thank you.

> "A concatenative language is a context-free language that can be
> expressed using a concatenative grammar. The defining characteristic
> of phrases in a concatenative language, is that if A and B are valid
> phrases in a concatenative language L then the concatenation of A and
> B is also a valid phrase in L."

The second sentance is not part of the defintion; it's purely
informational. (Right?)

> "A concatenative grammar is any context free grammar G, where S = S S
> is a valid production rule."

Hmmmmm... This seems far too expansive. It seems possible that S could
be defined with arbitrary parsing complexity, and S itself would be
embedded in a language of more complexity. For example, it almost
seems like C could include a production like that, perhaps named
'ClusterOfStatements' instead of 'S' (a ClusterOfStatements would go
inside a Block).

But C isn't concatenative, nor is the sublanguage that you can use
inside a block concatenative. Is it? (Perhaps our definitions truly
are too vague, and it accidentally is!)

I'm definitely including some implicit restriction that your
definition doesn't. Perhaps I'm just being too parochial, limiting my
personal definition to tightly fit only the languages I already know.
I'm definitely doing a bad thing by leaving the restriction unstated,
but I can't think of a formal way to say it. I did say something about
"arbitrary parsing complexity", but I recognise mere handwaving even
when I'm the one doing it.

> "Flat concatenative languages are simply the set of all strings over a
> given alphabet".

Gut feeling: I think you're right (of course, ignoring semantics such
as typechecking).

> Christopher Diggins

-Billy



Sat Apr 28, 2007 4:57 pm

wtanksle
Offline Offline
Send Email Send Email

Forward
Message #3315 of 4643 |
Expand Messages Author Sort by Date

I've made an attempt at creating a more formal definition of concatenative languages which I posted on my blog ( ...
Christopher Diggins
cdiggins.geo
Offline Send Email
Apr 27, 2007
9:17 pm

... A noble ambition! Thank you. ... The second sentance is not part of the defintion; it's purely informational. (Right?) ... Hmmmmm... This seems far too...
William Tanksley, Jr
wtanksle
Offline Send Email
Apr 28, 2007
4:58 pm

Hi William, I have responded inline below, but as a result of your suggestions I have revised the definition: ...
Christopher Diggins
cdiggins.geo
Offline Send Email
Apr 28, 2007
6:25 pm

... Ah! That seems plausible. It seems intuitively right (not an indicator of truth, but certainly a good thing for a definition). It's definitely simple and...
William Tanksley, Jr
wtanksle
Offline Send Email
Apr 28, 2007
7:44 pm

The real definition of "concatenative" is semantic: If P and Q are sentences in a concatenative language, then so is P Q, and the meaning of P Q is the...
Tom Duff
unplugtheref...
Offline Send Email
Apr 29, 2007
3:53 pm

... That however is a statement about the syntax. It's hard to not say something about the syntax. ... This might be slightly more general, but I don't know...
Christopher Diggins
cdiggins.geo
Offline Send Email
Apr 29, 2007
4:44 pm

... Any programming language definition is a mapping from syntax to semantics. It's impossible to discuss semantics without mentioning syntax. ... The...
Tom Duff
unplugtheref...
Offline Send Email
May 1, 2007
3:36 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help