ArcaneScript is a custom programming language developed to explore language design and interpretation. This project includes the development of both the ArcaneScript language and its online Runner.
When attempting to call a function that contains a variable assignment, ArcaneScript throws a syntax error. The function declaration is valid, but calling the function results in an error when it executes the variable assignment inside the function.
Observe that a syntax error occurs when trying to call the function.
Expected Behavior:
The function should execute, and the variable thecloudcode should be assigned the value 7. The output should indicate:
Execution complete!
Actual Behavior:
A syntax error is shown when attempting to call the function.
Suggested Solution:
Investigate the parser logic for function calls, especially when variable assignments occur within the function body.
Ensure that the interpreter recognizes and processes variable assignments correctly inside the function’s scope.
Update the grammar rules to correctly parse variable assignment statements within functions.
Priority: High
Since variable assignments are fundamental operations within functions, this issue must be resolved to allow proper function execution in ArcaneScript.
Let me know if you'd like to explore additional debugging strategies or test cases for this issue!
Description:
When attempting to call a function that contains a variable assignment, ArcaneScript throws a syntax error. The function declaration is valid, but calling the function results in an error when it executes the variable assignment inside the function.
Steps to Reproduce:
Expected Behavior:
The function should execute, and the variable
thecloudcode
should be assigned the value7
. The output should indicate:Actual Behavior:
A syntax error is shown when attempting to call the function.
Suggested Solution:
Priority: High
Since variable assignments are fundamental operations within functions, this issue must be resolved to allow proper function execution in ArcaneScript.
Let me know if you'd like to explore additional debugging strategies or test cases for this issue!