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

Annotations #22

Open
jayconrod opened this issue Oct 22, 2016 · 0 comments
Open

Annotations #22

jayconrod opened this issue Oct 22, 2016 · 0 comments

Comments

@jayconrod
Copy link
Owner

Gypsum should allow programmers to annotate definitions.

Annotations should be defined with the annotation keyword. Annotations may have parameters as part of their definition.

annotation Foo
annotation Bar(x: i32, y: String)

Annotations should be written before the attributes of a definition. The '#' symbol should be used to distinguish them from other identifiers.

#Foo
#Bar(12, "bar")
def do-stuff = ...

A reflection mechanism should be provided to list the annotations associated with a definition. It should also be possible to list the definitions annotated with a given annotation. These mechanisms should be exposed in the Gypsum language and in the CodeSwitch API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant