We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What? Related to #83, introduce several library tags:
@direct-function-mapping
@end
@maps
@params
@returns
Void
Why? Instead of configuring the builtin method inside parser, it is better to decouple these builtin methods and config by importing library files.
How? Sample Wyrd Code
@direct-function-mapping puts @maps("console.log") @params(Str) warn @maps("console.warn") @params(Str) ... @end
No Compiled Result, but will be builtin methods.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What?
Related to #83, introduce several library tags:
@direct-function-mapping
~@end
is the region to declare direct function mappings@maps
which maps to the name of the JavaScript method, default is the same name as the original function@params
which is the parameters of the method, default is no parameters@returns
is the return type of the method, default returnsVoid
Why?
Instead of configuring the builtin method inside parser, it is better to decouple these builtin methods and config by importing library files.
How?
Sample Wyrd Code
No Compiled Result, but will be builtin methods.
The text was updated successfully, but these errors were encountered: