astx.literals.string

astx.literals.string

Source: packages/astx/src/astx/literals/string.py

title: ASTx Data Types module.

Classes

LiteralString(Literal)

title: LiteralString data type class.
attributes:
  type_:
    type: String
  loc:
    type: SourceLocation
  value:
    type: str

Methods

get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure of the object.
parameters:
  simplified:
    type: bool
returns:
  type: ReprStruct

LiteralUTF8String(LiteralString)

title: Literal class for UTF-8 strings.
attributes:
  loc:
    type: SourceLocation
  type_:
    type: UTF8String
  value:
    type: str

Methods

get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the structure of the object in a simplified.
parameters:
  simplified:
    type: bool
returns:
  type: ReprStruct

LiteralUTF8Char(LiteralString)

title: Literal class for UTF-8 characters.
attributes:
  loc:
    type: SourceLocation
  type_:
    type: UTF8Char
  value:
    type: str

Methods

get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the structure of the object in a simplified.
parameters:
  simplified:
    type: bool
returns:
  type: ReprStruct