r/ProgrammingLanguages • Nain. • 26m 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

13 comments sorted by

View all comments

Show parent comment

1

u/Key_River7180 Nain. 16m ago

more or less

1

u/samanzaman 12m ago

Agda can do it as well ( in a quite sophisticated way). Their website should also have the relevant research papers