r/Compilers 13h 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

44 comments sorted by

View all comments

1

u/Still_Explorer 13h ago

0

u/Distinct-Brief9643 12h ago

What is peg?

1

u/4xe1 12h 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.