Timeline for Make your language *mostly* unusable! (Cops' thread)
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Jul 19, 2017 at 15:57 | history | edited | Stephen | CC BY-SA 3.0 |
added 504 characters in body
|
Jul 19, 2017 at 15:53 | comment | added | Mayube | Looks like this should do | |
Jul 19, 2017 at 15:24 | history | edited | Stephen | CC BY-SA 3.0 |
added 396 characters in body
|
Jul 19, 2017 at 15:22 | comment | added | Stephen |
@Mayube : sets the mode. Information before the mode is parameters for the program, information after the mode is the sequence. I'll edit in an explanation for this snippet. Program format is <literals><parameters><mode><sequence> (dunno why that's not in docs, I'll put it in next commit)
|
|
Jul 19, 2017 at 15:19 | comment | added | Mayube |
Hmm okay, and what does the : do? Docs say output the nth term, but in what order is the code run?
|
|
Jul 19, 2017 at 15:15 | comment | added | Stephen |
@Mayube exactly, sorry for my crappy docs. TMI: if the beginning looked like #1,1 (no bar), it would be: A as the first 1, B as the second 1, C as the first input, and n as the second input. You can also do #1|1 , where A is the first 1, B is is the first input, C is the second input, and n is the second 1.
|
|
Jul 19, 2017 at 15:12 | comment | added | Mayube |
So if I were to give 2 inputs, and append BC , A would be the first input, B would be the second, C would be 1, and n would be the second 1?
|
|
Jul 19, 2017 at 14:56 | comment | added | Stephen |
@Mayube the snippet I posted above contains an A , so it looks for one input. Since there are two, both coming from # which specifies default input, it uses the first one as A 's value and the second one as n .
|
|
Jul 19, 2017 at 14:55 | comment | added | Stephen |
@Mayube it's weird, I need to find a way to say it correctly. Basically, your input to the program can be equal to the highest input queried by variables A,B,C,D,E in the code. For example, if at any point you have the variable D in your program, the parser expects there to be 4 inputs, but if there is also an E , the parser expects there to be 5 inputs. There cannot be less than the expected amount. However, there is always an optional last input, n , which is used in different ways by different modes.
|
|
Jul 19, 2017 at 14:49 | comment | added | Mayube |
The docs seem really awkwardly worded, I can't for the life of me figure out what it means when it says Default input is combined with user input to form the total input, which must align with the expected input (which is based on the highest input requested by the Sequence Definition)
|
|
Jul 19, 2017 at 1:52 | history | answered | Stephen | CC BY-SA 3.0 |