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

Wrong place for model annotation #61

Closed
casella opened this Issue Apr 2, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@casella
Copy link

casella commented Apr 2, 2014

In http://beta.book.xogeny.com/behavior/equations/annotations/, you write the model annotation in the third line. As far as I understand, the syntax rules prescribe to put it just before the end statement. Section B 2.2 of the spec:

class_definition :
[ encapsulated ] class_prefixes
class_specifier

class_specifier :
long_class_specifier | short_class_specifier | der_class_specifier

long_class_specifier :
IDENT string_comment composition end IDENT
| extends IDENT [ class_modification ] string_comment composition
end IDENT

composition :
element_list
{ public element_list |
protected element_list |
equation_section |
algorithm_section
}
[ external [ language_specification ]
[ external_function_call ] [ annotation ] ";" ]
[ annotation ";" ]

@xogeny

This comment has been minimized.

Copy link
Collaborator

xogeny commented Apr 11, 2014

This is fixed in 1ba5821

@xogeny xogeny closed this Apr 11, 2014

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