diff --git a/docs/ABOUT.md b/docs/ABOUT.md index 9864ed0..3e76218 100644 --- a/docs/ABOUT.md +++ b/docs/ABOUT.md @@ -1,14 +1,24 @@ -# About +# About MoonScript - +[leafo]: https://leafo.net +[lua]: https://exercism.org/tracks/lua/about +[moon]: https://moonscript.org +[github]: https://github.com/leafo/moonscript +[discord]: https://discord.gg/Y75ZXrD diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index cd6ce85..a14750c 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -1,15 +1,11 @@ -# Installation +# Installing MoonScript - +[lua-install]: https://exercism.org/docs/tracks/lua/installation diff --git a/docs/LEARNING.md b/docs/LEARNING.md index b14434d..8dd1fc7 100644 --- a/docs/LEARNING.md +++ b/docs/LEARNING.md @@ -1,13 +1,10 @@ -# Learning +# How to Learn MoonScript - +[leafo]: https://leafo.net/posts/An_overview_of_MoonScript.html +[learn]: https://moonscript.org/#learning diff --git a/docs/RESOURCES.md b/docs/RESOURCES.md index 9811f04..e35e2fd 100644 --- a/docs/RESOURCES.md +++ b/docs/RESOURCES.md @@ -1,13 +1,22 @@ -# Resources +# MoonScript Resources - +If MoonScript intrigues you, you might want to follow up with [YueScript][yuescript] which is based on MoonScript and extends it. + +[guide]: https://moonscript.org/ +[xiny]: https://learnxinyminutes.com/docs/moonscript/ +[online]: https://moonscript.org/compiler/ +[github]: https://github.com/leafo/moonscript +[yuescript]: https://yuescript.org diff --git a/docs/SNIPPET.txt b/docs/SNIPPET.txt index 4b4a4f0..23f705c 100644 --- a/docs/SNIPPET.txt +++ b/docs/SNIPPET.txt @@ -1 +1,5 @@ -TODO: add snippet +class Greet + new: (@who) => + __tostring: => "Hello, #{@who}!" + +print Greet thing for thing in *{'Me', 'You', 'World'} diff --git a/docs/TESTS.md b/docs/TESTS.md index bec9502..2150ef9 100644 --- a/docs/TESTS.md +++ b/docs/TESTS.md @@ -1,15 +1,27 @@ -# Tests +# Testing on the MoonScript Track - +For those of you that like to run all the tests all the time, you can use a command-line tool to change them all at once. +Here's an example using perl (which is installed just about everywhere): + +```console +$ perl -i -pe 's/^\s+\Kpending\b/it/' two_fer_spec.moon +``` + +When you are working in the online editor, the test runner will automatically run all the tests. + +[lua-tests]: https://exercism.org/docs/tracks/lua/tests +[tdd]: https://exercism.org/docs/using/solving-exercises/tdd