Example
var strscan = ; var scanner = ; while!scanner scanner; ifscanner var word = scanner; else ifscanner == "-" var arrow = scanner;
API
.eof()
returns true if the scanner is at the end
.nextChar()
scans to the next character
.cchar()
returns the current char
.isAZ()
returns true if the current char is A-Z
.is09()
returns true if the current char is 0-9
.isAlpha()
returns true if the current char is A-Z 0-9
.next(match)
returns true if the current char matches the given regular expression
.nextWord()
returns the next word
.to(count)
scans to the given position, and returns the buffer
.peek(count)
returns a buffer from the current position to the given count, then rewinds
.rewind(count)
rewinds N characters
.skip(count)
skips N characters