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

Try Semantic Specifications #93

Open
volodya-lombrozo opened this issue Nov 14, 2024 · 0 comments
Open

Try Semantic Specifications #93

volodya-lombrozo opened this issue Nov 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request semantic This issues are related to semantic aware generation

Comments

@volodya-lombrozo
Copy link
Owner

volodya-lombrozo commented Nov 14, 2024

I have already describe this approach there. Thus, just repeat it here. We might try to guide the random program generation process by using special semantic files that would alter the generation output based on the logic written in them.

- name: VariableDeclaration
  match:
    rule: stat
    for:
      - name: ID
  action: declare_variable

- name: VariableUsage
  match:
    rule: expr
    for:
      - name: ID
  action: use_variable

It's just an example. You free to use any format you want.

@volodya-lombrozo volodya-lombrozo self-assigned this Nov 14, 2024
@volodya-lombrozo volodya-lombrozo added enhancement New feature or request semantic This issues are related to semantic aware generation labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semantic This issues are related to semantic aware generation
Projects
None yet
Development

No branches or pull requests

1 participant