: scan-hooks ( -- table ) H{ } ; : scan ( -- str/f ) lexer get parse-token dup scan-hooks at [ nip call ] [ ] if* ; ! Do this to add support for comments to scan for example: ! ! [ lexer get next-line scan* ] "!" scan-hooks set-at