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

[FEATURE] Language Extension: Higher-Order and External Functions #79

Open
rindPHI opened this issue Jul 11, 2023 · 0 comments
Open

[FEATURE] Language Extension: Higher-Order and External Functions #79

rindPHI opened this issue Jul 11, 2023 · 0 comments
Labels
enhancement New feature or request medium Bugs/issues of medium importance parser ISLa-Parser related issues
Milestone

Comments

@rindPHI
Copy link
Owner

rindPHI commented Jul 11, 2023

The ISLa 2.0 syntax should support higher-order functions such as num(<T> v; P(v)) and sum(<T> v; P(v); t(v)), so that we can write

num(<byte> b; inside(b, <packet>)) < 40

instead of (in ISLa 1.x syntax)

exists int num_bytes: (count(<packet>, "<byte>", num_bytes) and num_bytes < 40)

Furthermore, "external" functions with user-specified semantics should be supported.

Adding these features supports removing the old semantic predicates and numeric quantifiers, both problematic ISLa 1.x syntax elements.

@rindPHI rindPHI added enhancement New feature or request medium Bugs/issues of medium importance parser ISLa-Parser related issues labels Jul 11, 2023
@rindPHI rindPHI added this to the ISLa 2.0 milestone Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium Bugs/issues of medium importance parser ISLa-Parser related issues
Projects
None yet
Development

No branches or pull requests

1 participant