Learn to Code via Tutorials on Repl.it!

← Back to all posts
LEARN MY LANGUAGE NOW!
[deleted]

Hello Everyone!, it's Zuhdi!

Today i need to make an awesome tutorial for you guys...
it is My language(Z-LANG)!!

when you complete the tutorial...
please comment and write some lines of code...
and i'll reply for you if there is an error and what is the ouput...
So let's getting started

1. Variables

In my language... The variables will be like this...

make phrase = "Hello World!";

so make attribute makes a variable...
And also don't forget to put ; in the end of the line...
OK
variables: DONE!

2. Hello World

In my language.. Hello World line will be like this...

make phrase = "Hello World!";
line(phrase)

so here we make a variable called phrase and then we write the line() function to write a line of strings we put the variable phrase
Hello World: DONE!

3. Functions

Functions are so simple in my language... it will be like this...

define function() = {
line("This is a function!");
}

so it is like this
so simple....
functions: DONE!

4. Comments

Comments are so hard in my language... it will be like this

$THIS IS A COMMENT!$

HARD! no?
comments: DONE!

5. If statements

If statements are like this...

make bool = true;
if bool is true = {
line("WITH IF STATEMENTS!")
}

so simple language...
if statements: DONE!

SO I HOPE YOU ENJOYED AND DON'T FORGET TO WRITE A LINE OF CODE IN THE COMMENTS!

Good Bye!

Commentshotnewtop
DLRWLiyanwaduge (5)

make phrase = "Nice ;)"
line(phrase)

[deleted]

@DLRWLiyanwaduge Output:

Nice ;)

Thx!

syflexer (467)

make var = "Hello there";

define hello(words) = {
if var is Hello there = {
line(words);
}
}
hello(var);

[deleted]

@syflexer Output: Hello there

WOW What a cool function

MananDoshi (2)

make bool=true;
if bool is true={
line=("nice tut!!")
}

[deleted]

@MananDoshi TypeError: line 3, in line what is =

Codemonkey51 (770)

AGGGGGHHHHHHH NO SOCKETS I CANT LIVE (I want to make a discord bot with ur language)

Codemonkey51 (770)

code:

define function() = {
line('ERROR')
function()
}
function()

@Zuhdi28

[deleted]

@Codemonkey51 TypeError: line 3 function()
SyntaxError: no ; in the end of lines
HAVE A GOO DAY!

[deleted]

@Codemonkey51 really????
but it's not popular :(

Codemonkey51 (770)

updated code:

define function() = {
line('ERROR');
function();
}
function();

@Zuhdi28

[deleted]

@Codemonkey51 SyntaxError: line 3, you cannot call the function in the function code

Codemonkey51 (770)

updated code:

define runFunc() = {
function();
}
define function() = {
line('ERROR');
runFunc();
}
function();

@Zuhdi28

[deleted]

@Codemonkey51 Output: ERROR

[deleted]

@Codemonkey51 congrats!
cool language?

Codemonkey51 (770)

Lol did it get a max recurrsion error? @Zuhdi28

[deleted]

@Codemonkey51 actually there is no one codes like you so yes

Codemonkey51 (770)

YES repl shoukd addd this to replit offline :) @Zuhdi28

[deleted]
[deleted]

@Codemonkey51 i have to go
bye
i have online school

DynamicSquid (2271)
  1. Variables
  2. Hello World

What? Hello world is always supposed to come first!!

[deleted]

@DynamicSquid lol i forgot

gatorade322 (57)

$where do you code in this language?$

[deleted]

@gatorade322 lol a comment?
i invented this language...

[deleted]

@gatorade322 in the comments
lol

[deleted]

@gatorade322 no upvotes?

Bookie0 (2806)

There are no indents?

[deleted]

@Bookie0 i don't think about it...
only for fun!

[deleted]

@Bookie0 no upvotes?

NoelB33 (293)

I don’t like indents, I feel like they make stuff annoying. @Bookie0

Bookie0 (2806)

I know, they are so annoying but you need them for python and other languages @NoelBryan

NoelB33 (293)

More languages use {} though @Bookie0

[deleted]

@mohammedamou813 no upvotes?

DannyIsCoding (493)
make like = 'I like this language';
define function(){
    line('This is cool!');
    if like is 'I like this language'{
        line('How do I make a programming language?');
    };
};

$Runs the function$
function();
[deleted]

@DannyIsCoding Output:

This is cool!
How do I make a programming language?

Actually this is for fun, so you can start to make one!

darkshadowshado (25)

why not make it so we can use a repl project so we can code in ur language or git idk

[deleted]

@darkshadowshado ok
you'll help me?

darkshadowshado (25)

@Zuhdi28 I've made something similar I used python with replacing text thing(had help though) u could look for the code on Github

[deleted]

@darkshadowshado give me the link

[deleted]

@darkshadowshado can you help me with it?

PLZZ

darkshadowshado (25)

@Zuhdi28 k (looks like u copied and pasted the code lol)

darkshadowshado (25)

@Zuhdi28 so alot of errors in your copy and pasting and changing names so fixed it and i might get a license (my one is under MIT one right now)

darkshadowshado (25)

also im working on it rn btw
@Zuhdi28

[deleted]

@darkshadowshado what do you mwan don't copy

darkshadowshado (25)

don't worry since it's under MIT license you can @Zuhdi28

[deleted]

@darkshadowshado ok
you need to help me now?

[deleted]

@darkshadowshado ok
you know the basics or do you need me to help

darkshadowshado (25)

no but heres the thing u should work on it not me @Zuhdi28

Wuru (214)

LOL are you even using a Lexer, Parser, or Eval? If so what is an AST you got?

Programmer567 (39)

make hi = "hello there"; line(hi);
However in my language(conurel):
Public => set('hi') as ("hello there") => run.print.all(hi) => endAll;
My language is still being developed th0 so, we'll see.

Programmer567 (39)

@Programmer567 the markdown made everything online just so you know

[deleted]

@Programmer567 wow hard language
make a tutorial for it!

Programmer567 (39)

@Programmer567 not online, now my speeling is wrong: I meant on one line.

Programmer567 (39)

@Zuhdi28 i am currently making a dedicated project to it, and once you get used to it its not acually hard to use.

[deleted]

@Programmer567 ok when you upload the tutorial, write a comment in this to see it(with the link)