Share your repls and programming experiences

← Back to all posts
How to learn LuaH!
HarveyH (160)

This is a tutorial to get you started on my very own coding language, LuaH! To practice your code, go to https://repl.it/@HarveyH/LuaH . If you want to use this code for yourself, copy all the code at https://repl.it/@HarveyH/LuaH and credit the creators name.

From now on, I will be recreating my previous repls with LuaH. Here is my list so far:
https://repl.it/@HarveyH/NanoClocklh

Commentshotnewtop
HarveyH (160)

I'm addressing it, its bad and its not a language, I know. I didn't 2 years ago, but I do now, so you don't have to comment on it.

HarveyH (160)

Why is this getting so much attention all of a sudden, I made it 2 years ago lol

CSharpIsGud (588)

@HarveyH Because now there is this one dude who legit believes this isn't python and its killing me to not keep replying even though I know he wont learn

DarkWiiPlayer (1)

What's the point of this?!

k4t3xpl0si0n (6)

I don't understand this. Your language is too hard and hurts my head. You aren't very good at keeping python the most readable programming language.

HarveyH (160)

@k4t3xpl0si0n It's not meant be python, but I can understand why you see it hard. Here I'll give you an example. print("Hello World") would be output("state", "Hello World"). Hope that makes you understand a little.

k4t3xpl0si0n (6)

@HarveyH No it doesn't, Why do I need to pass an string argument "state" in the output function? This is really confusing and I don't like it

CSharpIsGud (588)

@HarveyH It is python with a print function you overcomplicated
wait is just a variable to time.sleep
mix is just the python random library

Sorry, but every time you say this isn't just python it annoys me allot

NoelB33 (314)

It isn’t just python I know this is old but it’s not. @CSharpIsGud

CSharpIsGud (588)

@NoelBryan It is literally just python.

true = True
false = False
wait = time.sleep
mix = random
mix.number = random.randint

if you want to see a real parser you can look at my lua interpreter https://repl.it/@CSharpIsGud/LuaInterpreter2 which is 1k+ lines of C#

[deleted]

@NoelBryan this is python

NoelB33 (314)

Nope, it “reads” small bits of lua. Notice the “output”? Not a python command. @CSharpIsGud

NoelB33 (314)

Nope, it “reads” small bits of lua. Notice the “output”? Not a python command. @roylatgnail

CSharpIsGud (588)

@NoelBryan Thats the funniest joke i've seen on repl talk ever, not much makes me laugh but that did.

I do hope you aren't serious though

[deleted]

@NoelBryan the output is just print. A real coding language would read a file or string, tokenize the string, parse it, and display the I/O. This is just a long bunch of iff statments. Not a real coding language

NoelB33 (314)

And this isn’t even what this program is supposed to be about, it’s supposed to teach you it in the console. Stop being such a bad person in the community and calling other people’s projects that they worked hard in bad, @roylatgnail

[deleted]

@NoelBryan Im not calling it bad, im saying that its not a programming language, which you claim it is

NoelB33 (314)

“ Your language is too hard and hurts my head. You aren't very good at keeping python the most readable programming language.”
@roylatgnail

CSharpIsGud (588)

@NoelBryan Ok, do you seriously not know what a function declaration in python is?

def func():

oh look func isn't a python command this must not be python even though it has the exact same syntax, jk, its python.

def output(func, arg1=0, arg2=0, arg3=0, arg4=0):

Here is output, a normal python function and you can change whats inside and you can change what the python you run does when you use it

CSharpIsGud (588)

@NoelBryan That begs the question, what do you think a real programming language does when you run it?

CSharpIsGud (588)

@NoelBryan Yes it is what the program is supposed to be about, there is nothing to teach you! he didn't work hard on this so there is nothing for anyone to lose. just open python and rename some variables

NoelB33 (314)

How do you know that? He probably worked hard. You have no right to assume that, and that’s final. @CSharpIsGud

CSharpIsGud (588)

@NoelBryan DUDE, Can you not see that this is python with renamed variables, I can do the same thing in 2 minutes so I do have every right to say that a small python program that isn't even what the author says it is didn't take much work.

Don't go around saying who worked hard when you don't know what python looks like.

CSharpIsGud (588)

@NoelBryan On top of that, where here do you see lua mentioned in the code other than what he renamed python to? Yeah, you don't because it is python, not anything near lua.
lua doesn't use the python interpreter btw (oh and real interpreters take way more than 67 lines of python)

NoelB33 (314)

@CSharpIsGud Final definition is - not to be altered or undone.
If you didn’t see my previous comment or didn’t know what it means.

CSharpIsGud (588)

@NoelBryan yeah but ignorance doesn't help you in any way here. If your final definition is to be horribly wrong, its not my problem to correct you.

I know what python looks like and most other people that have been responding to you also do.

People who aren't looking for the truth won't find it.

EDIT: Oh and by the way, saying "that's final" doesn't make you right, it just says your always going to have the same opinion even if that opinion has already been proven false, and that's final.

NoelB33 (314)

It hasn’t been proven false though. You’ve provided no solid evidence. Now I’m tired so have a good day :) @CSharpIsGud

CSharpIsGud (588)

@NoelBryan the evidence is literally right in front of you, you just ignored it all. you didn't look at the repl and see that its just python, everyone else did. (Even the person that made it)

Vandesm14 (2414)

@NoelBryan If this is lua, why is the file extension .py? The file extension will always be your answer. The .py file extension is a python file, just look here: https://fileinfo.com/extension/py

NoelB33 (314)

Not what I was talking about, but yeah I know. @Vandesm14

NoelB33 (314)

That’s also not what I meant, and I know enough roblox Lua from making small games for that, but yeah. @CSharpIsGud

CSharpIsGud (588)

@NoelBryan ok, then you know that this PYTHON repl does absolutely NOTHING with lua