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

Customizing code generation #18

Open
spaceymonk opened this issue Jun 7, 2022 · 0 comments
Open

Customizing code generation #18

spaceymonk opened this issue Jun 7, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@spaceymonk
Copy link
Owner

Users can change the indentation type:

  • Using curly brackets to indicate the scope
  • Placing ; to the end of the line
  • Wrapping expression with ( and ) in IF and WHILE statements.

In the generalized version,

  • Exporting each block's code from a user-defined function.
    • Block contents will be processed by this function.
    • For each block, there should be a transform function
    • For example, if user defines the function of store block as out <text>; then the output will be out "hello"; instead of store "hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant