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

Decouple from Julia version #160

Open
davidanthoff opened this issue Apr 20, 2020 · 0 comments
Open

Decouple from Julia version #160

davidanthoff opened this issue Apr 20, 2020 · 0 comments

Comments

@davidanthoff
Copy link
Member

Medium term we would like to static compile the language server. That will require that CSTParser.jl's behavior does not depend on the Julia version it is running on. The statically compiled LS will for example be compiled with Julia 1.4.0, but it needs to be able to parse source code with the rules of say Julia 1.0.0 if asked to do so.

I think the concrete steps here are two:

  • Remove more or less all VERSION checks in the code
  • Add a parameter to the main entry point functions that specifies which Julia version syntax CSTParser.jl should use for the parsing. The parameter could default to the version of Julia that is currently running, I guess?

The latter would then for example lead to a situation that if I run CSTParser.jl on Julia 1.4, but parse a file and tell it to use Julia 1.0 syntax, it would identify syntax elements as errors that were introduced to Julia post 1.0.

@davidanthoff davidanthoff added this to the Backlog milestone Apr 20, 2020
@davidanthoff davidanthoff removed this from the Backlog milestone Oct 15, 2022
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