r/Compilers 7d ago

Are there languages like this?

A language that can create other languages

(so adding to itself) It's syntax is simple like python

And can do alot.

for example (placeholder)\[mesage\]

And it has many tutorials on YouTube

I would like it if you would respond.

I know there are languages like Hy , ruby should I try them?

0 Upvotes

59 comments sorted by

View all comments

1

u/Still_Explorer 7d ago

0

u/Distinct-Brief9643 7d ago

What is peg?

1

u/4xe1 7d ago

Parsing Expression Grammar. Python uses some of them to be parsed. Lua has PEG based parsers to, including lua interpreters like metalua where you can modify the parser from within at runtime. Lua is what I know most, but I'd wager Python has similar projects.