From 0231bdc13aef9f561a4edb5e3b5772a07256dc99 Mon Sep 17 00:00:00 2001 From: Booklordofthedings Date: Sat, 3 Aug 2024 16:24:09 +0200 Subject: [PATCH] Added ParserEntry class and created BofaParser class --- src/BofaParser.bf | 5 +++++ src/Parser/ParserEntry.bf | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/BofaParser.bf create mode 100644 src/Parser/ParserEntry.bf diff --git a/src/BofaParser.bf b/src/BofaParser.bf new file mode 100644 index 0000000..607f183 --- /dev/null +++ b/src/BofaParser.bf @@ -0,0 +1,5 @@ +namespace Bofa; + +class BofaParser +{ +} \ No newline at end of file diff --git a/src/Parser/ParserEntry.bf b/src/Parser/ParserEntry.bf new file mode 100644 index 0000000..c66c151 --- /dev/null +++ b/src/Parser/ParserEntry.bf @@ -0,0 +1,16 @@ +namespace Bofa.Parser; + +using System; + +struct ParserEntry +{ + public bool IsBofaOrText = true; //True == Bofa, False == Text + public EntryUnion Data; + + [Union] + public struct EntryUnion + { + public Bofa Bofa; + public StringView Text; + } +} \ No newline at end of file