Skip to content

Добавить массивы #25

@AIexandrKotov

Description

@AIexandrKotov

Описание:

sunko
    int[] a//описание пустого массива
    int[10] a//описание массива с размером 10
    a[0] = 1//присвоение значения элементу массива
    !setlength a 100//пересоздание массива
    if a[0] then
        !write 'TRUE'
    end
end

Конструкция ArrayRef:
int[] a -> [int, [], a] = [TypeName, ArrayRef, VariableName]
a[0] = 1 -> [a, [0], =, 1] = [VariableName, ArrayRef, Splitter, IntegerLiteral]
if a[0] then -> [if, a, [0], then] = [Keyword, VariableName, ArrayRef, KeyWord]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions