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

Fixed syntax error in SCEst code generation for signal bodies #125

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

lken274
Copy link
Contributor

@lken274 lken274 commented Oct 27, 2024

#119

Because input/output signals did not create a new scope, if the first statement of the body created a scope (like a local signal or variable), then the parser assumes that scope belongs to the top level which results in a syntax error.

This commit simply adds an explicit scope to the Signal transformation.

@lken274 lken274 changed the title moved signal bodies to discrete scope to avoid grammar confusion with locals moved SCEst signal bodies to discrete scope to avoid grammar confusion with locals Oct 27, 2024
Copy link
Member

@a-sr a-sr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks good.

Very nice. Thank you for your contribution!

@a-sr a-sr changed the title moved SCEst signal bodies to discrete scope to avoid grammar confusion with locals Fixed syntax error in SCEst code generation for signal bodies Oct 29, 2024
@a-sr
Copy link
Member

a-sr commented Oct 29, 2024

Build failure due to some HttpError in non critical section. Relevant checks succeeded.

@a-sr a-sr merged commit 2b3953e into kieler:master Oct 29, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SCEst to SCL Compilation places variable outside of fork branch, causing syntax error
2 participants