LaTeXML...::Mouth(3)

πŸ“¦ version 0.8.8, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the LaTeXML...::Mouth(3) page β€” it's from the User Contributed Perl Documentation, and it's all about "LaTeXML::Core::Mouth", whose whole main-character job is to tokenize the input. periodt. ✨

✨ DESCRIPTION ✨

A "LaTeXML::Core::Mouth" (plus all its subclasses) is responsible for tokenizing β€” ie. converting plain text and strings into LaTeXML::Core::Tokens according to the current category codes (catcodes) stored in the "LaTeXML::Core::State". It extends LaTeXML::Common::Object. No cap, that's the whole job. πŸ’…

πŸŽ€ Creating Mouths πŸŽ€

  • $mouth = LaTeXML::Core::Mouth->create($source, %options); β€” creates a new Mouth of the appropriate class for reading from $source. source-specific class, iykyk.
  • $mouth = LaTeXML::Core::Mouth->new($string, %options); β€” creates a new Mouth reading from $string. string input icon.

πŸ¦‹ Methods πŸ¦‹

  • $token = $mouth->readToken; β€” returns the next LaTeXML::Core::Token from the source. main character token.
  • $boole = $mouth->hasMoreInput; β€” returns whether there is more data to read. vibe check for leftover input.
  • $string = $mouth->getLocator; β€” return a description of current position in the source, for reporting errors. lowkey the error-reporting glow-up.
  • $tokens = $mouth->readTokens; β€” reads all remaining tokens in the mouth, removing any trailing space catcode tokens. clean up the trailing space vibes.
  • $lines = $mouth->readRawLine; β€” reads a raw (untokenized) line from $mouth, or undef if none is found. no tokenizing, just raw line energy.

πŸ‘‘ AUTHOR πŸ‘‘

Bruce Miller <bruce.miller@nist.gov> β€” the icon behind this page. 🫢

Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. β€” iconic public domain moment. πŸ’–


and that's the whole page, bestie πŸ’… it's from perl v5.42.3, dated 2024-02-26, and it's the LaTeXML...::Mouth(3) page β€” periodt. πŸ¦‹

πŸ“¦ where this page comes from