frame_transpiler icon indicating copy to clipboard operation
frame_transpiler copied to clipboard

Need to make event variable name configurable

Open frame-lang opened this issue 2 years ago • 0 comments

Currently event name is hardwired to 'e' which disallows 'e' being used as an identifier. This example overwrites event e with an int.

    def __fibonaccidemo_state_PrintNextFibonacciNumber(self, e):
        if e._message == "next":
            e  = self.__compartment.state_args["c"] + self.__compartment.state_args["d"]
            print(e)
            (self.__compartment.state_args["c"]) = self.__compartment.state_args["d"]
            (self.__compartment.state_args["d"]) = e
            return
    
    ```

frame-lang avatar Nov 22 '23 05:11 frame-lang