forked from wheresaddie/Emojinal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples
61 lines (36 loc) · 2.43 KB
/
examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
##Named Variables##
:shit: = :sparkling_hearts: // assign :sparkling_hearts: to variable :shit:
. :shit: // prints ":sparkling_hearts:" emoji for variable :shit:
##Functions##
( . ":waves: :earth_asia:" ) // creates and runs function, prints "hello world"
printGreeting= :( . ":waves: :earth_asia:" ) // creates function and assigns it to variable
printGreeting // runs function, prints "hello world" (:waves: :earth_asia:) emoji
##Word Modifers##
. :shit: :shit: :hamster: :mushroom: // prints ":mushroom:"
. :snake: :shit: :shit: :hamster: :mushroom: // prints ":shit:"
. :goat: :frog: :sun: // prints ":wink:"
. :goat: :frog: :sun: // prints "[:goat:: :sun:]"
. ( :hamster: :mushroom: :rose: ) // prints ":sunflower:"
. :snake:( :hamster: :mushroom: :rose: ) // prints "[:goat:]"
// Note: I picked flowers/fungi for numbers (mushroom = 1, rose = 2, sunflower 3), , all functions, modifers
//and mathmatical symbols I picked animals for (example: :hamster: is equals, where :snake: is colan and :frog: a period)
:frog: :mushroom: :rose: :sunflower: // pops one item and prints ":mushroom:"
:frog: :octopus: :mushroom: :rose: :sunflower: // empties stack and prints ":mushroom: :rose: :sunflower:"
:frog::mushroom: :rose: :sunflower: :octopus: :rose: :mushroom: :rose: :sunflower: // pops two items and prints " :mushroom: :rose: "
##HTTP Server##
//because, fuck yes.
// var = whale
// http = sparkles
// require = pill
// ; = moneybag
// Server = blush
:whale: :sparkles: :hamster: :pill: :snake: :sparkles :snake: :moneybag:
:spakeles::hamster::diamond::cat::frog: :taxi: :diamond: :rose: :pill: :rose: :moneybag:
res.writeHead(200, {'Content-Type': 'text/plain'});
sparkles:snakr: :gun: :dimaond: :cat: :waves: :asia_world: :snake: :moneybag:
:moneybag::pill: :ear: :smile: :mushroom: :sunflower: :sunflower: :leaf: :frog: :mushroom: :rose: :leaf: :frog: :rose: :frog :snake: :moneybag:
//('Server running at http://127.0.0.1:1337/');
:blush: :snake: :pill: :sparkles :snake:
:broken: :snake: :ear: :pill: :cry: :mushroom: :sunflower: :sunflower: :leaf: :snake: :rose: :leaf: :sunflower: :frog: :leaf: :snake:
// dup drop wait . 'Server running at http://127.0.0.1:1337/'
:snake: :gun: :pill: :waves: :asia_world: :snake: :moneybag: