-
Notifications
You must be signed in to change notification settings - Fork 44
Apply modern table presentation to Versions #3737
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
base: master
Are you sure you want to change the base?
Apply modern table presentation to Versions #3737
Conversation
|
||
\begin{annotationdefinition}[version] | ||
\begin{synopsis}\begin{lstlisting} | ||
/*literal*/ constant String version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/*literal*/ constant String version | |
/*literal*/ constant String version; |
I thought the original idea was to have a full declaration with semi-colon.
I noticed that one of the recent updates also skipped that.
"script" "=" STRING | ||
| "change" "(" [ conversion-rule { "," conversion-rule } ] ")" | ||
|
||
conversion-rule : STRING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conversion-rule : STRING | |
conversion-rule : IDENT function-call-args |
These are supposed to be calls of the conversion-functions.
/*literal*/ constant String version | ||
\end{lstlisting}\end{synopsis} | ||
\begin{semantics} | ||
\lstinline!version = $\mathit{currentVersion}$! where is a \lstinline[language=grammar]!PACKAGE-VERSION-STRING! defines the version number of the model or package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\lstinline!version = $\mathit{currentVersion}$! where is a \lstinline[language=grammar]!PACKAGE-VERSION-STRING! defines the version number of the model or package. | |
\lstinline!version = $\mathit{currentVersion}$! where is a \lstinline[language=grammar]!PACKAGE-VERSION! defines the version number of the model or package. |
The syntax for package versions currently use PACKAGE-VERSION
|
||
conversion : conversion-none | conversion-with-rules | ||
|
||
conversion-none : "noneFromVersion" "=" PACKAGE-VERSION-STRING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conversion-none : "noneFromVersion" "=" PACKAGE-VERSION-STRING | |
conversion-none : "noneFromVersion" "=" PACKAGE-VERSION |
Same
conversion-with-rules : | ||
"from" "(" | ||
"version" = package-versions | ||
[ "," "to" "=" PACKAGE-VERSION-STRING ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[ "," "to" "=" PACKAGE-VERSION-STRING ] | |
[ "," "to" "=" PACKAGE-VERSION ] |
Same
|
||
used-package : | ||
IDENT "(" | ||
"version" "=" PACKAGE-VERSION-STRING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"version" "=" PACKAGE-VERSION-STRING | |
"version" "=" PACKAGE-VERSION |
Same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally good, but some minor comments.
After this, we can think more about how to express this kind of annotation in the record style.