projects
/
ton
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"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
+++ b/
ton/_shared.py
@@ -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)