flower-app icon indicating copy to clipboard operation
flower-app copied to clipboard

Customizing code generation

Open spaceymonk opened this issue 2 years ago • 0 comments

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"

spaceymonk avatar Jun 07 '22 14:06 spaceymonk