From d8a6638741390dc4383bb94d3b739321dd8f7d0f Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Mon, 8 Jul 2024 16:21:24 -0700 Subject: [PATCH] Added the comment tag/ --- JetCore.txt | 3 +++ __comment.cpp | 12 ++++++++++++ __comment.h | 17 +++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 __comment.cpp create mode 100644 __comment.h diff --git a/JetCore.txt b/JetCore.txt index e6ec235..28095bd 100644 --- a/JetCore.txt +++ b/JetCore.txt @@ -8,3 +8,6 @@ modifications. Data contained within the tags may modify their containers before placing any output. The space taken by the tag itself is not passwed to the output and will not appear in the output. +Skip Blank Lines options on containers will skip passing any blank +lines or line containing only whitespace to the output. + diff --git a/__comment.cpp b/__comment.cpp new file mode 100644 index 0000000..685786b --- /dev/null +++ b/__comment.cpp @@ -0,0 +1,12 @@ +#include "__cpmment.h" +#include "Exception.h" + +namespace jet { + + __comment::__comment(coreutils::ZString &in, coreutils::MString &out, Global &global) : Tag(in, out, global) { + if(!hasContainer) + throw coreutils::Exception("comment must have a container."); + output = false; + } + +} diff --git a/__comment.h b/__comment.h new file mode 100644 index 0000000..2fe6a49 --- /dev/null +++ b/__comment.h @@ -0,0 +1,17 @@ +#ifndef ____comment_h__ +#define ____comment_h__ + +#include "Tag.h" + +namespace jet { + + class __comment : public Tag { + + public: + __comment(coreutils::ZString &in, coreutils::MString &out, Global &global); + + }; + +} + +#endif