blark.transform.SimpleSpecification

class blark.transform.SimpleSpecification(type: Token | StringTypeSpecification, meta: Meta | None = None)[source]

Bases: TypeSpecificationBase

A simple specification with just a type name (or a string type name).

An elementary type name, a simple type name, or a general dotted identifier are valid for this.

Lark grammar

This class is used by the following grammar rules:

simple_specification

simple_specification: elementary_type_name
                    | simple_type_name
                    | DOTTED_IDENTIFIER

Methods

__init__(type[, meta])

from_lark()

Attributes

base_type_name

The full type name.

full_type_name

The full type name.

meta

type_info

The base type name.

type

type: Token | StringTypeSpecification
meta: Meta | None = None
__init__(type: Token | StringTypeSpecification, meta: Meta | None = None) None
from_lark() T