LaTeXM...:Mouth(3pm)

πŸŽ€ LaTeXM...:Mouth(3pm) πŸŽ€

okay bestie, welcome to LaTeXM...:Mouth(3pm) from the User Contributed Perl Documentation β€” yes, that manual name is a whole mouthful, but we're gonna get through it together πŸ’…βœ¨

✨ NAME ✨

LaTeXML::Core::Mouth β€” tokenize the input. periodt 🫢

πŸ’– DESCRIPTION πŸ’–

A LaTeXML::Core::Mouth (and its subclasses, bestie β€” don't forget the subclasses) is responsible for tokenizing, i.e. 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. slay, inheritance πŸ’…

🫢 Creating Mouths 🫢

  • $mouth = LaTeXML::Core::Mouth->create($source, %options); β€” creates a new Mouth of the appropriate class for reading from $source. very demure, very classy ✨
  • $mouth = LaTeXML::Core::Mouth->new($string, %options); β€” creates a new Mouth reading from $string. new mouth, who dis πŸ˜­πŸ’–

🌸 Methods 🌸

  • $token = $mouth->readToken; β€” returns the next LaTeXML::Core::Token from the source πŸŽ€
  • $boole = $mouth->hasMoreInput; β€” returns whether there is more data to read πŸ‘€
  • $string = $mouth->getLocator; β€” return a description of the current position in the source, for reporting errors 🧚
  • $tokens = $mouth->readTokens; β€” reads all remaining tokens in the mouth, removing any trailing space catcode tokens πŸ’€
  • $lines = $mouth->readRawLine; β€” reads a raw (untokenized) line from $mouth, or undef if none is found πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

Bruce Miller <bruce.miller@nist.gov> πŸ’Œ

Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.


and that's the whole vibe, bestie πŸ¦‹ this page came from perl v5.40.1, dated 2025-11-16, and it lives under LaTeXM...:Mouth(3pm) in the User Contributed Perl Documentation. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from