Package: cxml-types

Function get-number

Lambda List

get-number (lexer &key (radix 10) max-length no-whitespace-p)

Details

Read and consume the number the lexer is currently looking at and return it. Returns NIL if no number could be identified. RADIX is used as in PARSE-INTEGER. If MAX-LENGTH is not NIL we'll read at most the next MAX-LENGTH characters. If NO-WHITESPACE-P is not NILwe don't tolerate whitespace in front of the number.