~boringcactus/crowbar-spec

ea5e1204a493ccfa400c87134cba6262137ccbe2 — Melody Horn 1 year, 4 months ago 3acb751
half-assedly define structs
1 files changed, 2 insertions(+), 1 deletions(-)

M language/type-definition.rst
M language/type-definition.rst => language/type-definition.rst +2 -1
@@ 17,10 17,11 @@ Defining Types
                     NormalStructDefinition <- 'struct' identifier '{' VariableDeclaration+ '}'

    A ``struct`` defines a composite type with several members.
    Its members are stored in the order in which they are defined, and they each take up the space they normally would.

    .. todo::

        define struct layout in memory
        figure out alignment & padding

.. crowbar:element:: OpaqueStructDefinition <- 'opaque' 'struct' identifier ';'