token

Command: token


Synopsis
string token -> post any true
false
istream token -> istream any true
istream false

Description
reads a token from a string or stream and
pushes true and extracted token plus rest-string/stream
on the stack (if successful).

File
lib/sli/typeinit.sli
Author
docu by Markus Diesmann and Sirko Straube
Examples

(1 2 hello) token -> true 1 (2 hello)
({1 2 add}) token -> true {1 2 add} ()

SeeAlso