-
Notifications
You must be signed in to change notification settings - Fork 47
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
Config for force transpile brs file #573
Config for force transpile brs file #573
Conversation
Should we have separate flags for "run the brs code through the transpiler" and "allow brighterscript features within .brs files"? The This also doesn't handle whether xml files should be transpiled or not. Should we have two flags instead, that represent that following actions?
|
I think just one setting to enable BrighterScript code in .brs files. My intent is to enable legacy code bases to work with BrighterScript. When I evaluate the ability to do traspiling I can already (and am already) doing some of that in existing compiler plug-in model. I am asking myself...What does transiling files mean to the BrighterScript Compiler if BrighterScript is not enabled? The answer I give myself is nothing. But I am new to the project and don't have a historical background. @TwitchBronBron Should i change |
Currently, brightscript files that have zero AST changes will be copied as-is, and won't run through the transpiler. So in my head, that's a separate thing from "allow brighterscript features in brightscript files". However, that's just a product of the current design. Also, plugins that modify the AST would also need to transpile their files even if not using brighterscript syntax enhancements. Perhaps you're right, there is no real difference from an end-user perspective? I've been thinking maybe we should name this so that it's more clear that you're allowing brighterscript features to be written within the .brs file extension. Maybe something like
|
I kind of like |
@TwitchBronBron @elsassph |
@TwitchBronBron @elsassph Any decision on the name of the setting? |
I'm leaning towards |
@TwitchBronBron Should I make name change? |
Yeah, go ahead and make the change. Sorry for being so slow on this. Let's go with |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Just a few small suggestions.
Configuration setting added to BsConfig to allow for BRS file to be transpiled like BS file.