|
Post by Lenny Anwhistle on May 28, 2016 16:50:55 GMT -5
Welcome to the Programmers Hub: where programming meets art!
You can share anything here: programs, functions, the whatnot!
Whether you're an expert at Python, Ruby, whatever computer language you're good at, or just learning BASIC, then you have the right to share your programs here! No expertism (which means racism, but on expertise), whatsoever! Good or bad, share your programs here!
If you're making your own language, that's interesting, too! Besides, who doesn't want to see something interesting?
You could ask for help, get suggestions, too! Like the suggestion that I should stop using exclamation marks!
Enough talk. Get sharing!
|
|
|
Post by Lenny Anwhistle on May 28, 2016 16:58:05 GMT -5
So, for me, I've been making my own language. I haven't implemented it to any other language that exists like Python or C++, but it still looks good! It will be edited a lot of times, to make new stuff, so, uh, yeah.
All outputs will have a bold texture.
Here it goes:
==: type("Hello") >> Hello ==: x = 1 + 1 ==: type(x) >> 2 ==: num = put("A number: ") >> A number: ==: type.in(num:64) >> 64 ==: y = x ==: type(y + x) >> 4 ==: make.func(multAndAdd:x, y) ==: multAndAdd.insert.rules(x * (y + x)) ==: multAndAdd:2, 5 >> 14 ==: if (x < 3) then: ==: multAndAdd: x, y /: >> 8 ==: if (9 + 10 == 19) then: ==: type(Yahoo!) >> Error occurred: end characters not defined ==: make.object(guy) ==: make.dsc(name) ==: ^^ dsc is short for description ==: ^^ This is a comment. ==: obj(guy) = name:Bob ==: type (name(guy)) >> Bob ==: make.func(walking: namePerson) ==: walking.insert.rules.follow(2lines): distance += 5 ==: type(name(namePerson), " has walked ", distance, " meters.") /: ==: walking:Bob >> Bob has walked 5 meters. ==: cueAction = put(What should Bob do? ) >> What should Bob do? ==: type.in(cueAction:"walk") ==: if cueAction == input("walk") then: ==: walking:Bob /: >> Bob has walked 10 meters. ==: make.decide(choices1:possible) ==: choices1.insert.possible(2): func:enterShop ==: func:goRight /: ==: enterShop.insert.rules.follow(2lines): make.locate(shop) ==: enter(shop) /: ==: goRight.insert.rules(direction = 1) ==: ^^ north = 0, east = 1 ==: ^^ west = 2, south = 3 ==: if distance == 10 then: ==: whatToDo1 = put(2lines):"You have reached a shop right in front of you. There's a path leading to the east right beside you. What do you do?" ==: "To go inside the shop, type in 'go to shop', and to go east, type in 'go east'." /: >> You have reached a shop right in front of you. There's a path leading to the east right beside you. What do you do? >> To go inside the shop, type in 'go to shop', and to go east, type in 'go east'. ==: type.in(whatToDo1:"go to shop") ==: if whatToDo1 == input("go to shop") then: ==: choices1:enterShop /: ==: else if whatToDo1 == input("go east") then: ==: choices1:goRight
|
|
|
Post by Tryina Denouement on May 30, 2016 8:55:40 GMT -5
Eh, I just can do simple CSS, Javascript and HTML, mostly for my own blog/website-modifying purposes. Or making Episode stories.
|
|