From c0e8417189077f163b752d121a24a87bfc566537 Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 9 Oct 2006 20:23:53 +0000 Subject: [PATCH] Added scripting support; not yet integrated with the rest of the app. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@13 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/script/context.cpp | 291 +++++++++++++++++++++ src/script/context.hpp | 99 ++++++++ src/script/dependency.cpp | 322 +++++++++++++++++++++++ src/script/parser.cpp | 506 +++++++++++++++++++++++++++++++++++++ src/script/parser.hpp | 21 ++ src/script/script.cpp | 165 ++++++++++++ src/script/script.hpp | 155 ++++++++++++ src/script/value.cpp | 161 ++++++++++++ src/script/value.hpp | 260 +++++++++++++++++++ src/util/io/get_member.cpp | 22 ++ src/util/io/get_member.hpp | 100 ++++++++ 11 files changed, 2102 insertions(+) create mode 100644 src/script/context.cpp create mode 100644 src/script/context.hpp create mode 100644 src/script/dependency.cpp create mode 100644 src/script/parser.cpp create mode 100644 src/script/parser.hpp create mode 100644 src/script/script.cpp create mode 100644 src/script/script.hpp create mode 100644 src/script/value.cpp create mode 100644 src/script/value.hpp create mode 100644 src/util/io/get_member.cpp create mode 100644 src/util/io/get_member.hpp diff --git a/src/script/context.cpp b/src/script/context.cpp new file mode 100644 index 00000000..6a7511c7 --- /dev/null +++ b/src/script/context.cpp @@ -0,0 +1,291 @@ +//+----------------------------------------------------------------------------+ +//| Description: Magic Set Editor - Program to make Magic (tm) cards | +//| Copyright: (C) 2001 - 2006 Twan van Laarhoven | +//| License: GNU General Public License 2 or later (see file COPYING) | +//+----------------------------------------------------------------------------+ + +// ----------------------------------------------------------------------------- : Includes + +#include