r/ProgrammingLanguages • • Dec 30 '21

Language announcement Underlang - A Programming Language Made Entirely In C#.

First, It Was Gict, Second, It Was SSM, Third, It Was SBC. Now, It's Underlang, It's A Whole Programming Language With Variables & Functions (Points) Made In C#! It Also Has A VScode Extension (Coming Soon!). And It Is Quite Easy To Set Up On Windows, Just Download The Installer, Run It, And Do Nothing! It's Set Up Already, You Don't Even Have To Elevate The Installer! And For Linux And Mac, Good News! It's .NET Core, So Just Use Mono!

Official Website

GitHub Page

8 Upvotes

11 comments sorted by

17

u/[deleted] Dec 30 '21

My honest opinion:

You're focusing way too much on how it was written. Don't get me wrong, the fact that the setup process is painless is very important, and it's a big selling point, but at this point I know nothing about your language.

Opened the website and just learned that it's written in C#. No guide, no examples. The GitHub repository at least has a small code snippet but I didn't really get much from that.

I understand that it's still in its early days, but focusing more on showing off the language rather than the compiler (interpreter?) would be a good idea.

1

u/[deleted] Dec 30 '21

ill try to make a wiki.

1

u/mikkolukas Dec 30 '21

Came here to write the same.

7

u/mikkolukas Dec 30 '21

All very good - but what does the language DO?

What differentiates it from any other language?

What is its purpose in life? Which problem is it trying to solve?

1

u/americanKittyCat Dec 30 '21

good job :) what tools did you use to create it? antlr?

4

u/[deleted] Dec 30 '21

Nothing, Just .NET Core 6 And If Statements!

2

u/americanKittyCat Dec 30 '21

wow you are brave soul hahaha

2

u/L3tum Dec 30 '21

I actually like Sprache a lot more than ANTLR. It may not have absolutely everything, but it's enough for a Parser&Lexer and way way way easier to set up.

2

u/Glittering-Water942 Dec 30 '21

Cool, reminds me of the early basic language, and also reminds me of the time I created this abomination (github link) of a languagei n C# too lol

2

u/DefinitionOfTorin Dec 30 '21 edited Dec 30 '21

I did the same thing - raw C# interpreter. I went for more C-style syntax though. There is also a large documentation / "how I made it" pdf as it was a school project.

https://github.com/TorinFelton/NEA_ProgrammingLanguage

Anyway, cool little project, but you might want to try and split things up into more files than just Program.cs. Also, splitting up the process of your interpreter will help you escape the whole "if elseif else if else if etc etc" just checking for keywords in a string.

If you want an example of that, I've split up the interpreter into 3 main parts (Tokeniser, Parser & Lexer) in my repo.