class Crass::Scanner
def scan(pattern)
matched substring will be returned and the pointer will be advanced.
Tries to match _pattern_ at the current position. If it matches, the
def scan(pattern) if match = @scanner.scan(pattern) @pos += match.size @current = match[-1] end match end