wozlang v0.1.7
End User Instructions
Make sure to install via npm install wozlang -g
This will initialize it as a command line interface application.
Functions
run
For those who have installed the lang via source:
node index.js run [FILENAME] ["debug"?]
For those who have:
wozlang run [FILENAME] ["debug"?]
evaluate
For those who have installed the lang via source:
node index.js evaluate [debug (bool)] [line]
For those who have:
wozlang evaluate [debug (bool)] [line]
Starting Off
Supported file extensions:
.stw
.heyall
.ha
.wl
.wozlang
.scottthewoz
.madden08
Hey all, [x] here
starts program named [x]
. Your program needs this, or it will not run.
EVERY LINE HAS TO END WITH EITHER !
, .
, ?
, or ?!
without crashing.
Double-spaces are allowed.
Functions
you heard of [x]
declares variable called [x]
.
I need feedback, It's [x] to me
starts a user input loop and saves the input as [x]
(variable).
[x] is [y]
gives variable [x]
value [y]
.
It's [x]
gives the previously declared/mentioned variable value [x]
.
Welcome to Team [x]
declares array called [x]
.
[x], welcome to Team [y]
puts variable [x]
into array [y]
.
[x], you're out of Team [y]
takes array index equating variable [x]
's value out of array [y]
.
talk about [x]
prints a line.
That's why I/I'm [x]
ends the program with a joke. Always prints [x]
at the end.
be done!
ends the program without printing. Good for inline uses.
Is [x] [y]
is an "if"
statement. This must have THREE spaces between the variable names, by the way. Is [x] not [y]
is self-explanatory (is thing not thing).
Well then [x (function)]
runs [x]
if the statement is true.
I don't know, [x (function)]
/Or, [x (function)]
runs [x]
if the statement is false.
until I get bored
keeps running the previous statement until you stop the program.
Arithmetic
[x] needs more [y]
- Addition or concetenation. Usually concatenation as everything is a string in Wozlang. Adds [y]
to [x]
.
[x] needs less [y]
- Subtraction. Subtracts [y]
from [x]
.
[x] needs [y] times the amount of content
- Multiplication. Multiplies [x]
by [y]
.
[x] has [y] things too much
- Division. Divides [x]
by [y]
.
THIS ISN'T A NUMBER, THIS IS [x]
(might not work, even though it functions perfectly in debug) converts [x]
to an integer. Thanks EcmaScript
Variables
uh
or eh
is either "null"
or just an NOP.
always
, a
(or an
), having
(or have
), ever
, and
, maybe
, gonna
, kind of
, kinda
, I'll just
, I'm just
, like
, sorta
, or sort of
are fill-ins to be gramatically correct.
Madden 08
is considered "true"
.
Madden 09
is considered "false"
.
Madden
is considered "true"
. This means it can act as a shortname for Madden 08
.
Issues
Arithmetic may be bugged a little. Don't know what's causing it for now. Too tired and jobless to find out today.