Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
x87 opened this issue Nov 24, 2023 · 1 comment
Open

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

x87 opened this issue Nov 24, 2023 · 1 comment

Comments

@x87
Copy link
Collaborator

x87 commented Nov 24, 2023

@x87
Copy link
Collaborator Author

x87 commented Jan 12, 2024

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
Projects
None yet
Development

No branches or pull requests

1 participant