9.1.3.1. lex¶
-
class
PythonicGcodeMachine.PythonLexYacc.lex.
LexToken
[source]¶ Bases:
object
Token class. This class is used to represent the tokens produced.
-
class
PythonicGcodeMachine.PythonLexYacc.lex.
Lexer
[source]¶ Bases:
object
Class to implement the Lexing Engine
The following Lexer class implements the lexer runtime. There are only a few public methods and attributes:
- input() - Store a new string in the lexer
- token() - Get the next token
- clone() - Clone the lexer
- lineno - Current line number
- lexpos - Current position in the input string
-
class
PythonicGcodeMachine.PythonLexYacc.lex.
LexerReflect
(ldict, log=None, reflags=0)[source]¶ Bases:
object
This class represents information needed to build a lexer as extracted from a user’s input file.
-
get_rules
()[source]¶ Get all of the symbols with a t_ prefix and sort them into various categories (functions, strings, error functions, and ignore characters)
-
-
class
PythonicGcodeMachine.PythonLexYacc.lex.
NullLogger
[source]¶ Bases:
object
Null logger is used when no output is generated. Does nothing.
-
class
PythonicGcodeMachine.PythonLexYacc.lex.
PlyLogger
(f)[source]¶ Bases:
object
This object is a stand-in for a logging object created by the logging module.
-
debug
(msg, *args, **kwargs)¶
-
info
(msg, *args, **kwargs)¶
-
-
PythonicGcodeMachine.PythonLexYacc.lex.
Token
(r)¶