From Esolang
Jump to navigation Jump to search


Comments can have double-quotes inside them as long as they are matched.

This statement does not make any sense, does it? Comments are delimited by double quotes, so how could they have double quotes inside of them as well? Did you mean to say that they can have single quotes inside of them? User:PythonshellDebugwindow (talk) 01:07, 16 November 2020 (UTC)

I agree I might've worded this wrong? But the comments work similarly to Brainfuck's "initial comment loop". I thought I illustrated this well in the examples.

"This program prints "Hello, World!""

Is a valid comment. But I agree it could be confusing, and I might end up removing it as I'm still making the language. User:Expliked (1:28, 16 November 2020 UTC)

edit: Now that I think about it, I'm going to be changing the comments to make more sense.

Thank you for clearing this up.
Another question: Can comments (which now have different starting and closing symbols, [ and ]) be nested with their new syntax? User:PythonshellDebugwindow (talk) 21:20, 16 November 2020 (UTC)
The comments essentially work in the same way as they used to, but they use the brackets now. So this is what the comments can look like now.
[This is a comment. [comment in a comment [another comment[so on...]]]]
The interpreter is now live aswell so feel free to use it and tell me about any issues with it. (User:Expliked 23:43, 16 November 2020 (UTC))
Thank you for this clarification. However, I have found that while loops behave more like do-while loops: they always run at least once, as on the first iteration the WHILE; keyword does not jump to its matching END; if the top of the stack is 0. Looking at the specification, this is how the language's loops are described. Is this intentional? (My apologies for the multitude of questions.) User:PythonshellDebugwindow (talk) 01:12, 17 November 2020 (UTC)
This is actually a great point. First of all yes this actually was not intentional (oopsie on my part), but I'm going to keep it because it just feels like it would create some interesting problems when using this language. So yeah I'm going to be changing WHILE; to DO; and END; to WHILE;. Also, I don't mind a bunch of questions, ask away :) (User:Expliked 03:32, 16 November 2020 (UTC))

Input Push Order

Multiple characters get pushed separately, but would abcde get pushed like

(bottom of stack) a b c d e (top of stack)

or like

(bottom of stack) e d c b a (top of stack)

Tetrapyronia (talk) 05:50, 16 November 2020 (UTC)

Option 1.

That's what I thought, just wanted to make sure :) Tetrapyronia (talk) 05:50, 16 November 2020 (UTC)