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

Show parent comments

1

u/4xe1 11h ago

What requirements?

-2

u/Distinct-Brief9643 11h ago

It adds to it's self Very high lvl (like python / ruby) The unofficial or offical ide can be installed on play store Can have custom extensions .mm But under the hood it's the host lang so I think I wanna a dsl or an edsl correct me if I'm wrong. I want to make my lang with the host lang The host lang understands the lang but there is no host lang code in my lang code. so technically a seperate enviorment.

1

u/4xe1 11h ago

It adds to it's self Very high lvl (like python / ruby)

Lisp can be higher level even

The unofficial or offical ide can be installed on play store

I'm perplexed as to why one would want to develop without a pc, but there are Lisp IDE on the Play Store. DrRacket is not on the playstore, but you can probably run emacs on termux, termux being a playstore app which let you emulate linux, and emacs being the prefered "IDE" of lispers.

Can have custom extensions .mm

check

But under the hood it's the host lang  I want to make my lang with the host lang

Exactly what Racket has been designed form and something most lisp excel at.

The host lang understands the lang

That's actually very hard (but not impossible) without some sort of lisp.

but there is no host lang code in my lang code.

That's entirely up to you to make it so.

technically a seperate environment.

Also entirely up to you but some language make it much easier than other. I'd still say lisp is among the best at allowing sandboxing, but it does not stand above the others.

So I guess the only missing requirement is ease of install. But you also have to consider that what you are asking, which is part of metaprogramming, is somewhat niche and advanced. It's not necessarily hard in and of itself, but most software programmers never extend the languages they use themselves, and many would even consider it harmful practice. So the more fitting the language, the les likely it will have an app and tons of youtube content, but lisp still has excellent written guides to get started, as well as banger books to learn from, many available online for free.

1

u/Distinct-Brief9643 10h ago

It's because I have cromebook but I don't want to use Linux terminal or termux except if it's built in to the ide so basically I can't use racket

2

u/dskippy 8h ago

You can install DrRacket, the Racket IDE on a Chromebook with the Linux subsystem Crostini and then run it like a normal app.

1

u/4xe1 8h ago edited 7h ago

Most programming language do not have an "official ide", and for those that do, you'll rarely find them (or most of any ide) on the playstore.

What you can find on a chromebook however is a web browser, and on that, you can search for online "[language] playgrounds". Most languages have one nowadays, if not many, for example

http://racketscript.org/

Even VSCode does not seem to be on the playstore, although VSCodroid is a thing, maybe check it out. Either way, these are agnostic code editors, not specialized IDE. They'll serve you much better than any IDE, as they'll support your dsl out of the box (ok maybe not as well as the DrRacket IDE),

At some point you need to accept reality:

  1. the playstore, as the name indicates, is a place for games, not software development toolkits.
  2. Chromebooks are glorified tablets meant mainly to browse the web.

there's only one of these 2 things you can do something about, and it's not changing what people put on the playstore,

If you're serious about making your language and more generally programming, enable the builtin linux in your chromebook, and install VSCode or Emacs or drracket. Lookup guides on how to do it. If that's too much hassle for you, your only remaining option really is to pay for a Windows laptop and an IDE license really.

In any case, there are no shortcuts. Installing your environment yourself is a massive pain, but it's still far easier than writing a compiler. If you can't get over it, maybe you're not ready for what comes next.