The listing below shows those operators that can be used in Stream Parsing. Note that whilst most are for use with Strings, a few are specially for use only with strings containing either JSON or XML data (in whole or part).
List of such operators:
- fail()
- Stream.captureJSON
- Stream.captureLine[(targetAttributeStr)]
- Stream.captureNumber[(targetAttributeStr)]
- Stream.captureRest[(targetAttributeStr)]
- Stream.captureTo(matchStr[, targetAttributeStr])
- Stream.captureToken[(targetAttributeStr)]
- Stream.captureWord[(targetAttributeStr)]
- Stream.captureXML
- Stream.eachLine(loopVar[:condition]){actions}
- Stream.expect(matchStr)
- Stream.expectNumber
- Stream.expectWhitespace
- Stream.expectWord
- Stream.failed()
- Stream.json.each{actions}
- Stream.json[itemNum]
- Stream.json[keyStr]
- Stream.skip(charsNum)
- Stream.skipTo(matchStr)
- Stream.skipToNumber
- Stream.skipWhitespace
- Stream.try{actions}[.thenTry{actions}]
- Stream.xml.each(pathStr){action}
- Stream.xml(pathStr)