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 Syntax #7

Open
iamcarbon opened this issue Jan 26, 2017 · 0 comments
Open

Annotations Syntax #7

iamcarbon opened this issue Jan 26, 2017 · 0 comments
Labels

Comments

@iamcarbon
Copy link
Member

iamcarbon commented Jan 26, 2017

Annotations allow arbitrary metadata to be assigned to a property or type. They are defined after the formal type or property definition using an @ prefixed named. Each annotation may define a argument list within parenthesis. If parenthesis are used, at least one argument MUST be provided.

Arguments may be named.

Int32 type @primitive @size(4) { }

Point type : Vector3<Number> @size(32) { 
  w: Number @serializable(pack: true, index: 4)
}

Syntax & Expression representations:

AnnotationExpression { arguments: ArgumentSyntax[] )
AnnotationExpressionSyntax { arguments: IArguments }

Special annotations.

@iamcarbon iamcarbon changed the title Finalize Annotations Symbol Annotations Support Jan 26, 2017
@iamcarbon iamcarbon changed the title Annotations Support Annotations Syntax Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant