From cf9bb17f6259966d26741af745a9063a71304dc9 Mon Sep 17 00:00:00 2001 From: Ariel Simulevski Date: Sat, 19 Jan 2019 22:04:08 +0100 Subject: [PATCH] Fixed README.md README.md is now valid markdown --- README.md | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 4cf5974..29a2582 100644 --- a/README.md +++ b/README.md @@ -12,21 +12,23 @@ BS is a general purpose Gradually typed language which can and should be used fo [Watch the talk, recorded at SkillsMatter](https://skillsmatter.com/skillscasts/6088-the-worst-programming-language-ever) -##Example program - - #define /^my (.*?) thing:$/class \1:/ - my Greeter thing: - public function __construct(€name) - HALT_AND_CATCH_FIRE - (unless €name !=== null); - €this->name = €name; - Delete €name; - - public function say(€thing isProbablyA String) - echo €thing, « », €this->name, BS::EOL; - Delete €thing; - -##Language Features +## Example program + +```bs +#define /^my (.*?) thing:$/class \1:/ +my Greeter thing: + public function __construct(€name) + HALT_AND_CATCH_FIRE + (unless €name !=== null); + €this->name = €name; + Delete €name; + + public function say(€thing isProbablyA String) + echo €thing, « », €this->name, BS::EOL; + Delete €thing; +``` + +## Language Features * Significant whitespace * Significant formatting @@ -36,12 +38,12 @@ BS is a general purpose Gradually typed language which can and should be used fo * Exception handling - BS has only one exception - HALT_AND_CATCH_FIRE * Raise exceptions conditionally with `(unless )` * String processing: - * ' ' Single quotes for ASCII strings - * '' '' Double single quotes for ANSI strings - * " " Double quotes - * "" "" Double double quotes - * « » European quotes are used for UTF-256 - * «« »» Double european quotes used for UTF-256 with string interpolation + * `' '` Single quotes for ASCII strings + * `'' ''` Double single quotes for ANSI strings + * `" "` Double quotes + * `"" ""` Double double quotes + * `« »` European quotes are used for UTF-256 + * `«« »»` Double european quotes used for UTF-256 with string interpolation * Mandatory Comments - at the end of every line, demarked by 5 spaces * Optionally end statements with ; * `unless` statements must be terminated with ;