LaTeXML...::Mouth(3)
π 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 nextLaTeXML::Core::Tokenfrom 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, orundefif none is found. no tokenizing, just raw line energy.
π AUTHOR π
Bruce Miller <bruce.miller@nist.gov> β the icon behind this page. π«Ά
π COPYRIGHT π
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
- nixos 26.05: perl5.42.3-LaTeXML 0.8.8
- nixpkgs unstable: perl5.42.3-LaTeXML 0.8.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms