Writing Your Own Scanners Warning: this is out of date and needs to be completely rewritten There are two types of scanners, depending on the type of tags that you wish to parse: