This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
H4X0RZ's profile picture

Lua Basics for newbies

Started by H4X0RZ, 30 May 2013 - 06:46 AM
H4X0RZ #1
Posted 30 May 2013 - 08:46 AM
STATUS:Alpha
RELEASED:No

Hello all,
today I started developing a little interpretor for the newbies under you!

At this moment it has only 6 13 command:

PRINT <string without "">
WRITE <string without "">
SLEEP <seconds>
BGCOLOR <color name>
TXTCOLOR <color name>
CLEAR
MONPRINT <side> <string without "">
MONCLEAR <side>
INTERPRET <filepath>
REPEAT
GOTO <line>
TRASHREPEAT
SHUTDOWN

Example Program(Hello World):

PRINT Hello
SLEEP 1
PRINT World
SLEEP 1
SHUTDOWN

Changelog:
SpoilerAlpha 1.2:
-added MONWRITE command
-added MONCLEAR command
-added CLEAR command

Alpha 1.1:
-All non-command lines are comments

Alpha 1.0:
-Posted on the CC forum

It's made for the beginners, to do simple things.
So, don't thinks it's like lua!

If you have suggestions for new commands, or you have feedback please reply :)/>/>/>/>/>/>/>

thx for reading
Freack100
M4sh3dP0t4t03 #2
Posted 30 May 2013 - 08:53 AM
Sounds interesting, but I think it's better to learn lua directly without first learning this. But if you do it I would also do some basic input stuff and some sort of an if statement and loops.
H4X0RZ #3
Posted 30 May 2013 - 09:18 AM
V. 1.2 Alpha finished!
Spoiler-added CLEAR command
-added MONPRINT command
-added MONCLEAR command
H4X0RZ #4
Posted 30 May 2013 - 11:49 AM
Added two new commands:

REPEAT
GOTO <line>

If anyone wants a pre-release of my code, simply send me a pm!
Cranium #5
Posted 30 May 2013 - 12:02 PM
How in the world is this supposed to teach lua to newbies?
This just teaches bad habits, and syntax errors.
H4X0RZ #6
Posted 30 May 2013 - 12:50 PM
How in the world is this supposed to teach lua to newbies?
This just teaches bad habits, and syntax errors.
This don't teach lua…
It's an interpreter for newbies!
It makes programing of basics easier
If they want to make more complex programs they have to learn lua!

This is only a help for newbies but it's not a replacement for lua!
Shazz #7
Posted 30 May 2013 - 09:47 PM
I guess it gets people familiar to the idea of programming.