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

Add a EvalExpr block to NEPO. Implement a typecheck visitor. #1582

Closed
rbudde opened this issue Nov 25, 2023 · 1 comment
Closed

Add a EvalExpr block to NEPO. Implement a typecheck visitor. #1582

rbudde opened this issue Nov 25, 2023 · 1 comment
Assignees
Labels
blockly code generation enhancement New feature or request server server related issues

Comments

@rbudde
Copy link
Contributor

rbudde commented Nov 25, 2023

A long time ago the ANTLR4 grammar 'Exprly.g4' was defined as a first attemt to realize a textual form of NEPO (as a compagnion to the visual Blockly). This grammar concentrates on the expressions of NEPO.

This can be used in an EvalExpr block, which stores an user-defined textual form of an expression as '3 + 4*(x>5 ? 6 : 4)'.
This string can be parsed and translated to an AST (class ExprlyVisitor.java).
Then the AST must be typechecked (TypecheckCommonLanguageVisitor.java).
After that simlation and code generation should work out-of-the-box.

The classes exist in a preliminary version and must be completed.
Then the worker/visitor-architecture must be used to attach the components to all existing plugins. Typechecking should be applied to the complete NEPO program (independent of the visual or textual syntax)

The implementation must be tested (unit + system) rigorously.

@rbudde rbudde added enhancement New feature or request server server related issues blockly code generation labels Nov 25, 2023
@rbudde rbudde moved this from Todo to In Progress in Release 5.2.10 Nov 28, 2023
@bjost2s bjost2s removed this from Release 5.2.10 Feb 13, 2024
@bjost2s bjost2s removed this from Release 5.2.14 Mar 14, 2024
@bjost2s bjost2s added this to Backlog Mar 14, 2024
@bjost2s bjost2s moved this to In Progress in Backlog Mar 14, 2024
@bjost2s bjost2s removed this from Backlog Oct 25, 2024
@rbudde
Copy link
Contributor Author

rbudde commented Dec 16, 2024

duplicate of #1688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blockly code generation enhancement New feature or request server server related issues
Projects
Status: Done
Development

No branches or pull requests

2 participants