class documentation

class Tads3Lexer(RegexLexer):

View In Hierarchy

For TADS 3 source code.
Method ​_make​_attribute​_value​_state Undocumented
Method ​_make​_string​_state Undocumented
Method ​_make​_tag​_state Undocumented
Method analyse​_text This is a rather generic descriptive language without strong identifiers. It looks like a 'GameMainDef' has to be present, and/or a 'versionInfo' with an 'IFID' field.
Method get​_tokens​_unprocessed Split text into (tokentype, text) pairs.
Class Variable ​_comment​_multiline Undocumented
Class Variable ​_comment​_single Undocumented
Class Variable ​_escape Undocumented
Class Variable ​_name Undocumented
Class Variable ​_no​_quote Undocumented
Class Variable ​_operator Undocumented
Class Variable ​_ws Undocumented
Class Variable ​_ws​_pp Undocumented
Class Variable aliases Undocumented
Class Variable filenames Undocumented
Class Variable flags Undocumented
Class Variable name Undocumented
Class Variable tokens Undocumented

Inherited from Lexer (via RegexLexer):

Method get​_tokens Return an iterable of (tokentype, value) pairs generated from text. If unfiltered is set to True, the filtering mechanism is bypassed even if filters are defined.
Class Variable alias​_filenames Undocumented
Class Variable mimetypes Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method add​_filter Add a new stream filter to this lexer.
Class Variable priority Undocumented
Instance Variable encoding Undocumented
Instance Variable ensurenl Undocumented
Instance Variable filters Undocumented
Instance Variable options Undocumented
Instance Variable stripall Undocumented
Instance Variable stripnl Undocumented
Instance Variable tabsize Undocumented
def _make_attribute_value_state(terminator, host_triple, host_double, _escape=_escape):

Undocumented

def _make_string_state(triple, double, verbatim=None, _escape=_escape):

Undocumented

def _make_tag_state(triple, double, _escape=_escape):

Undocumented

def analyse_text(text):
This is a rather generic descriptive language without strong identifiers. It looks like a 'GameMainDef' has to be present, and/or a 'versionInfo' with an 'IFID' field.
def get_tokens_unprocessed(self, text, **kwargs):

Split text into (tokentype, text) pairs.

stack is the inital stack (default: ['root'])

_comment_multiline: str =

Undocumented

_comment_single: str =

Undocumented

_escape: str =

Undocumented

_name: str =

Undocumented

_no_quote: str =

Undocumented

_operator: str =

Undocumented

_ws =

Undocumented

_ws_pp =

Undocumented

aliases: list[str] =

Undocumented

filenames: list[str] =

Undocumented

flags =

Undocumented

name: str =

Undocumented

tokens =

Undocumented