Can you make your language in C? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you make your language in C?

I want to make a language called Supercode using C as base. Here are the stuff I already added to my list. Say - printf Take - scanf (or for input) String - char * Integer - int Float - float Chr - char Long - long long Double_int - double State - bool Right - true Not - false Add - + Remove - - Multi - * Divi - / Backup - return Stop - break Go - continue Strlk - strcmp When - if But - else For - for The "Hello, (name)!" code: function main() { take(string, a, "What's your name?\n"); say("Hello, [answer].\n"); } Is it possible and can you show me how? Also, if possible, can you combine languages to build a language?

5th Jun 2020, 2:40 AM
NND Songs & Medleys
NND Songs & Medleys - avatar
4 Answers
+ 1
NND Songs & Medleys to go along with coffeeunderrun if you do combine languages I would move to cpp then I would use codeblocks...
5th Jun 2020, 3:47 AM
BroFar
BroFar - avatar
+ 1
BroFar Yeah, something like that.
6th Jun 2020, 3:46 PM
NND Songs & Medleys
NND Songs & Medleys - avatar
0
coffeeunderrun Basically, what I am referring to is like a Pythonic version of C with a bit of Java-like syntax and putting up new command-line arguments. For example, this is what say does: say("Hello, world!"); If it had some variety of building blocks (like int or char), it's like this: say("Hello, [(string) answer]!"); I mean, it is confusing, but well, it really is. Basically a mix of Python and C with new syntax. Look at it! It's kind of strange but that's my intention. Take is completely different than the other programming languages. It takes 3 arguments: the building block, name of building block, and if needed - printf. For example: take(string, answer, "Name: "); Well, the combining of different languages could be hard, especially with syntax, expressions, arguments, and the error fixing. Supercode is just meant to be an experiment. But thanks for the help, @coffeeunderrun!
6th Jun 2020, 1:13 PM
NND Songs & Medleys
NND Songs & Medleys - avatar
0
NND Songs & Medleys this is kinda sorta what you mean I think but calling it as a Supercode https://code.sololearn.com/cJKT802uqCXy/?ref=app But your saying if I get you correctly integration of all 3 into one actual language.
6th Jun 2020, 2:04 PM
BroFar
BroFar - avatar