r/ProgrammingLanguages • Nain. • 1h ago

Would a syntaxless programming language be possible?

So I had the idea of a syntaxless programming language where a function parses its form as it needs.

In this system, a parser is a function turning a description of the syntax to a kind of binding

parser: forms -> (given syntax) -> binding;

For example:

template ([a] is in between [min] and [max]) # binding
  := a >= min and a <= max; # lambda 

Idk just a cool idea. There are many problems with this (for starters, when do you know what parser to use?)

0 Upvotes

20 comments sorted by

View all comments

1

u/to7m 52m ago

I started working on a programming language with no syntax in 2020: gitlab.com/to7m/433

It got some unkind comments in this sub, with people saying it didn't even count as a programming language, so I stopped working on it.

In addition to not having syntax, it also does not have function definitions, grammar, operators, etc. As such, it is not currently possible to write programs in it like you describe.