9.1.3.1. lex¶
-
class
PythonicGcodeMachine.PythonLexYacc.lex.LexToken[source]¶ Bases:
objectToken class. This class is used to represent the tokens produced.
-
class
PythonicGcodeMachine.PythonLexYacc.lex.Lexer[source]¶ Bases:
objectClass 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:
objectThis 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:
objectNull logger is used when no output is generated. Does nothing.
-
class
PythonicGcodeMachine.PythonLexYacc.lex.PlyLogger(f)[source]¶ Bases:
objectThis 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)¶