# Quine/Error Quine Polyglot

Your task is simple: Write a program that can be run in two languages. It should be a normal quine (prints its own source code) in language 1, and should be an error quine (generates an error message identical to its own source code) in language 2.

This is , so the shortest valid submission (in bytes) wins.

Rules:

• The languages may be arbitrarily similar. Supersets/similar versions/similar dialects are not disallowed.
• The error quine rules are the same as those in Make an Error Quine!.
• Related, and Related. – Esolanging Fruit May 28 '17 at 6:04
• Are two different dialects of BASIC allowed? – MD XF May 29 '17 at 4:28
• @MDXF If they have the exact same behavior except that one outputs to STDERR instead, then no. Otherwise, yes. – Esolanging Fruit May 29 '17 at 6:31
• So my answer is valid, then. – MD XF May 29 '17 at 14:58
• @MDXF It is valid. – Esolanging Fruit May 29 '17 at 20:41

# Applesoft BASIC / Commodore LCD BASIC, 13 bytes

?SYNTAX ERROR


In the Apple ][ emulator, hit the RESET key to enter BASIC mode.
In the Commodore LCD emulator, hit RightArrowEnter to get into the BASIC application.
In both of them, don't type ?SYNTAX ERROR in all caps, because they automatically capitalize.

• non-competing status is reserved for submissions in languages that were made after the challenge. If it is invalid according to the rules, delete it. Await OP's confirmation first because I think this should be valid (assuming it works). – HyperNeutrino May 29 '17 at 5:05
• @HyperNeutrino Thanks, edited. – MD XF May 29 '17 at 14:57
• Going to have to suspect this one too, then. This question is rather more brutal than it looks... – Ørjan Johansen May 30 '17 at 18:48
• @ØrjanJohansen Well, I'm not so sure about this one. Technically, the Commore LCD had no standard error byte stream, so is it really an error quine? – MD XF May 30 '17 at 18:50
• @ØrjanJohansen this? I guess that could mean it's impossible to tell whether this is valid or not. We could wait for confirmation from the OP? – MD XF May 30 '17 at 19:02