Skip to content

[LS] rethink document model and support variable types #16

Open

Description

@x87

Activity

  1. x87 commented on Jan 12, 2024

    @x87
    CollaboratorAuthor

    Symbol visibility boundary:

    start

    (this is where a symbol starts being visible)

    • if a symbol is defined in an implicitly included file (such as constants.txt) its lower bound is 0
    • if a symbol is defined in the current document its lower bound is the line of declaration statement (const ..., var ..., int... etc)
    • if a symbol is defined in one of the $include'd files (and any descendants) its lower bound is the line of {$INCLUDE} in the current document

    finish

    (where a symbol stops being visible)

    • for any symbol it is the end of current document
    • if a symbol is defined inside a function, its upper bound is the function's end keyword
      • note that function bodies can be nested, and also the end keyword is ambiguous (could be used by loops or other blocks)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions