blark.transform.SimpleTypeDeclaration
- class blark.transform.SimpleTypeDeclaration(name: Token, extends: Extends | None, init: TypeInitialization, meta: Meta | None = None)[source]
Bases:
object
A declaration of a simple type.
Examples:
TypeName : INT TypeName : INT := 5 TypeName : INT := 5 + 1 * (2) TypeName : REFERENCE TO INT TypeName : POINTER TO INT TypeName : POINTER TO POINTER TO INT TypeName : REFERENCE TO POINTER TO INT TypeName EXTENDS a.b : POINTER TO INT
Lark grammar
This class is used by the following grammar rules:
simple_type_declaration
simple_type_declaration: simple_type_name [ extends ] ":" simple_spec_init
Methods
__init__
(name, extends, init[, meta])Attributes
- init: TypeInitialization
- __init__(name: Token, extends: Extends | None, init: TypeInitialization, meta: Meta | None = None) None
- from_lark() T