Cassandra Granade 🏳️‍⚧️'s Post

Inspired by @mcc's threads on Forth, I'm curious about the idea of a language in which parentheses are not grouping constructs, but a kind of compiler-enforced linting.

E.g. if you have * + 2 3 5 in an RPN-based language, that you could write * (+ 2 3) 5 where ( means "the next token is an operator, and there is a matching ) somewhere forward of this (," and where ) means "an operation and its operands were just popped from the stack, and that operand was denoted by a (."


Likes: 0
Boosts: 1
Hashtags:
Mentions:

Comments

Displaying 0 of 0 comments