SIMPLE SOLUTIONS

LATEXML::CORE::MOUTH(3PM) - Linux man page online | Library functions

Tokenize the input.

Chapter
2018-02-26
LaTeXML::Core::Mouth(3pm) User Contributed Perl Documentation LaTeXML::Core::Mouth(3pm)

NAME

"LaTeXML::Core::Mouth" - tokenize the input.

DESCRIPTION

A "LaTeXML::Core::Mouth" (and 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. Creating Mouths "$mouth = LaTeXML::Core::Mouth->create($source, %options);" Creates a new Mouth of the appropriate class for reading from $source. "$mouth = LaTeXML::Core::Mouth->new($string, %options);" Creates a new Mouth reading from $string. 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($long);" Return a description of current position in the source, for reporting errors. "$tokens = $mouth->readTokens($until);" Reads tokens until one matches $until (comparing the character, but not catcode). This is useful for the "\verb" command. "$lines = $mouth->readRawLine;" Reads a raw (untokenized) line from $mouth, or undef if none is found.

AUTHOR

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.
perl v5.26.1 2018-02-26 LaTeXML::Core::Mouth(3pm)
Download raw manual
Main page User Contributed Perl Documentation (+23303) perl v5.26.1 (+10548) № 3 (+68044)
Go top