XTOKID(1)

πŸ“¦
version 4.6.28 Β· 4 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– XTOKID πŸ’–

okay bestie, welcome to xtokid, a user command, and honestly? she's giving very specific tool energy and I'm obsessed. no cap.

✨ NAME ✨

xtokid β€” print all tokens found in a source file πŸŽ€

🌸 SYNOPSIS 🌸

xtokid [OPTION]... [FILE]...

πŸ¦‹ DESCRIPTION πŸ¦‹

Print all tokens found in a source file. that's it, that's the whole job, and she does it flawlessly πŸ’…

the options are like, the whole personality here, so let's go one by one. and yeah, some of these flags get reused down in the language-specific sections, so read the section headers, bestie β€” context is everything 🫢

  • -i, --include=LANGS β€” include the languages in LANGS (default: "C C++ asm") ⭐
  • -x, --exclude=LANGS β€” exclude the languages in LANGS πŸ™ˆ
  • -l, --lang-option=L:OPT β€” pass OPT as a default for language L (see below, okay? the below is important, don't skip it πŸ‘€)
  • -m, --lang-map=MAPFILE β€” use MAPFILE to map file names onto source language πŸ—ΊοΈ
  • -d, --default-lang=LANG β€” make LANG the default source language πŸ‘‘
  • -p, --prune=NAMES β€” exclude the named files and/or directories βœ‚οΈ
  • --files0-from=F β€” tokenize only the files specified by NUL-terminated names in file F πŸ’€ (NUL-terminated, not newline. respect the NUL.)
  • --help β€” display this help and exit πŸ†˜
  • --version β€” output version information and exit 🌈

The following arguments apply to the language-specific scanners: 🧚

🌟 C language: 🌟

  • -k, --keep=CHARS β€” allow CHARS in single-token strings, keep the result
  • -i, --ignore=CHARS β€” allow CHARS in single-token strings, toss the result
  • -u, --strip-underscore β€” strip a leading underscore from single-token strings

πŸ’œ C++ language: πŸ’œ

  • -k, --keep=CHARS β€” allow CHARS in single-token strings, keep the result
  • -i, --ignore=CHARS β€” allow CHARS in single-token strings, toss the result
  • -u, --strip-underscore β€” strip a leading underscore from single-token strings

πŸ“ Java language: πŸ“

  • -k, --keep=CHARS β€” allow CHARS in single-token strings, keep the result
  • -i, --ignore=CHARS β€” allow CHARS in single-token strings, toss the result
  • -u, --strip-underscore β€” strip a leading underscore from single-token strings

πŸ”₯ Assembly language: πŸ”₯

  • -c, --comment=CHARS β€” any of CHARS starts a comment until end-of-line
  • -k, --keep=CHARS β€” allow CHARS in tokens, and keep the result
  • -i, --ignore=CHARS β€” allow CHARS in tokens, and toss the result
  • -u, --strip-underscore β€” strip a leading underscore from tokens
  • -n, --no-cpp β€” don't handle C pre-processor directives

πŸŽ€ Text language: πŸŽ€

  • -i, --include=CHAR-CLASS β€” treat characters of CHAR-CLASS as token constituents
  • -x, --exclude=CHAR-CLASS β€” treat characters of CHAR-CLASS as token delimiters

🌈 Perl language: 🌈

  • -i, --include=CHAR-CLASS β€” treat characters of CHAR-CLASS as token constituents
  • -x, --exclude=CHAR-CLASS β€” treat characters of CHAR-CLASS as token delimiters
  • -d, --dtags β€” include documentation tags

✨ Lisp language: ✨

okay so. Lisp language: …and then there's just nothing listed under it. no options. no bullets. nothing. she said "Lisp" and moved on πŸ’€ iconic behaviour honestly, the mystery is the moment.


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Report bugs to bug-idutils@gnu.org β€” be nice, they're doing their best, and please don't just send "it broke" with no details, bestie, that's not the vibe 😭

🫢 SEE ALSO 🫢

The full documentation for the id-utils package is maintained as a Texinfo manual. If the info and id-utils packages are properly installed, the command

info 'ID database'

should give you access to the complete manual. go read it, it's lowkey the main character of this whole thing πŸ‘‘


and that's the whole page, bestie!! πŸ’– this one's from xtokid β€” 4.6.28-15da, dated May 2020. slay, periodt, go tokenize something πŸ¦‹βœ¨

πŸ“¦ where this page comes from