From a3504832b357f6bd97f51560dbbf8a933583dc70 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 31 Oct 2019 13:54:18 -0500 Subject: hscript: Add Keymap code --- hscript/meta.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hscript/meta.hh') diff --git a/hscript/meta.hh b/hscript/meta.hh index b2e1963..25ff931 100644 --- a/hscript/meta.hh +++ b/hscript/meta.hh @@ -55,6 +55,14 @@ public: }; class Keymap : public StringKey { +private: + Keymap(int _line, const std::string &keymap) : + StringKey(_line, keymap) {} +public: + static Key *parseFromData(const std::string &data, int lineno, int *errors, + int *warnings); + bool validate(ScriptOptions) const override; + bool execute(ScriptOptions) const override; }; class Firmware : public BooleanKey { -- cgit v1.2.3-60-g2f50