💾 Archived View for tris.fyi › pydoc › pycparser.ply.lex captured on 2022-07-16 at 15:05:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

-=-=-=-=-=-=-

Back to module index

Go to module by name

pycparser.ply

pycparser

pycparser.ply.lex

This module has no docstring.

Classes

LexError

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

LexToken

Lexer

begin(self, state)
clone(self, object=None)
current_state(self)
input(self, s)
next(self)
pop_state(self)
push_state(self, state)
readtab(self, tabfile, fdict)
skip(self, n)
token(self)
writetab(self, lextab, outputdir='')

LexerReflect

get_all(self)
get_literals(self)
get_rules(self)
get_states(self)
get_tokens(self)
validate_all(self)
validate_literals(self)
validate_module(self, module)
validate_rules(self)
validate_tokens(self)

NullLogger

PlyLogger

critical(self, msg, *args, **kwargs)
critical(self, msg, *args, **kwargs)
error(self, msg, *args, **kwargs)
critical(self, msg, *args, **kwargs)
warning(self, msg, *args, **kwargs)

Functions

TOKEN

TOKEN(r)

Token

TOKEN(r)

get_caller_module_dict

get_caller_module_dict(levels)

lex

lex(module=None, object=None, debug=False, optimize=False, lextab='lextab', reflags=64, nowarn=False, outputdir=None, debuglog=None, errorlog=None)

runmain

runmain(lexer=None, data=None)

Other members

StringTypes = (<class 'str'>, <class 'bytes'>)

Modules

copy

inspect

os

re

sys

types