From 5dc92c162d76d757d9e9d1168852dc688394e3f4 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 28 Apr 2023 06:40:02 -0700 Subject: [PATCH] Format fix 2005/chia/README.md --- 2005/chia/README.md | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/2005/chia/README.md b/2005/chia/README.md index b4adfebfe..de6bf8b1c 100644 --- a/2005/chia/README.md +++ b/2005/chia/README.md @@ -1,8 +1,8 @@ # Most ambiguous language - V. Chia - Singapore - bi@mncw.tk +V. Chia +Singapore + ## To build: @@ -32,29 +32,38 @@ for "stringification". ## Author's remarks: Two things inspired this entry. First, there were the C programs which were -`#define`'d to look like Pascal or Visual Basic: the /bin/sh code from V7 Unix -(which reportedly was the motivation behind this contest!), the VAL Linker by -David Troendle, the 2000/primenum entry, ... Looking at these programs, I -thought, "hmm... if it's possible to make C code look like some weird cross -between Pascal, VB, and COBOL, then how about making C code look like some -other language?" +`#define`'d to look like [Pascal][] or [Visual Basic][]: the +[/bin/sh](https://en.wikipedia.org/wiki/Bourne_shell) code from [V7 +Unix](https://en.wikipedia.org/wiki/Version_7_Unix) (which reportedly was the +motivation behind this contest!), the [VAL +Linker](http://dunfield.classiccmp.org/dos/val_src.zip) by David Troendle, the +[2000/primenum](/2000/primenum/primenum.c) IOCCC entry, ... Looking at these +programs, I thought, "hmm... if it's possible to make C code look like some +weird cross between Pascal, VB, and COBOL, then how about making C code look +like some other language?" -As chance would have it, I was writing some Java code at that time, and one of -my net.friends was also working on someone else's Java code. We both hated +As chance would have it, I was writing some [Java][] code at that time, and one of +my net friends was also working on someone else's Java code. We both hated Java; indeed, I hated Java so much that I was tired of hating it. Then I remembered my earlier idea: "Of course! Why not write C code that looks like Java? And poke fun at Java while I'm at it? All ye behold, as I turn anger into action! PH34R MII!!!!!!!" And so, this entry was born. :-) Besides carrying a revolutionary message in the comments, this entry also -draws a spiffy little Koch snowflake fractal on the screen, with the help of -ANSI escape sequences. +draws a spiffy little [Koch snowflake +fractal](https://en.wikipedia.org/wiki/Koch_snowflake) on the screen, with the help of +[ANSI escape sequences](https://en.wikipedia.org/wiki/ANSI_escape_code). The code requires a preprocessor that can stomach all kinds of nonsense that -are passed as parameters to macros for stringification. GNU cpp handles such +are passed as parameters to macros for stringification. GNU +[cpp](https://en.wikipedia.org/wiki/C_preprocessor) handles such things just fine, but certain broken preprocessors may decide to freak out when they see macro parameters that don't look like C tokens. +[Pascal]: https://en.wikipedia.org/wiki/Pascal_(programming_language) +[Visual Basic]: https://en.wikipedia.org/wiki/Visual_Basic_(classic) +[Java]: https://en.wikipedia.org/wiki/Java_(programming_language) + ## Copyright and CC BY-SA 4.0 License: This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved.