arx.lexer.syntax
arx.lexer.syntax
Source: packages/arx/src/arx/lexer/syntax.py
No docstring available.
Functions
load_syntax_manifest() -> SyntaxManifest
title: Load the lexer syntax manifest bundled with the package.
returns:
type: SyntaxManifestClasses
SyntaxManifest
No docstring available.
Methods
reserved_keywords(self) -> set[str]
title: Return the set of reserved keywords from the manifest.
returns:
type: set[str]contextual_keywords(self) -> set[str]
title: Return the set of contextual keywords from the manifest.
returns:
type: set[str]literal_keywords(self) -> dict[str, Any]
title: Return literal keywords mapped to their token values.
returns:
type: dict[str, Any]
description: Mapping from literal keyword name to its Python value.line_comment_delimiters(self) -> tuple[str, ...]
title: Return the tuple of line comment delimiters.
returns:
type: tuple[str, Ellipsis]operator_symbols(self) -> set[str]
title: Return the set of operator symbols declared in the manifest.
returns:
type: set[str]multi_char_operators(self) -> set[str]
title: >-
Return the set of multi-character operators recognized by the lexer.
returns:
type: set[str]