aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth/Couscous/HorribleHacks.cs
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-04-27 20:54:50 +0100
committerMichael Williamson <mike@zwobble.org>2016-04-28 21:38:41 +0100
commit5bdef288372d3a6a8134479a6497c44f3b17c4dc (patch)
treefaac4e716212c78394b7b982e13f916cb6523d7f /dotnet/Mammoth/Couscous/HorribleHacks.cs
parentf8ace2ab808441e55ffc95634bc8b88575de78ca (diff)
Replace parboiled parser with hand-written parser
Diffstat (limited to 'dotnet/Mammoth/Couscous/HorribleHacks.cs')
-rw-r--r--dotnet/Mammoth/Couscous/HorribleHacks.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/dotnet/Mammoth/Couscous/HorribleHacks.cs b/dotnet/Mammoth/Couscous/HorribleHacks.cs
index 88c746b..9f1ac30 100644
--- a/dotnet/Mammoth/Couscous/HorribleHacks.cs
+++ b/dotnet/Mammoth/Couscous/HorribleHacks.cs
@@ -1,9 +1,14 @@
using Mammoth.Couscous.java.util;
using Mammoth.Couscous.org.zwobble.mammoth.@internal.documents;
+using Mammoth.Couscous.org.zwobble.mammoth.@internal.styles.parsing;
using System.Linq;
namespace Mammoth.Couscous {
internal static class HorribleHacks {
+ internal static bool equals(this char first, int second) {
+ return first == second;
+ }
+
internal static bool equals(this Optional<string> first, Optional<string> second) {
return (!first.isPresent() && !second.isPresent()) || (first.isPresent() && second.isPresent() && first.get() == second.get());
}
@@ -17,5 +22,9 @@ namespace Mammoth.Couscous {
internal static bool equals(this NoteType first, NoteType second) {
return first == second;
}
+
+ internal static bool equals(this TokenType first, TokenType second) {
+ return first == second;
+ }
}
}