News:

The moderation team is holding a poll on the topic of the site's connection to Scratch. More details can be found here. Your feedback is appreciated.

Main Menu

If this gets a post ID of 2718, we advance!

Started by red herring, Mar 05, 2022, 12:24:50 AM

Previous topic - Next topic

realicraft

Quote from: gilbert_given_TBGSo I was thinking of making Esolang from a potentially OP item to a full fledged programming language.

Since Esolang mainly handles setting and getting variables, I think Esolang should be something similar to SQL.

So I made what I like to call a "documenting example":
FS3 Esolang v1.0
Fetch "help" for help.

esolang> global/number.t <- {1}:
esolang> global/number.t:
{1}
esolang> global/array <- ():
esolang> global/array/{0} <- 'Testing 1":
esolang> global/array/{1} <- 'Testing 2":
esolang> global/array/2 <- 'Error":
Error: Assigning array element with a non-integer index
esolang> global/array:
('Testing 1", 'Testing 2")
esolang> global/array/'e" -> '1":
('Testing 1")
esolang> global/array.two <- {global/array/'e" -> '1"}:
esolang> global/array.two
('Testing 1")
esolang> global/array.two/{1}:
Error: Cannot index a constant
esolang> global/dict <- ['A";{1};;'B";{5};;'C";'String";;'D";'English";;'E";{3};;'F";{7}]:
esolang> global/dict/A:
{1}
esolang> global/dict -> {}:
['A";{1};;'B";{5};;'E";{3};;'F";{7}]
esolang> global/dict -> {2 -- 6}:
['B";{5};;'E";{3}]
esolang> global/dict -> '":
['C";'String";;'D";'English"]
esolang> global/dict/{?} -> '":
('C", 'D")
esolang> global/dict -> {?}:
('String", 'English")
esolang> global/misc/chest <- ('Stuff"):
esolang> global:
number.t          INT
array             LIST
array.two         LIST
dict              DICT
misc              DIR
esolang> global/misc:
chest             LIST
esolang> global -> ():
array             LIST
array.two         LIST
esolang> global// -> ():
array             LIST
misc/chest        LIST
esolang> global/test <- {global// -> ()}:
esolang> global/test:
array             LIST
array.two         LIST
misc              DIR
esolang> global:
number.t          INT
array             LIST
array.two         LIST
dict              DICT
misc              DIR
test              DIR
esolang> global/test <- #:
esolang> global:
number.t          INT
array             LIST
dict              DICT
array.two         LIST
misc              DIR
esolang> global/dict/{global/dict/{?} -> global/number.t}:
{1}
esolang> global/dict/{? -> global/number.t}:
{1}
esolang> global/dict/{? -> global/number.t} <- {2}:
esolang> global/dict:
['A";{2};;'B";{5};;'C";'String";;'D";'English";;'E";{3};;'F";{7}]
uh

here are some notes i've made so far, in case they conflict with this (it's too dense for me to really tell what's going on)
esolang code (so far):
  global/fs3/players/{10}/stats/hp.current <- {1}:
- sets gilbert's hp to 1
  global/fs3/players/{10}/inventory/rows/{1}/items/{0}/item.id <- {402}:
  global/fs3/players/{10}/inventory/rows/{1}/items/{0}/item.count <- {2}:
- puts 2 Contact Cards in the first slot of the second row of gilbert's inventory

esolang details:
- integers surrounded by {}
- end of line delimiter is : (think js's ;)
- assignment operator is <-
- use / to get items in variables
- global variable (named global)
- modules are right after (i.e. global/fs3)
- fs3 module
- subitems spaced using . (i.e. hp.current or attack.indirect)
- 0 indexed

by the way what's -> doing
it sure is 43.250.142.151       tbgforums.com time, i think, maybe,
ewow status: 2a has released yet; voting ended on April 18th, at 10 PM UTC
videos | FS3 | FS3 Wiki | Ratings | Calendar | Universe Manager 2 | Sandbox
65536 progress: ~13.08% @ 97d (0y 3m 5d) [03/18/2024] {8572/65536}



:P:|:o

Byron_Inc_TBG

eh

gilbert_given_TBG

(hist) Length Limit [2,097,152 bytes]
(hist) Titin [190,656 bytes]
(hist) What [20,893 bytes]
(hist) FizzBuzz Enterprise Edition [11,239 bytes]
(hist) Hubert Blaine Wolfeschlegelsteinhausenbergerdorff Sr. [10,436 bytes]
(hist) Automate [10,000 bytes]
(hist) The CYOA of Pure, Uncut Chaos [9,582 bytes]
(hist) Here's Urself Doin' Something Odd Now (HUDSON) [5,951 bytes]
(hist) Wierdland [5,136 bytes]
(hist) Spamton [5,060 bytes]
(hist) The Nonsensical RP [4,330 bytes]
(hist) Mifernian language/Dictionary [4,274 bytes]
(hist) Mifernian language [4,254 bytes]
(hist) Poki lipu sona a pali e nimi nasa [3,877 bytes]
(hist) Not A Programming Language [3,821 bytes]
(hist) Lando sen Komputiloj [3,366 bytes]
(hist) New Mifernian language [3,215 bytes]
(hist) The Planet of Pyrocrick [2,984 bytes]
(hist) Bots [2,679 bytes]
(hist) T h e p i t. [2,608 bytes]

Byron_Inc_TBG

eh


gilbert_given_TBG

#156
Quote from: realicraft- subitems spaced using . (i.e. hp.current or attack.indirect)
Ah, that's what the dot means. I thought it's like a file that you can't index.

Quote from: realicraftby the way what's -> doing
That's my way to filter variables. For example:
global/fs3/players/{10}/inventory/rows/{1}/items/{?}/item.id -> {402}:
returns a list of all of my inventory slot numbers at row 1 that had item.id set to 402. Likewise:
global/fs3/players/{10}/inventory/rows/{1}/items -> ['id";402]:
returns a list of all of my items at row 1 that had item.id set to 402.


{?} selects all items on a variable. For example:
global/fs3/players/{10}/inventory/{?}:
selects all items on the inventory variable.
You can chain them together to deeper levels:
global/fs3/players/{10}/inventory/rows/{?}/items/{?}:
This selects all items on my inventory, which I can set the values to all of them. For example:
global/fs3/players/{10}/inventory/rows/{?}/items/{?}/item.id <- 248:
global/fs3/players/{10}/inventory/rows/{?}/items/{?}/item.count <- 1:
fills all my inventory slot with Esolangs.
{?} can also be filtered. For example:
global/fs3/players/{?/stats/hp.current -> {10 --}}/stats/hp.current <- {1}:sets the HP of all players that has more than 10 HP to 1.


With that, here's my revised documentation, now categorized:
Assigning variables
esolang> global/vars.number <- {1}:
esolang> global/vars.number:
{1}
Filtering lists
esolang> global/vars.array <- ():
esolang> global/vars.array/{0} <- 'Testing 1":
esolang> global/vars.array/{1} <- 'Testing 2":
esolang> global/vars.array/2 <- 'Error": # Note that global/array/2 is equivalent of accessing the '2"-th item.
Error: Assigning list item with a non-number item
esolang> global/vars.array:
('Testing 1", 'Testing 2")
esolang> global/vars.array -> '1": # This takes all items at "global/array" that contains a '1".
('Testing 1")
esolang> global/vars.array ~> '1": # This takes all items at "global/array" that doesn't contains a '1".
('Testing 2")
Dictionaries
esolang> global/vars.dict <- ['A";{1};;'B";{5};;'C";'String";;'D";'English";;'E";{3};;'F";{7};;"G";['H";{1};;'I";{5};;'J";'yes"]]:
esolang> global/vars.dict/A:
{1}
esolang> global/vars.dict.A: # This is equivalent to above.
Ranges
esolang> global/vars.dict -> {}: # Filtering also works with dictionaries.
['A";{1};;'B";{5};;'E";{3};;'F";{7}]
esolang> global/vars.dict -> {2 -- 6}: # You can set a range of numbers to filter.
['B";{5};;'E";{3}]
esolang> global/vars.dict -> {-- 2 : 6 --}:
['A";{1};;'F";{7}]
esolang> global/vars.dict -> {-+ 1 : 7 -- 9}: # A + includes numbers that's equal to the range.
['A";{1}]
Deep search
esolang> global/vars.dict ->> {}: # ->> does a deep search.
['A";{1};;'B";{5};;'E";{3};;'F";{7};;"G";['H";{1};;'I";{5}]]
Selecting multiple items
esolang> global/vars.dict/{?}
{1}
{5}
'String"
'English"
{3}
{7}
['H";{1};;'I";{5};;'J";'yes"]
esolang> global/vars.dict/{global/dict/{?} -> {}}: # This selects multiple items with numeric values.
{1}
{5}
{3}
{7}
esolang> global/vars.dict/{? -> {}}: # This is equivalent to above.
{1}
{5}
{3}
{7}
esolang> global/vars.dict/{? ->> {}}: # Deep search also works here.
{1}
{5}
{3}
{7}
{1}
{5}
esolang> global/vars.dict/{? -> {}} <- {2}: # This modifies all items with numeric values to {2}.
esolang> global/vars.dict:
['A";{2};;'B";{2};;'C";'String";;'D";'English";;'E";{2};;'F";{2};;"G";['H";{1};;'I";{5};;'J";'yes"]]:

I haven't thought of implementing arithmetic just yet, but I think it's probably just "global/vars.a + global/vars.b".

Byron_Inc_TBG

eh

realicraft

it sure is 43.250.142.151       tbgforums.com time, i think, maybe,
ewow status: 2a has released yet; voting ended on April 18th, at 10 PM UTC
videos | FS3 | FS3 Wiki | Ratings | Calendar | Universe Manager 2 | Sandbox
65536 progress: ~13.08% @ 97d (0y 3m 5d) [03/18/2024] {8572/65536}



:P:|:o

Byron_Inc_TBG

eh

Byron_Inc_TBG

eh

Incendiary

Just another internet user and anime transbian catgirl cosplaying as Sakuya Izayoi for April. If you were looking for something interesting here, you've come to the wrong place.

My discord is Incendiary__ and you can join my server at https://discord.gg/k2ywUzBAED
My Twitch channl is available at https://twitch.tv/incendiaryoce

Byron_Inc_TBG

BEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEES
eh

Incendiary

Just another internet user and anime transbian catgirl cosplaying as Sakuya Izayoi for April. If you were looking for something interesting here, you've come to the wrong place.

My discord is Incendiary__ and you can join my server at https://discord.gg/k2ywUzBAED
My Twitch channl is available at https://twitch.tv/incendiaryoce

Incendiary

Just another internet user and anime transbian catgirl cosplaying as Sakuya Izayoi for April. If you were looking for something interesting here, you've come to the wrong place.

My discord is Incendiary__ and you can join my server at https://discord.gg/k2ywUzBAED
My Twitch channl is available at https://twitch.tv/incendiaryoce

solitaire

#165
thje






Nihonium

Quote from: IncendiaryGamingnh!estimate
Est. Completion Date: Jul 02, 2025 02:11:50 PM
Previous Estimates:
(Mar 05, 2022 04:34:59 PM) Mar 01, 2023 07:23:42 AM
(Mar 08, 2022 04:10:26 PM) Nov 27, 2022 09:43:04 PM
Due to the migration of the TBGs, development of Nihonium has ceased permanently.
---------------
Nihonium (version 0.14)
A bot for the TBGs.
Currently offline, forever.
Threads parsed: []

Byron_Inc_TBG

eh

Byron_Inc_TBG

eh

Incendiary

Just another internet user and anime transbian catgirl cosplaying as Sakuya Izayoi for April. If you were looking for something interesting here, you've come to the wrong place.

My discord is Incendiary__ and you can join my server at https://discord.gg/k2ywUzBAED
My Twitch channl is available at https://twitch.tv/incendiaryoce

Byron_Inc_TBG

eh

Incendiary

Just another internet user and anime transbian catgirl cosplaying as Sakuya Izayoi for April. If you were looking for something interesting here, you've come to the wrong place.

My discord is Incendiary__ and you can join my server at https://discord.gg/k2ywUzBAED
My Twitch channl is available at https://twitch.tv/incendiaryoce

Byron_Inc_TBG

eh

SUBLIMINAL RANDOMNESS

Quote from: IncendiaryGamingMore E required
ok
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE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