-
Notifications
You must be signed in to change notification settings - Fork 14
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
Compiler feature request #41
Comments
Is it really helpful and necessary? As I see it, Clue is like C code and Lua machine code, you need the comments in the original code (so inside the Clue files) but when you compile it you don't need them anymore (so inside Lua files). |
It could be done but I'm not sure if it would be useful, the output Lua code doesn't prioritize readability and can seem messy when compiling many files. |
Yes, I agree, but it is useful in the following scenarios, such as we have multiple people developing lua. Not everyone has the hope of using Clue then convert to Lua, but some people want to use Clue. In order to ensure the unity of the code base language, we can let those who like to use Clue compile Lua code with comments. It is true that some annotations can complicate the implementation: like.
|
I think in this case it is better to develop a library in Clue with all the comments and everything else and from Lua use the compiled version of that library |
What should be done of this issue? |
After a few days of using clue a lot in the project, I feel that this feature is useless if we implement our own language server and debug server. Our project team has reached an agreement to use clue for development. In addition, we found that some other features may be useful:
|
we are considering to make a language server in the future but we haven’t really discussed the about the rest. Also a language sever would require changes to how the parser works. |
The documentation generator could be added in 3.1 For the language server...I'm planning to do a beta before 4.0 |
Some initial progress is being made on the language server, but it's still mostly planning for now. |
The documentation generator on the other hand will have to be delayed as 3.1 became unexpectedly too big |
When I use Clue to generate lua, I found that the original comments are discarded, can the compiler add an option to keep the comments.
The text was updated successfully, but these errors were encountered: