LaTeXML::Core::Gullet - Online Linux Manual PageSection : 3
Updated : 2021-01-25
Source : perl v5.32.1
Note : User Contributed Perl Documentation

NAME"LaTeXML::Core::Gullet" − expands expandable tokens and parses common token sequences.

DESCRIPTIONA LaTeXML::Core::Gullet reads tokens (LaTeXML::Core::Token) from a LaTeXML::Core::Mouth. It is responsible for expanding macros and expandable control sequences, if the current definition associated with the token in the LaTeXML::Core::State is an LaTeXML::Core::Definition::Expandable definition. The LaTeXML::Core::Gullet also provides a variety of methods for reading various types of input such as arguments, optional arguments, as well as for parsing LaTeXML::Common::Number, LaTeXML::Common::Dimension, etc, according to TeX's rules. It extends LaTeXML::Common::Object.

Managing Input$gullet−>openMouth($mouth, $noautoclose); Is this public? Prepares to read tokens from $mouth. If $noautoclose is true, the Mouth will not be automatically closed when it is exhausted. $gullet−>closeMouth; Is this public? Finishes reading from the current mouth, and reverts to the one in effect before the last openMouth. $gullet−>flush; Is this public? Clears all inputs. $gullet−>getLocator; Returns an object describing the current location in the input stream.

Low-level methods$tokens = $gullet−>expandTokens($tokens); Return the LaTeXML::Core::Tokens resulting from expanding all the tokens in $tokens. This is actually only used in a few circumstances where the arguments to an expandable need explicit expansion; usually expansion happens at the right time. $token = $gullet−>readToken; Return the next token from the input source, or undef if there is no more input. $token = $gullet−>readXToken($toplevel,$commentsok); Return the next unexpandable token from the input source, or undef if there is no more input. If the next token is expandable, it is expanded, and its expansion is reinserted into the input. If $commentsok, a comment read or pending will be returned. $gullet−>unread(@tokens); Push the @tokens back into the input stream to be re-read.

Mid-level methods$token = $gullet−>readNonSpace; Read and return the next non-space token from the input after discarding any spaces. $gullet−>skipSpaces; Skip the next spaces from the input. $gullet−>skip1Space($expanded); Skip the next token from the input if it is a space. If C($expanded> is true, expands ( like <one optional space > ). $tokens = $gullet−>readBalanced; Read a sequence of tokens from the input until the balancing '}' (assuming the '{' has already been read). Returns a LaTeXML::Core::Tokens, except in an array context, returns the collected tokens and the closing token. $boole = $gullet−>ifNext($token); Returns true if the next token in the input matches $token; the possibly matching token remains in the input. $tokens = $gullet−>readMatch(@choices); Read and return whichever of @choices matches the input, or undef if none do. Each of the choices is an LaTeXML::Core::Tokens. $keyword = $gullet−>readKeyword(@keywords); Read and return whichever of @keywords (each a string) matches the input, or undef if none do. This is similar to readMatch, but case and catcodes are ignored. Also, leading spaces are skipped. $tokens = $gullet−>readUntil(@delims); Read and return a (balanced) sequence of LaTeXML::Core::Tokens until matching one of the tokens in @delims. In a list context, it also returns which of the delimiters ended the sequence.

High-level methods$tokens = $gullet−>readArg; Read and return a TeX argument; the next Token or Tokens (if surrounded by braces). $tokens = $gullet−>readOptional($default); Read and return a LaTeX optional argument; returns $default if there is no '[', otherwise the contents of the []. $thing = $gullet−>readValue($type); Reads an argument of a given type: one of 'Number', 'Dimension', 'Glue', 'MuGlue' or 'any'. $value = $gullet−>readRegisterValue($type); Read a control sequence token (and possibly it's arguments) that names a register, and return the value. Returns undef if the next token isn't such a register. $number = $gullet−>readNumber; Read a LaTeXML::Common::Number according to TeX's rules of the various things that can be used as a numerical value. $dimension = $gullet−>readDimension; Read a LaTeXML::Common::Dimension according to TeX's rules of the various things that can be used as a dimension value. $mudimension = $gullet−>readMuDimension; Read a LaTeXML::Core::MuDimension according to TeX's rules of the various things that can be used as a mudimension value. $glue = $gullet−>readGlue; Read a LaTeXML::Common::Glue according to TeX's rules of the various things that can be used as a glue value. $muglue = $gullet−>readMuGlue; Read a LaTeXML::Core::MuGlue according to TeX's rules of the various things that can be used as a muglue value.

AUTHORBruce Miller <bruce.miller@nist.gov>

COPYRIGHTPublic domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
0
Johanes Gumabo
Data Size   :   18,592 byte
man-LaTeXML::Core::Gullet.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 181,853
Visitor ID   :     :  
Visitor IP   :   18.216.156.226   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|LaTeXML::Core::Gullet.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|LaTeXML::Core::Gullet.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|LaTeXML::Core::Gullet.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|LaTeXML::Core::Gullet.3pm|43|'br══─}─══ |'br══─}─══ )