Rewrite #2
2 changed files with 11 additions and 8 deletions
|
@ -5,12 +5,5 @@ 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;
|
||||
}
|
||||
public ParserEntryUnion Data;
|
||||
}
|
10
src/Parser/ParserEntryUnion.bf
Normal file
10
src/Parser/ParserEntryUnion.bf
Normal file
|
@ -0,0 +1,10 @@
|
|||
namespace Bofa.Parser;
|
||||
|
||||
using System;
|
||||
|
||||
[Union]
|
||||
struct ParserEntryUnion
|
||||
{
|
||||
public Bofa Bofa;
|
||||
public StringView Text;
|
||||
}
|
Loading…
Add table
Reference in a new issue