"Dual Object Notation" -> "Twofold Object Notation"
[ton] / ton / _shared.py
diff --git a/ton/_shared.py b/ton/_shared.py
new file mode 100644 (file)
index 0000000..c0ce786
--- /dev/null
@@ -0,0 +1,14 @@
+import collections
+
+from ton import tags
+
+ParseResult = collections.namedtuple(
+    'ParseResult',
+    [
+        'success',
+        'value',
+        'remaining',
+    ],
+)
+
+_FAILED_PARSE_RESULT = ParseResult(success = False, value = None, remaining = None)