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

Macro attributes #38

Merged
merged 3 commits into from
Jun 24, 2019
Merged

Macro attributes #38

merged 3 commits into from
Jun 24, 2019

Conversation

j6k4m8
Copy link
Member

@j6k4m8 j6k4m8 commented Jun 24, 2019

Support for attributes and constraints from inside a macro.

This enables behavior like this:

avuncular(A) {
    A.friendliness >= 0.9
    A.joviality >= 0.5
}

A -> B
avuncular(A)

Or this:

loveTriangle(A, B, C) {
    A -> B [type="loves"]
    B -> C [type="loves"]
    C -> A [type="friend"]

loveTriangle(A, B, C)
  • Edge attributes
    • implementation
    • tests
  • Node attributes
    • implementation
    • tests

@j6k4m8 j6k4m8 merged commit 729ecd0 into master Jun 24, 2019
@j6k4m8 j6k4m8 deleted the macro-attributes branch June 24, 2019 20:49
@j6k4m8 j6k4m8 mentioned this pull request Jun 24, 2019
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.

1 participant