r/ProgrammingLanguages • u/Key_River7180 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
View all comments
1
u/asdfa2342543 9m ago
So when you say “no syntax” i guess you mean no primitive tokens? If so I’ve been trying something that fits that bill for a long time.
The conclusion i came to is that there still is a syntax of a kind in the position. There’s implicitly something like a data constructor with positional arguments. However I still haven’t come up with a 100% nailed down semantics with literally 0 hardcoded tokens. I do suspect it’s possible after digging into some relevant math, computer science, and type theory. Here’s a post about aspects of it: https://spacechimplives.substack.com/p/computing-with-geometry