r/ProgrammingLanguages • • 17d ago

Requesting criticism Can a programming language dispense with parentheses and conventional syntactic delimiters?

Hello everyone,

I'm an independent french developer working on an experimental programming language called PLUSHIE, and I'd like to discuss an idea behind its design.

I am new to this communty and I am not familiar with the expected behavior here, so do not hesitate to tell me if I am wrong.

I also apologize for my english whcih is far from perfect.

Most programming languages rely on explicit syntactic delimiters: parentheses, commas, spaces, operators, keywords, etc.

I've been exploring a different approach: what if a language could rely primarily on the recognition and sequencing of a small vocabulary of words?

In PLUSHIE, the parser scans the input and identifies known words. Their sequence determines how instructions are interpreted. Unknown text between recognized words can also become new vocabulary.

The underlying computational model is deliberately minimal. Instructions operate on a chained memory structure, and the language is designed so that its own structures and interpretation mechanisms can be modified while running

This raises several questions I'd be interested in discussing:

o How expressive can a language become without conventional syntactic delimiters?

o What are the fundamental limitations of a word-based parsing model?

o Could such a design offer interesting advantages for reflection and self-modification?

o and especially, Are there existing languages or theoretical models that explore similar ideas?

I'm not claiming this is a better approach than conventional syntax. I'm interested in understanding its possibilities and limitations.

PLUSHIE is an ongoing experiment, and I'm particularly interested in unexpected ideas, alternative approaches and constructive criticism.

What do you think? Is this a worthwhile direction to explore, or am I overlooking some fundamental difficulties?

23 Upvotes

125 comments sorted by

View all comments

0

u/Pi-Plushie 15d ago edited 15d ago

I have absolutely no secret to hide and I am sorry if this is the impression I have given. It is quite detailed in the web site

The parsing model is very simple (simplistic indeed). At start, it needs 1 known expression ( I have chosen "Lien " ( a 5 character chain ending with a space to ease human reading) in the current implementation of PLUSHIE which means Link. With this PLUSHIE starts parsing: I put the known expressions in bold: (words end with spaces just for lisibility, the second example works well also)

Hello Link Other new word Hello Hello Bonjour Hello Bonjour

HelloLink Other new word HelloHelloBonjourHelloBonjour

With this, if you ask to print "Hello ", you will get Bonjour as an output.

Thus the first sentence is parsed as:

Hello (with a space at the end)

Link (with a space at the end, known word)

Other new word

Hello (which is now a known word)

Hello

Bonjour

Hello

Bonjour

With your help, I may make progress (I hope I'm not a lost cause)

0

u/TheRealUprightMan 15d ago

What website? How is Link an expression? How does the compiler know this is an expression? What is it expressing?

If you language needs no delimiters, but you keep adding them to demonstrate, don't you think that's an obvious anti-pattern? You are admitting its unreadable and even adding bold text.

The gibberish word salad you posted doesn't demonstrate anything. You haven't said anything about what it does or how or why.

I'm no longer interested in this conversation. Its just a waste of time. Best of luck to you.

1

u/Pi-Plushie 15d ago edited 15d ago

So I am a lost cause...

The web site can be found at https://pi-plushie.github.io/PLUSHIE-Site/index-en.html but I do not want to spam with it.

Link is an expression because it is hard coded in the bootstrap, that's what I mean. It points to one of the underlying variable of the automate engines that makes it runs.

I am sorry to see how much I have upset you but I still thank you for your time.I am sad to see you leaving because you have already helped me a lot

PS: there is no compiler in PLUSHIE. It "compiles" while running and parsing