docs
This commit is contained in:
1 parent
28110c9a0e
commit
81c664ae86
1 file changed
+10
-1
@@ -18,7 +18,16 @@ class StringParseState:
|
||||
escaped_value: Optional[bytes] = None
|
||||
|
||||
|
||||
def parse_string(initialpos: int, inp: Iterator[PInput]):
|
||||
def parse_string(initialpos: int, inp: Iterator[PInput]) -> TokenString:
|
||||
"""Parses input stream into a simple string object
|
||||
|
||||
Args:
|
||||
initialpos (int): initial position where we started
|
||||
inp (Iterator[PInput])
|
||||
|
||||
Returns:
|
||||
TokenString
|
||||
"""
|
||||
state = StringParseState(b"", 1)
|
||||
for curpos, buf in inp:
|
||||
it = SafeBufferIt(buf)
|
||||
|
||||
Reference in new issue
Block a user