-/* scanner_push() return type. */
-enum scan_result
- {
- /* Complete token. */
- SCAN_DONE, /* Token successfully scanned. */
- SCAN_MORE, /* More segments needed to scan token. */
-
- /* Incomplete token. */
- SCAN_BACK, /* Done, but go back to saved position too. */
- SCAN_SAVE /* Need more segments, and save position. */
- };
-
-void scanner_init (struct scanner *, struct token *);
-enum scan_result scanner_push (struct scanner *, enum segment_type,
- struct substring, struct token *);