From db19135f0c9e7d3aeb9a34e4acf40677eff1e211 Mon Sep 17 00:00:00 2001 From: Stefan de Bruijn Date: Tue, 15 Dec 2020 16:33:54 +0100 Subject: [PATCH] Made some changes to the setting toy --- Grbl_Esp32/src/Spindles/PWMSpindle.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Grbl_Esp32/src/Spindles/PWMSpindle.h b/Grbl_Esp32/src/Spindles/PWMSpindle.h index 0d2b97fa..6fa9239b 100644 --- a/Grbl_Esp32/src/Spindles/PWMSpindle.h +++ b/Grbl_Esp32/src/Spindles/PWMSpindle.h @@ -29,7 +29,19 @@ namespace Settings { class YamlParser { - int n = 0; + // I didn't create a full parser, as we don't need it. + // See: https://en.wikipedia.org/wiki/YAML + // + // - We start with '---' and assume a single document. If we encounter '---', error. + // - # is a comment + // - indentation is with spaces + // - Tabs are not allowed + // - key: value pairs + // - '-' lists + // - strings with quotes + // - c-style escaping in strings + // - repeated nodes are initially denoted by an ampersand (&) and thereafter referenced with an asterisk (*). + // - '['..']', !! and % are simply not supported. public: // TODO FIXME: Create a parser. This is just a test.